CN111737597A - Method and device for searching periphery with route as center in map search - Google Patents

Method and device for searching periphery with route as center in map search Download PDF

Info

Publication number
CN111737597A
CN111737597A CN201910229058.6A CN201910229058A CN111737597A CN 111737597 A CN111737597 A CN 111737597A CN 201910229058 A CN201910229058 A CN 201910229058A CN 111737597 A CN111737597 A CN 111737597A
Authority
CN
China
Prior art keywords
poi
map
searching
pois
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910229058.6A
Other languages
Chinese (zh)
Inventor
林锦锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201910229058.6A priority Critical patent/CN111737597A/en
Publication of CN111737597A publication Critical patent/CN111737597A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Abstract

The invention provides a peripheral searching method and a device taking a route as a center in map searching, wherein the method comprises the steps of receiving a peripheral POI searching request aiming at a target route sent by a map client; analyzing whether the target route passes through the traffic hub POI or not based on the map data, if so, extracting the traffic hub POI through which the target route passes, and searching out related information of POIs with different attributes in a preset range around each traffic hub POI; and returning the searched related information of the POI with different attributes to the map client. According to the embodiment of the invention, a plurality of transportation hub POIs on the target route are extracted according to the traffic heat points where the target route planned for the user is routed, and the related information of POIs with different attributes nearby the periphery of each transportation hub POI is searched, so that the related information of POIs with high quality along the target route which better meets the actual requirement of the user can be returned for the user.

Description

Method and device for searching periphery with route as center in map search
Technical Field
The invention relates to the technical field of map search, in particular to a method and a device for searching periphery with a route as a center in map search.
Background
Current app products within the map industry do not typically involve related functionality with respect to retrieving POI (point of interest) around a route. After a travel route is planned by using a map app, if a user needs to do shopping, eating, traveling or the like along the route, the user needs to drag a map base map to search for needed POI related information frame by naked eyes, so that the information searching efficiency is low.
In addition, due to the granularity of display information of the map base map, some long-tail POIs (such as little scenic spots, traditional dining shops and the like) cannot be displayed on the map, the searched high-quality information cannot be effectively displayed, and a user needs to search for a needed POI by using a zooming function of the map, so that POIs around a certain line cannot be effectively searched. Particularly, when a user travels at a long distance (such as when traveling across provinces), a strong search demand is usually required for hotels, restaurants, service stations and the like along the way.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method and apparatus for route-centered periphery search in a map search that overcomes or at least partially solves the above problems.
According to an aspect of the present invention, there is provided a periphery searching method using a route as a center in a map search, including:
receiving a peripheral POI (point of interest) search request aiming at a target route sent by a map client, wherein the target route is a route planned according to the travel demand of a user;
analyzing whether the target route passes through a transportation junction POI or not based on the map data;
if yes, extracting the traffic hub POIs passed by the target route, and searching out relevant information of POIs with different attributes in a preset range around each traffic hub POI;
and returning the searched related information of the POI with different attributes to the map client.
Optionally, the searching out the relevant information of the POIs with different attributes in the preset range around each transportation hub type POI includes:
determining a circular area corresponding to a preset search radius value in a map by taking each traffic hub POI as a circular center;
and setting the circular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the circular area.
Optionally, different search radius values with corresponding relationships are preset for maps with different scales, each transportation hub POI is respectively taken as a circular center, and a circular area corresponding to the preset search radius value is determined in the map, including:
acquiring a scale of a current map, and searching a search radius value corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the search radius value;
and taking each POI as a circular center, taking the searched search radius value as a target search radius, and determining a circular area corresponding to the target search radius value in the map.
Optionally, the searching out the relevant information of the POIs with different attributes in the preset range around each transportation hub type POI includes:
determining a rectangular area corresponding to the side length of a preset rectangle in a map by taking each traffic hub POI as a rectangle center;
and setting the rectangular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the rectangular area.
Optionally, different rectangular side lengths with corresponding relations are preset for maps with different scales, and a rectangular area corresponding to the preset rectangular side length is determined in the map by taking each transportation junction POI as a rectangular center, including:
acquiring a scale of a current map, and finding out the side length of a rectangle corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the side length of the rectangle;
and taking each traffic hub POI as a rectangle center, taking the found rectangle side length as the target rectangle side length, and determining a rectangular area formed by the target rectangle side length in the map.
Optionally, the method further comprises:
if the target route does not pass through the transportation junction POI based on the map data analysis, dividing the map into a plurality of identical subunits;
searching subunits within a specified distance range from the target route from the subunits, and defining the subunits as target subunits;
and searching out the related information of POI with different attributes in each target subunit.
Optionally, searching for a subunit within a specified distance range from the target route from the plurality of subunits, and defining the subunit as a target subunit, includes:
defining each subunit as a unit distance;
and searching the sub-units within a specified number of unit distances from the target route from the plurality of sub-units, and defining the sub-units as target sub-units.
Optionally, returning the searched relevant information of the POIs with different attributes to the map client, where the method includes:
classifying and aggregating the POI related information with different attributes obtained by searching according to the POI attributes;
and returning the classified and aggregated related information of the POI with different attributes to the map client.
Optionally, the different attribute POI comprises at least one of:
catering, shopping, lodging, traveling, cultural and sports entertainment, financial services and life services.
Optionally, after the relevant information of the POIs with different attributes in the preset range around each transportation hub type POI is searched, the method further includes:
determining the traffic preference of a user according to a pre-collected user map search record;
extracting traffic junction POIs corresponding to the traffic preference of the user from the traffic junction POIs passed by the target route;
and acquiring related information of POIs with different attributes in a peripheral preset range of the traffic hub POIs corresponding to the traffic preference of the user, and preferentially returning the related information to the map client.
According to another aspect of the present invention, there is provided a periphery searching apparatus centering on a route in a map search, including:
the system comprises a receiving module, a searching module and a searching module, wherein the receiving module is suitable for receiving a peripheral POI searching request aiming at a target route sent by a map client side, and the target route is a route planned according to the travel demand of a user;
the analysis module is suitable for analyzing whether the target route passes through the POI (point of interest) of the transportation hub class or not based on the map data;
the searching module is suitable for extracting the traffic hub POIs passed by the target route and searching out the related information of the POIs with different attributes in the preset range around each traffic hub POI if the analyzing module analyzes that the target route passes through the traffic hub POIs based on the map data;
and the return module is suitable for returning the searched related information of the POI with different attributes to the map client.
Optionally, the search module is further adapted to:
determining a circular area corresponding to a preset search radius value in a map by taking each traffic hub POI as a circular center;
and setting the circular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the circular area.
Optionally, different search radius values with corresponding relationships are preset for maps with different scales, and the search module is further adapted to:
acquiring a scale of a current map, and searching a search radius value corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the search radius value;
and taking each POI as a circular center, taking the searched search radius value as a target search radius, and determining a circular area corresponding to the target search radius value in the map.
Optionally, the search module is further adapted to:
determining a rectangular area corresponding to the side length of a preset rectangle in a map by taking each traffic hub POI as a rectangle center;
and setting the rectangular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the rectangular area.
Optionally, different rectangular side lengths having a corresponding relationship are preset for maps of different scales, and the search module is further adapted to:
acquiring a scale of a current map, and finding out the side length of a rectangle corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the side length of the rectangle;
and taking each traffic hub POI as a rectangle center, taking the found rectangle side length as the target rectangle side length, and determining a rectangular area formed by the target rectangle side length in the map.
Optionally, the apparatus further comprises:
the dividing module is suitable for dividing the map into a plurality of identical subunits if the analysis module analyzes that the target route does not pass through the POI (point of interest) of the transportation hub class based on the map data;
the searching module is suitable for searching subunits within a specified distance range from the target route from the subunits and defining the subunits as target subunits;
the searching module is also suitable for searching out the related information of POI with different attributes in each target subunit.
Optionally, the lookup module is further adapted to:
defining each subunit as a unit distance;
and searching the sub-units within a specified number of unit distances from the target route from the plurality of sub-units, and defining the sub-units as target sub-units.
Optionally, the return module is further adapted to:
classifying and aggregating the POI related information with different attributes obtained by searching according to the POI attributes;
and returning the classified and aggregated related information of the POI with different attributes to the map client.
Optionally, the different attribute POI comprises at least one of:
catering, shopping, lodging, traveling, cultural and sports entertainment, financial services and life services.
Optionally, the apparatus further comprises:
the determining module is suitable for determining the traffic preference of the user according to a pre-collected user map searching record after the searching module searches out the related information of the POI with different attributes in the preset range around each traffic hub POI;
the extraction module is suitable for extracting the traffic junction POI corresponding to the traffic preference of the user from the traffic junction POI passed by the target route;
the return module is also suitable for acquiring relevant information of POI with different attributes in a peripheral preset range of the traffic hub POI corresponding to the traffic preference of the user and preferentially returning the relevant information to the map client.
According to yet another aspect of the present invention, there is also provided a computer storage medium having stored thereon computer program code which, when run on a computing device, causes the computing device to perform the route-centered perimeter search method in the map search in any of the above embodiments.
In accordance with yet another aspect of the present invention, there is also provided a computing device comprising: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform a route-centric perimeter search method of a map search in any of the embodiments above.
In the embodiment of the invention, a peripheral POI search request aiming at a target route sent by a map client side is received, wherein the target route is a route planned according to the travel requirement of a user. And then analyzing whether the target route passes through the traffic hub POIs or not based on the map data, if so, extracting the traffic hub POIs through which the target route passes, and searching out the related information of the POIs with different attributes in the preset range around each traffic hub POI. And further returning the searched related information of the POI with different attributes to the map client. Therefore, according to the traffic heat point of the target route planned for the user, the embodiment of the invention extracts the multiple traffic hub POIs on the target route and searches the related information of the POIs with different attributes near the periphery of each traffic hub POI, thereby returning the related information of the POIs with high quality along the target route which better meets the actual requirement of the user for the user and realizing the improvement of the searching efficiency of the map POIs. Further, the base map processing and rendering pressure on the map caused by zooming and dragging actions performed when the user searches for the map POI by naked eyes is reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a route-centric perimeter search method in a map search according to an embodiment of the invention;
FIG. 2 is a schematic diagram illustrating a route-centric perimeter search in a map search according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a route-centered peripheral search in a map search according to another embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a route-centered peripheral search in a map search according to a further embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a periphery searching apparatus centering on a route in a map search according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram illustrating a periphery searching apparatus centering on a route in a map search according to another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
To solve the above technical problem, an embodiment of the present invention provides a method for searching a periphery of a map using a line as a center. Fig. 1 is a flowchart illustrating a route-centered periphery searching method in a map search according to an embodiment of the present invention. Referring to fig. 1, the method includes at least steps S102 to S110.
Step S102, receiving a peripheral POI search request aiming at a target route sent by a map client, wherein the target route is a route planned according to the travel requirement of a user.
In this step, the point of interest POI may be a house, a shop, a mailbox, a bus station, or the like.
Step S104, whether a target route passes through a transportation junction POI is analyzed based on map data; if yes, go to step S106; if not, go to step S110 and end.
In this step, the transportation hub mainly refers to a hub or an important node of the transportation network, and the transportation hub type POI refers to a point of interest POI that is located at the hub or the important node of the transportation network, such as a subway station passing through a plurality of subway lines, a bus station passing through a plurality of bus lines, a transfer station having a subway station and a bus station, and the like.
And S106, extracting the traffic hub POIs passed by the target route, and searching out the related information of the POIs with different attributes in the preset range around each traffic hub POI.
And step S108, returning the searched related information of the POI with different attributes to the map client.
According to the embodiment of the invention, a plurality of traffic hub POIs on the target route are extracted according to the traffic heat points where the target route planned for the user is routed, and the related information of the POIs with different attributes near the periphery of each traffic hub POI is searched, so that the related information of the POIs with high quality along the target route which better meets the actual requirement of the user can be returned to the user, and the search efficiency of the map POIs is improved. Further, the base map processing and rendering pressure on the map caused by zooming and dragging actions performed when the user searches for the map POI by naked eyes is reduced.
Referring to step S102, in an embodiment of the present invention, when a route is planned according to a trip demand of a user, a map client may be used to receive a start point and an end point input by the user, so as to plan a corresponding target route for the user according to the start point and the end point input by the user, and the planning of the target route may be performed by the map client or by a server, which is not limited in the present invention.
After the target route is planned for the user, the user can initiate a search request of the POI around the target route to the map client according to the target route, and then the map client calls a back-end preset interface to forward the search request of the POI around the target route to the server. According to the embodiment of the invention, after the peripheral POI search request of the target route is converted into the query URL through the map client, the search request is sent to the server in a URL query mode.
Referring to step S106 above, in the embodiment of the present invention, for the preset range around each transportation hub type POI, the preset range may be a circular region around the transportation hub type POI, a rectangular region around the transportation hub type POI, or other polygonal regions, and the size and shape of the preset range around each transportation hub type POI are not specifically limited in the embodiment of the present invention.
Taking the preset ranges around the transportation hub type POI as a circular region and a rectangular region respectively as an example, the process of searching out the related information of the POI with different attributes in the preset range around each transportation hub type POI is introduced.
In an embodiment of the present invention, first, after the transportation hub POIs where the target route passes are extracted, a circular area corresponding to a preset search radius value may be determined in the map by taking each transportation hub POI as a circular center. Then, the circular area is set as the peripheral preset range of the corresponding transportation hub POI, and the related information of the POI with different attributes in the circular area is searched out.
For example, referring to fig. 2, the transportation junction POIs including POI1, POI2, and POI3, which are passed by the target route are analyzed by using the map data, and a circular area a, a circular area B, and a circular area C corresponding to the preset search radius value are determined in the map by respectively taking the POI1, the POI2, and the POI3 as circular centers. Therefore, the related information of POI with different attributes in the circular areas A, B and C can be searched out.
In this embodiment, because the actual geographic areas represented by the map display interfaces with the same size are different for maps with different scales, different search radius values are preset for the maps with different scales, and each search radius value has a corresponding relationship with the maps with different scales. The embodiment of the invention does not limit the specific numerical value of the search radius value.
Specifically, in the process of determining the circular area corresponding to the preset search radius value in the map, the scale of the current map needs to be obtained first. Then, the search radius value corresponding to the map with the current scale is found out according to the corresponding relation between the map with different scales and the search radius value. And finally, taking each traffic hub POI as a circular center, taking the searched search radius value as a target search radius, and determining a circular area corresponding to the target search radius value in the map.
In order to more clearly embody the embodiment of the present invention, a specific embodiment of the process of searching POIs with different attributes in a circular area near a POI of a pivot type will be described. Firstly, determining that the scale of the current map is a 16-level scale, selecting the coordinates (116.404, 39.915) of a transportation junction POI on the target route in the map, and the search radius corresponding to the 16-level scale map is 500 meters. Taking the traffic hub POI as a circular center and a circular area with the search radius of 500 meters as a search range, searching out the related codes of the number of POI with various attributes in the circular area as follows:
var map=new BMap.Map("container");
var mPOInt=new BMap.POInt(116.404,39.915);
map.centerAndZoom(mPOInt,16);
var mOption={
POIRadius:500,
numPOIs:12
therefore, 12 POIs are searched near the transportation hub class POI with the coordinate (116.404, 39.915), and of course, the 12 POIs may include the same attribute POI and may be different attribute POIs.
In another embodiment of the present invention, first, after the transportation junction POIs where the target route passes are extracted, a rectangular area corresponding to a preset rectangular side length may be determined in the map by taking each transportation junction POI as a rectangular center. Then, the rectangular area is set as a peripheral preset range of the corresponding transportation hub POI, and relevant information of POI with different attributes in the rectangular area is searched out.
The center of the rectangle in this embodiment preferably adopts the intersection position of the diagonals of the rectangle, and may be other positions, and the embodiment of the present invention is not particularly limited. The side length of the rectangle can be equal to the side length of four rectangular areas, the rectangular area is a square area, and the side length of the rectangle can also be equal to the side length of the opposite side of the rectangle and unequal to the adjacent side lengths. In addition, when the traffic hub POI is taken as the center of the rectangle in the rectangular area, the directions of the sides of the rectangle in the map are different, and finally, the related information of POIs with different attributes searched from the rectangular area is also different. Therefore, the directions of the sides of the rectangle can be predefined, so that the directions of the rectangular areas determined when each transportation hub POI on the target route is respectively taken as the center of the rectangle are consistent.
For example, referring to fig. 3, the transportation junction POIs including POI1, POI2, and POI3, which are passed by the target route through analysis by using the map data, are determined as a rectangular area a, a rectangular area b, and a rectangular area c corresponding to the preset rectangular side length in the map by taking POI1, POI2, and POI3 as rectangular centers, respectively. Therefore, the related information of POI with different attributes in the rectangular areas a, b and c can be searched out.
In this embodiment, the map with different scales is also preset with different rectangular side lengths having corresponding relationships. Specifically, in the process of determining a rectangular area corresponding to the preset rectangular side length in the map, the scale of the current map needs to be obtained first. And then, finding out the side length of the rectangle corresponding to the map with the current scale according to the corresponding relation between the maps with different scales and the side length of the rectangle. And finally, taking each traffic hub POI as a rectangle center, taking the found rectangle side length as the target rectangle side length, and determining a rectangular area formed by the target rectangle side length in the map.
In an embodiment of the present invention, since the target route does not necessarily pass through the transportation junction POIs, the present invention provides another way to implement the peripheral search with the target route as the center, in case that the target route does not pass through the transportation junction POIs.
If it is determined in step S104 that the target route does not pass through the POI like transportation junction based on the map data, the map may be divided into a plurality of sub-units. Then, searching the subunits within the specified distance range from the target route from the plurality of subunits, and defining the searched subunits as target subunits. And finally, searching out relevant information of POI with different attributes in each target subunit.
In this embodiment, when searching for target sub-units within the specified distance range of the target route, each sub-unit may be defined as a unit distance. For example, when the map is divided into a plurality of identical sub-units, the map is divided into x × y squares, and one square can be defined as a unit distance. Then, a sub-unit within a specified number of unit distances from the target route is searched from the plurality of sub-units and defined as a target sub-unit.
For example, a sub-unit defining a distance of one square grid near the target route is a target sub-unit, referring to fig. 4, a white square grid between the starting point and the ending point is the target route, and a black square grid around the target route is the target sub-unit. So that the related information of the POI with different attributes located in each black square can be searched out.
Referring to step S108 above, in an embodiment of the present invention, when the relevant information of the POIs with different attributes obtained by the search is returned to the map client, the POI relevant information with different attributes obtained by the search may be classified and aggregated according to the POI attributes, and then the relevant information of the POIs with different attributes obtained by the classification and aggregation is returned to the map client.
In an embodiment of the invention, the POIs of different attributes comprise at least one of dining, shopping, lodging, traveling, cultural and physical entertainment, financial services, life services and the like. Therefore, when the POI-related information of different attributes is classified and aggregated, the POI-related information may be classified and aggregated by categories of dining, shopping, lodging, traveling, entertainment, financial services, life services, and the like.
In an embodiment of the present invention, when the searched relevant information of the POIs with different attributes is returned to the map client, the information of the POIs related to the traffic preference of the user may also be preferentially returned to the map client in combination with the traffic preference of the user. Therefore, the related information of the POI fed back to the user can better meet the actual requirement of the user.
Specifically, after searching out relevant information of POIs with different attributes in a preset range around each transportation hub POI, the traffic preference of a user is determined according to a pre-collected user map searching record. Then, traffic junction POIs corresponding to the traffic preference of the user are extracted from the traffic junction POIs passed by the target route. And finally, acquiring related information of POIs with different attributes in a peripheral preset range of the traffic hub POIs corresponding to the traffic preference of the user, and preferentially returning the related information to the map client.
Based on the same inventive concept, the embodiment of the invention also provides a peripheral searching device taking the line as the center in map searching. Fig. 5 is a schematic structural diagram illustrating a periphery searching apparatus centering on a route in a map search according to an embodiment of the present invention. Referring to fig. 5, the route-centered periphery searching apparatus 500 for a map search includes a receiving module 510, an analyzing module 520, a searching module 530, and a returning module 540.
The functions of the components or devices of the peripheral search apparatus 500 centered on the route and the connection relationship between the components in the map search according to the embodiment of the present invention will now be described:
the receiving module 510 is adapted to receive a peripheral POI search request for a target route sent by a map client, where the target route is a route planned according to a travel demand of a user;
an analyzing module 520, coupled to the receiving module 510, adapted to analyze whether the target route passes through a transportation junction POI based on the map data;
the searching module 530 is coupled with the analyzing module 520 and is suitable for extracting the traffic hub POIs through which the target route passes and searching out the related information of the POIs with different attributes in the preset range around each traffic hub POI if the analyzing module 520 analyzes that the target route passes through the traffic hub POIs based on the map data;
and a returning module 540, coupled to the searching module 530, and adapted to return the searched information about the POIs with different attributes to the map client.
In an embodiment of the present invention, the searching module 530 is further adapted to determine a circular area corresponding to the preset search radius value in the map by taking each POI as a circular center. And setting the circular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the circular area.
In an embodiment of the present invention, for maps with different scales, different search radius values corresponding to the maps with different scales are preset, and the search module 530 is further adapted to obtain the scale of the current map, and find the search radius value corresponding to the map with the current scale according to the corresponding relationship between the maps with different scales and the search radius values. And taking each traffic hub POI as a circular center, taking the searched search radius value as a target search radius, and determining a circular area corresponding to the target search radius value in the map.
In another embodiment of the present invention, the searching module 530 is further adapted to determine a rectangular area corresponding to a preset rectangular side length in the map by taking each POI of the transportation hub class as a center of the rectangle. And setting the rectangular area as a peripheral preset range of the corresponding traffic hub POI, and searching out relevant information of POIs with different attributes in the rectangular area.
In another embodiment of the present invention, for maps with different scales, different rectangular side lengths with corresponding relationships are preset, and the searching module 530 is further adapted to obtain the scale of the current map, and find the rectangular side length corresponding to the map with the current scale according to the corresponding relationship between the maps with different scales and the rectangular side length. And taking each traffic hub POI as a rectangle center, taking the found rectangle side length as the target rectangle side length, and determining a rectangular area formed by the target rectangle side length in the map.
The embodiment of the invention also provides another peripheral searching device taking the route as the center in map searching. Fig. 6 is a schematic structural diagram illustrating a periphery searching apparatus centering on a route in a map search according to another embodiment of the present invention. Referring to fig. 6, the apparatus 500 for searching a periphery of a map using a route as a center includes a receiving module 510, an analyzing module 520, a searching module 530, a returning module 540, a dividing module 550, a searching module 560, a determining module 570, and an extracting module 580.
The dividing module 550 is coupled to the analyzing module 520 and adapted to divide the map into a plurality of identical sub-units if the analyzing module 520 analyzes that the target route does not pass through the transportation junction POI based on the map data.
The searching module 560, coupled to the dividing module 550 and the searching module 530, is adapted to search the sub-units within a specified distance range from the target route from the plurality of sub-units and define the sub-units as target sub-units.
The searching module 530 is further adapted to search out relevant information of POIs with different attributes located in each target subunit.
The determining module 570, coupled to the searching module 530, is adapted to determine the traffic preference of the user according to the pre-collected user map search record after the searching module 530 searches out the related information of the POIs with different attributes within the preset range around each of the transportation hub POIs.
The extracting module 580, coupled to the determining module 570 and the returning module 540 respectively, is adapted to extract the POI of the transportation hub class corresponding to the traffic preference of the user from the POIs of the transportation hub class passed by the target route.
The returning module 540 is further adapted to obtain relevant information of POIs with different attributes within a peripheral preset range of the transportation hub type POIs corresponding to the transportation preferences of the user, and preferentially return the relevant information to the map client.
In an embodiment of the present invention, the returning module 540 is further adapted to classify and aggregate the searched POI related information with different attributes according to the POI attributes. And returning the classified and aggregated related information of the POI with different attributes to the map client.
In an embodiment of the present invention, the searching module 560 is further adapted to define each sub-unit as a unit distance. And searching the sub-units within a specified number of unit distances from the target route from the plurality of sub-units, and defining the sub-units as target sub-units.
In an embodiment of the present invention, the POI with different attributes includes at least one of: catering, shopping, lodging, traveling, cultural and sports entertainment, financial services and life services.
According to yet another aspect of the present invention, there is also provided a computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform the route-centered perimeter search method in the map search in any of the above embodiments.
In accordance with yet another aspect of the present invention, there is also provided a computing device comprising: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform the route-centric perimeter search method of map searching in any of the embodiments above.
According to any one or a combination of the above preferred embodiments, the following advantages can be achieved by the embodiments of the present invention:
in the embodiment of the invention, a peripheral POI search request aiming at a target route sent by a map client side is received, wherein the target route is a route planned according to the travel requirement of a user. And then analyzing whether the target route passes through the traffic hub POIs or not based on the map data, if so, extracting the traffic hub POIs through which the target route passes, and searching out the related information of the POIs with different attributes in the preset range around each traffic hub POI. And further returning the searched related information of the POI with different attributes to the map client. Therefore, according to the traffic heat point of the target route planned for the user, the embodiment of the invention extracts the multiple traffic hub POIs on the target route and searches the related information of the POIs with different attributes near the periphery of each traffic hub POI, so that the user can return the related information of the POIs with high quality along the target route which better meets the actual requirement of the user, and the POI searching efficiency is improved.
It is clear to those skilled in the art that the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, further description is omitted here.
In addition, the functional units in the embodiments of the present invention may be physically independent of each other, two or more functional units may be integrated together, or all the functional units may be integrated in one processing unit. The integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
Those of ordinary skill in the art will understand that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: u disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program code.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a computing device, e.g., a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present invention; such modifications or substitutions do not depart from the scope of the present invention.
The embodiment of the invention also provides A1, a method for searching the periphery with the line as the center in map search, which comprises the following steps:
receiving a peripheral POI (point of interest) search request aiming at a target route sent by a map client, wherein the target route is a route planned according to the travel demand of a user;
analyzing whether the target route passes through a transportation junction POI or not based on the map data;
if yes, extracting the traffic hub POIs passed by the target route, and searching out relevant information of POIs with different attributes in a preset range around each traffic hub POI;
and returning the searched related information of the POI with different attributes to the map client.
A2, the method according to A1, wherein the searching out the related information of the POIs with different attributes within the preset range around each transportation hub type POI includes:
determining a circular area corresponding to a preset search radius value in a map by taking each traffic hub POI as a circular center;
and setting the circular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the circular area.
A3, the method according to a2, wherein different search radius values having a corresponding relationship are preset for maps of different scales, and a circular area corresponding to the preset search radius value is determined in the map by taking each transportation hub POI as a circular center, the method includes:
acquiring a scale of a current map, and searching a search radius value corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the search radius value;
and taking each POI as a circular center, taking the searched search radius value as a target search radius, and determining a circular area corresponding to the target search radius value in the map.
A4, the method according to A1, wherein the searching out the related information of the POIs with different attributes within the preset range around each transportation hub type POI includes:
determining a rectangular area corresponding to the side length of a preset rectangle in a map by taking each traffic hub POI as a rectangle center;
and setting the rectangular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the rectangular area.
A5, the method according to a4, wherein different rectangle sides with corresponding relations are preset for maps with different scales, and a rectangle area corresponding to the preset rectangle sides is determined in the map by taking each transportation hub POI as a rectangle center, the method includes:
acquiring a scale of a current map, and finding out the side length of a rectangle corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the side length of the rectangle;
and taking each traffic hub POI as a rectangle center, taking the found rectangle side length as the target rectangle side length, and determining a rectangular area formed by the target rectangle side length in the map.
A6, the method according to any one of A1-A5, further comprising:
if the target route does not pass through the transportation junction POI based on the map data analysis, dividing the map into a plurality of identical subunits;
searching subunits within a specified distance range from the target route from the subunits, and defining the subunits as target subunits;
and searching out the related information of POI with different attributes in each target subunit.
A7, the method according to A6, wherein finding the sub-unit within the specified distance range from the target route from the plurality of sub-units and defining as the target sub-unit, comprises:
defining each subunit as a unit distance;
and searching the sub-units within a specified number of unit distances from the target route from the plurality of sub-units, and defining the sub-units as target sub-units.
A8, the method according to any one of A1-A5, wherein the step of returning the searched related information of the POI with different attributes to the map client includes:
classifying and aggregating the POI related information with different attributes obtained by searching according to the POI attributes;
and returning the classified and aggregated related information of the POI with different attributes to the map client.
A9, the method according to any one of A1-A5, wherein the different attribute POIs comprise at least one of:
catering, shopping, lodging, traveling, cultural and sports entertainment, financial services and life services.
A10, the method according to any one of A1-A5, wherein after searching the relevant information of the POIs with different attributes within the preset range around each transportation hub class POI, the method further comprises:
determining the traffic preference of a user according to a pre-collected user map search record;
extracting traffic junction POIs corresponding to the traffic preference of the user from the traffic junction POIs passed by the target route;
and acquiring related information of POIs with different attributes in a peripheral preset range of the traffic hub POIs corresponding to the traffic preference of the user, and preferentially returning the related information to the map client.
B11, a periphery search device centering on a route in a map search, comprising:
the system comprises a receiving module, a searching module and a searching module, wherein the receiving module is suitable for receiving a peripheral POI searching request aiming at a target route sent by a map client side, and the target route is a route planned according to the travel demand of a user;
the analysis module is suitable for analyzing whether the target route passes through the POI (point of interest) of the transportation hub class or not based on the map data;
the searching module is suitable for extracting the traffic hub POIs passed by the target route and searching out the related information of the POIs with different attributes in the preset range around each traffic hub POI if the analyzing module analyzes that the target route passes through the traffic hub POIs based on the map data;
and the return module is suitable for returning the searched related information of the POI with different attributes to the map client.
B12, the apparatus of B11, wherein the search module is further adapted to:
determining a circular area corresponding to a preset search radius value in a map by taking each traffic hub POI as a circular center;
and setting the circular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the circular area.
B13, the apparatus according to B12, wherein different search radius values with corresponding relationships are preset for maps of different scales, the search module is further adapted to:
acquiring a scale of a current map, and searching a search radius value corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the search radius value;
and taking each POI as a circular center, taking the searched search radius value as a target search radius, and determining a circular area corresponding to the target search radius value in the map.
B14, the apparatus of B11, wherein the search module is further adapted to:
determining a rectangular area corresponding to the side length of a preset rectangle in a map by taking each traffic hub POI as a rectangle center;
and setting the rectangular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the rectangular area.
B15, the apparatus according to B14, wherein different rectangle side lengths with corresponding relations are preset for maps of different scales, the search module is further adapted to:
acquiring a scale of a current map, and finding out the side length of a rectangle corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the side length of the rectangle;
and taking each traffic hub POI as a rectangle center, taking the found rectangle side length as the target rectangle side length, and determining a rectangular area formed by the target rectangle side length in the map.
B16, the device according to any one of B11-B15, further comprising:
the dividing module is suitable for dividing the map into a plurality of identical subunits if the analysis module analyzes that the target route does not pass through the POI (point of interest) of the transportation hub class based on the map data;
the searching module is suitable for searching subunits within a specified distance range from the target route from the subunits and defining the subunits as target subunits;
the searching module is also suitable for searching out the related information of POI with different attributes in each target subunit.
B17, the apparatus according to B16, wherein the lookup module is further adapted to:
defining each subunit as a unit distance;
and searching the sub-units within a specified number of unit distances from the target route from the plurality of sub-units, and defining the sub-units as target sub-units.
B18, the apparatus according to any one of B11-B15, wherein the return module is further adapted to:
classifying and aggregating the POI related information with different attributes obtained by searching according to the POI attributes;
and returning the classified and aggregated related information of the POI with different attributes to the map client.
B19, the apparatus according to any one of B11-B15, wherein the different attribute POIs comprise at least one of:
catering, shopping, lodging, traveling, cultural and sports entertainment, financial services and life services.
B20, the device according to any one of B11-B15, further comprising:
the determining module is suitable for determining the traffic preference of the user according to a pre-collected user map searching record after the searching module searches out the related information of the POI with different attributes in the preset range around each traffic hub POI;
the extraction module is suitable for extracting the traffic junction POI corresponding to the traffic preference of the user from the traffic junction POI passed by the target route;
the return module is also suitable for acquiring relevant information of POI with different attributes in a peripheral preset range of the traffic hub POI corresponding to the traffic preference of the user and preferentially returning the relevant information to the map client.
C21, a computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform a route-centric perimeter search method in a map search of any of a1-a 10.
D22, a computing device, comprising: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform a route-centric perimeter search method in a map search of any of A1-A10.

Claims (10)

1. A periphery searching method taking a line as a center in map searching comprises the following steps:
receiving a peripheral POI (point of interest) search request aiming at a target route sent by a map client, wherein the target route is a route planned according to the travel demand of a user;
analyzing whether the target route passes through a transportation junction POI or not based on the map data;
if yes, extracting the traffic hub POIs passed by the target route, and searching out relevant information of POIs with different attributes in a preset range around each traffic hub POI;
and returning the searched related information of the POI with different attributes to the map client.
2. The method according to claim 1, wherein the searching for the relevant information of the POIs with different attributes within the preset range around each transportation hub type POI comprises:
determining a circular area corresponding to a preset search radius value in a map by taking each traffic hub POI as a circular center;
and setting the circular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the circular area.
3. The method according to claim 2, wherein different search radius values with corresponding relations are preset for maps with different scales, and a circular area corresponding to the preset search radius value is determined in the map by taking each POI as a circular center, and the method comprises the following steps:
acquiring a scale of a current map, and searching a search radius value corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the search radius value;
and taking each POI as a circular center, taking the searched search radius value as a target search radius, and determining a circular area corresponding to the target search radius value in the map.
4. The method according to claim 1, wherein the searching for the relevant information of the POIs with different attributes within the preset range around each transportation hub type POI comprises:
determining a rectangular area corresponding to the side length of a preset rectangle in a map by taking each traffic hub POI as a rectangle center;
and setting the rectangular area as a peripheral preset range of the corresponding transportation hub POI, and searching out relevant information of POIs with different attributes in the rectangular area.
5. The method according to claim 4, wherein different rectangle sides with corresponding relations are preset for maps with different scales, and a rectangle area corresponding to the preset rectangle sides is determined in the map by taking each POI as a rectangle center, comprising:
acquiring a scale of a current map, and finding out the side length of a rectangle corresponding to the map of the current scale according to the corresponding relation between the maps of different scales and the side length of the rectangle;
and taking each traffic hub POI as a rectangle center, taking the found rectangle side length as the target rectangle side length, and determining a rectangular area formed by the target rectangle side length in the map.
6. The method of any of claims 1-5, further comprising:
if the target route does not pass through the transportation junction POI based on the map data analysis, dividing the map into a plurality of identical subunits;
searching subunits within a specified distance range from the target route from the subunits, and defining the subunits as target subunits;
and searching out the related information of POI with different attributes in each target subunit.
7. The method of claim 6, wherein finding a subunit from the plurality of subunits that is within a specified distance from the target route and defining as a target subunit comprises:
defining each subunit as a unit distance;
and searching the sub-units within a specified number of unit distances from the target route from the plurality of sub-units, and defining the sub-units as target sub-units.
8. A periphery searching device centering on a line in map search comprises:
the system comprises a receiving module, a searching module and a searching module, wherein the receiving module is suitable for receiving a peripheral POI searching request aiming at a target route sent by a map client side, and the target route is a route planned according to the travel demand of a user;
the analysis module is suitable for analyzing whether the target route passes through the POI (point of interest) of the transportation hub class or not based on the map data;
the searching module is suitable for extracting the traffic hub POIs passed by the target route and searching out the related information of the POIs with different attributes in the preset range around each traffic hub POI if the analyzing module analyzes that the target route passes through the traffic hub POIs based on the map data;
and the return module is suitable for returning the searched related information of the POI with different attributes to the map client.
9. A computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform the route-centric perimeter search method in a map search of any one of claims 1-7.
10. A computing device, comprising: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform the route-centric perimeter search method in a map search of any of claims 1-7.
CN201910229058.6A 2019-03-25 2019-03-25 Method and device for searching periphery with route as center in map search Pending CN111737597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910229058.6A CN111737597A (en) 2019-03-25 2019-03-25 Method and device for searching periphery with route as center in map search

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910229058.6A CN111737597A (en) 2019-03-25 2019-03-25 Method and device for searching periphery with route as center in map search

Publications (1)

Publication Number Publication Date
CN111737597A true CN111737597A (en) 2020-10-02

Family

ID=72646284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910229058.6A Pending CN111737597A (en) 2019-03-25 2019-03-25 Method and device for searching periphery with route as center in map search

Country Status (1)

Country Link
CN (1) CN111737597A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364250A (en) * 2020-12-01 2021-02-12 武汉大根科技发展有限公司 Data communication service system based on big data
CN113175940A (en) * 2021-04-26 2021-07-27 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364250A (en) * 2020-12-01 2021-02-12 武汉大根科技发展有限公司 Data communication service system based on big data
CN113175940A (en) * 2021-04-26 2021-07-27 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium
CN113175940B (en) * 2021-04-26 2024-04-30 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11449919B2 (en) Commodity recommendation method and commodity recommendation device
US11662220B2 (en) Method and server for delivering information to user terminal
US10417696B2 (en) Suggestion generation based on planogram matching
JP6338635B2 (en) Information retrieval method and information retrieval system based on geographical location
CN110726418B (en) Method, device and equipment for determining interest point region and storage medium
US10497043B2 (en) Online clothing e-commerce systems and methods with machine-learning based sizing recommendation
TWI441538B (en) System and method for preferred services in nomadic environments
CN104346370A (en) Method and device for image searching and image text information acquiring
CN109478184A (en) Identification, processing and display data point cluster
CN108712712B (en) Wireless fidelity WiFi network associated information display method and device
US20210256540A1 (en) Alcohol information management system and management method
CN111737597A (en) Method and device for searching periphery with route as center in map search
WO2020043070A1 (en) Customer flow line and customer flow hot zone determining method and apparatus
CN114547386A (en) Positioning method and device based on Wi-Fi signal and electronic equipment
KR20120132137A (en) Method and system of providing goods information using multiple category classification
CN111369284B (en) Target object type determining method and device
CN111581245B (en) Data searching method and device
JP2017191500A (en) Device for providing point information to portable terminal, method, and program
WO2021081767A1 (en) Method and device for determining location point, electronic device, and computer-readable medium
JP2017191498A (en) Apparatus, method and program
CN110851704A (en) Multi-class service system and method
JP2018045551A (en) Determination device, determination method, and determination program
WO2022048160A1 (en) Data processing method, device and apparatus, and computer-readable storage medium
US20210256081A1 (en) Clustering and coranking of multi-source location data
AU2017362948A1 (en) System and method for providing real-time inventory information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination