CN104166735B - Map search method and device - Google Patents
Map search method and device Download PDFInfo
- Publication number
- CN104166735B CN104166735B CN201410449553.5A CN201410449553A CN104166735B CN 104166735 B CN104166735 B CN 104166735B CN 201410449553 A CN201410449553 A CN 201410449553A CN 104166735 B CN104166735 B CN 104166735B
- Authority
- CN
- China
- Prior art keywords
- search
- map
- module
- searching
- map search
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000010586 diagram Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of map search method and devices, wherein map search method includes:It is asked in response to map search, according to offline map datum situation and Network status, offline map search and/or Online Map is selected to search for;It is scanned for using selected way of search, and exports search result.Map search device includes:Ask respond module, for responding map search request, triggering way of search selecting module scans for the selection of mode;Way of search selecting module, for according to offline map datum situation and Network status, offline map search and/or Online Map being selected to search for;Map search module, the way of search for being selected according to way of search selecting module carries out offline map search and/or Online Map is searched for;As a result output module is used for the search result of output map search module.The present invention can reasonably select to execute offline map search and Online Map search, to be supplied to user's preferably search result.
Description
Technical Field
The present invention relates to search technologies, and in particular, to a map search method and apparatus.
Background
In the prior art, when a user searches a map, the situation that the result cannot be searched often occurs. At this time, the user can call the service telephone of the map product to complain or replace the map product. However, both of these approaches generally fail to truly address the objective requirements of users to obtain map search results. How to realize more intelligent map search is a problem to be solved today.
Disclosure of Invention
Embodiments of the present invention provide a map search method and apparatus, which can reasonably select to execute an offline map search and an online map search, thereby providing a better search result to a user.
In order to achieve the above object, an embodiment of the present invention provides a map search method, including: responding to a map search request, and selecting offline map search and/or online map search according to the offline map data condition and the network condition; and searching by using the selected searching mode, and outputting a searching result.
An embodiment of the present invention further provides a map search apparatus, including: the device comprises a request response module, a search mode selection module, a map search module and a result output module; the request response module is used for responding to a map search request and triggering the search mode selection module to select a search mode; the searching mode selecting module is used for selecting off-line map searching and/or on-line map searching according to the off-line map data condition and the network condition; the map searching module is used for performing off-line map searching and/or on-line map searching according to the searching mode selected by the searching mode selecting module; and the result output module is used for outputting the search result of the map search module.
The map searching method and the map searching device can select the searching mode according to the data condition and the network condition of the off-line map, thereby reasonably selecting and executing the off-line map searching and/or the on-line map searching according to the current environment, and ensuring that a user does not need to care whether the off-line map data is downloaded, whether the network exists, the network condition and the like when the user searches the map, and better searching results are provided for the user.
Drawings
Fig. 1 is a flowchart illustrating a map search method according to a first embodiment of the present invention.
Fig. 2 is a schematic diagram of a search mode selection mechanism according to a first embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a map search apparatus according to a second embodiment of the present invention.
Fig. 4 is a second schematic structural diagram of a map search apparatus according to a second embodiment of the present invention.
Detailed Description
Example one
Fig. 1 is a schematic flowchart of a map search method according to a first embodiment of the present invention, and as shown in fig. 1, the map search method according to the present embodiment includes the following steps:
step 101: in response to a map search request, an offline map search and/or an online map search is selected based on offline map data conditions and network conditions. Here, the map search request may be a map search request generated by a user clicking a key operation for performing a map search on the user terminal, or may be a map search request generated by another program installed on the user terminal.
In the embodiment of the present invention, the search mode is no longer selected according to the preset settings set by the search option, but is selected according to the offline map data status and the network status when the user performs the map search, where the offline map data status may be: whether the off-line map data has been downloaded, whether the off-line map data is complete, whether the off-line map data is map data of an area where the user terminal is currently located, and the like, and the network condition may be whether a network connection exists in an environment where the user terminal is located, whether a network signal is available, whether a network delay is within a reasonable range, whether a network speed meets requirements, and the like.
In addition, in this step, before the search is performed using the selected search method, an operation of acquiring a keyword for map search input by the user may be further included, where the keyword may generally include a point of interest (POI) name keyword and/or a portal address keyword.
Further, the obtaining of the keyword for map search input by the user may specifically be: responding to the operation of inputting keywords by a user, associating and displaying the input keywords according to the search mode selected by the user, and responding to the keyword selection operation of the user to obtain the keywords selected by the user. In a specific application, when a user inputs a keyword, the user terminal may automatically perform association, first several of the association results may preferentially display a matching item in the search history, followed by less than 10 association results, and, in a general case, if an online map search is selected to be performed, the online association is used, and an offline map search is used, the offline association is used, thereby providing an association result corresponding to the selected search manner.
Step 102: and searching by using the selected searching mode, and outputting a searching result. Since the search results are generally multiple items, a certain ranking is required, and preferably, the ranking is performed according to the matching degree with the keywords or the distance from the position of the user terminal.
Based on the map searching method of the embodiment, when a user searches a map, the user does not need to care whether offline map data are downloaded or not, whether a network exists or not, the network condition and the like, and the user terminal can reasonably select to execute offline map searching and/or online map searching according to the current environment, so that a better searching result is provided for the user.
The selection mechanism of the search method will be described in detail below, and as an example, in step 101, the selection mechanism of the search method may be as shown in fig. 2 (for example, beijing), and different contents may be prompted or displayed according to the conditions that the search result is empty, the search result is not empty, and the search time is over. Specifically, the selection mechanism in step 101 can be classified into the following cases:
case a: an online map search is conducted in the absence of offline map data corresponding to the map search request and in the presence of available networks.
In this case, the search range may first be determined in the geographical sub-area in which the user terminal is located. Correspondingly, if a matching search result is obtained, outputting the search result may specifically be to sort and output the search result according to the matching degree with the keyword or the distance from the location where the user terminal is located.
If no matching search result is obtained or in response to a large area search request of the user (for example, the user is not satisfied with the search result in the range of the current geographic sub-area, the re-search is selected to be performed in the range of the large area through a key or an option on the human-computer interaction interface, and the like), the search range is determined to be used for searching in the large area. Correspondingly, in the case of determining the search range to search in a large area, outputting the search result includes: and outputting the names of the plurality of geographical sub-areas and the number of the search results corresponding to each geographical sub-area, and sequencing according to the number of the search results. The large area may include a plurality of geographical sub-areas, and in practical applications, the large area may be a large administrative area of a province or a country, and correspondingly, the geographical sub-areas may be administrative areas such as cities. When a large area search is performed, the search results may be displayed in a list of recommended provinces and cities and the corresponding number of search results.
Case B: offline map searches are conducted in the presence of offline map data and no available networks. In the case of an off-line map search, the search range is preferably determined to be in the current geographical sub-area in which the user terminal is located. In actual use, the user terminal generally downloads or caches an offline map of a geographic sub-area in which the user terminal is located (if the user frequently moves in the geographic sub-area), and therefore, it is reasonable to set the search range in the current geographic sub-area in an offline state. Correspondingly, the operation of outputting the search result in step 102 may specifically be: and sorting and outputting the search results according to the matching degree with the keywords or the distance between the search results and the position of the user terminal.
Case C: in the presence of offline map data and available networks, offline map searches and/or online map searches are selected according to user preference settings. In the case where the user preference is set to prioritize the online map search, the network status may be further determined, and if the network status is above a preset criterion (e.g., the network status is good), the online map search may be performed, and if the network status is below the preset criterion (e.g., in a weak network environment), the offline map search may be performed. And if the user preference is set to be the priority of the offline map search, directly performing the offline map search. The specific manner of outputting the search result may be the same as the offline map search and the online map search in the above-described case a and case B. Of course, a mode of combining offline map search and online map search may also be adopted according to specific situations, for example, a mode of mainly offline map search and secondarily online map search is adopted, so that network traffic can be saved for a user, and a more preferable search result can be provided.
Case D: and under the condition that the off-line map data corresponding to the map search request does not exist and the available network does not exist, not performing the map search and returning the result of the search failure.
The situations A and B are not influenced by user preference setting or search option setting, selection is carried out according to the judgment result of the user terminal, and further selection is carried out according to the user preference setting only under the situation C, so that objective conditions of the user terminal are reasonably combined with the user preference, and an optimal map search mode is provided for the user. In addition, under the condition that online map searching can be carried out, a mechanism for further selecting searching in a large area is provided for the user, and wider searching can be further carried out according to the requirement of the user, so that the user requirement under various use conditions can be met, and the user experience is greatly improved.
Example two
Fig. 3 is a schematic structural diagram of a map search apparatus according to a second embodiment of the present invention, and as shown in fig. 3, the map search apparatus of the present embodiment includes: the map search system comprises a request response module 1, a search mode selection module 2, a map search module 3 and a result output module 4.
The request response module 1 is used for responding to a map search request and triggering the search mode selection module 2 to select a search mode.
The searching mode selecting module 2 is used for selecting off-line map searching and/or on-line map searching according to the off-line map data condition and the network condition. After the searching mode selection module 2 selects the searching mode, the map searching module 3 is triggered to execute a specific searching operation.
Specifically, as shown in fig. 3, the searching method selecting module 2 may further include: a first selection sub-module 21 for selecting an online map search in the case where there is no offline map data corresponding to the map search request and there is an available network; a second selection submodule 22 for selecting an offline map search in the presence of offline map data corresponding to the map search request and in the absence of an available network; a third selection sub-module 23 for selecting an offline map search and/or an online map search according to the user preference setting in the case where there is offline map data corresponding to the map search request and there is an available network. In the third selecting sub-module 23, selecting to perform offline map search and/or online map search according to the user preference setting may specifically be: and under the condition that the user preference is set as the online map search priority, further judging the network condition, if the network condition is more than a preset standard, selecting online map search, and if the network condition is lower than the preset standard, selecting offline map search. The first to third selection sub-modules correspond to the cases a to C in the first embodiment, respectively, and for the case D, the search mode selection module 2 may not perform the selection operation, that is, does not perform the map search, and directly returns the result of the search failure.
And the map searching module 3 is used for performing off-line map searching and/or on-line map searching according to the searching mode selected by the searching mode selecting module. Further, in the case of performing an offline map search, the range of the offline map search may be determined in the current geographical sub-area where the user terminal is located, and the offline map search may be performed. In the case of performing online map search, the search range may be determined in a geographic sub-area where the user terminal is located and searched, and if a matching search result is not obtained or a large area search request of the user is responded, the search range may be determined in a large area and searched, where the large area includes a plurality of geographic sub-areas.
And the result output module 4 is used for outputting the search result of the map search module 3. As for the manner of outputting the search results, it is preferable that the search results are sorted and output according to the degree of matching with the keyword or the distance from the location of the user terminal. In practical applications, different result output modes can be adopted according to different selected search modes. For example, the result output module 4 may include, corresponding to the manner of offline map search: and a first sorting output module 41, configured to, in the case of performing an offline map search, sort and output the search results according to the matching degree with the keywords or the distance from the location where the user terminal is located. Corresponding to the manner of online map search, the result output module may include: and a second sorting output module 42, configured to, after the search range is determined to be searched in the geographic sub-area where the user terminal is located, sort and output the search results according to the matching degree with the keyword or the distance from the location where the user terminal is located, where the matched search results are obtained. The result output module may further include: and a third sorting output module 43, configured to output names of a plurality of geographic sub-areas and the number of search results corresponding to each geographic sub-area when the search range is determined to be searched in a large area, and sort according to the number of search results. The result output module 4 may include only one or any two or all of the first sorting output module 41, the second sorting output module 42 and the third sorting output module 43.
In addition, as shown in fig. 4, which is a second schematic structural diagram of the map search apparatus according to the second embodiment of the present invention, further, the map search apparatus according to the present embodiment may further include: the keyword obtaining module 5 is configured to obtain keywords for map search, and provide the keywords to the map searching module 3, where the keywords may generally include a point of interest (POI) name keyword and/or a portal address keyword. In addition, the keyword obtaining module 5 may further include a keyword associating module 51, configured to associate and display the input keywords according to a search mode selected by the user in response to an operation of inputting the keywords by the user, and obtain the keywords for map search selected by the user in response to the operation of selecting the keywords by the user, where the search mode is offline map search and/or online map search. Through the keyword association module, the interaction usability can be improved, and the operation of a user is more convenient.
Based on the map searching device of the embodiment, when a user searches a map, the user does not need to care whether offline map data are downloaded or not, whether a network exists or not, the network condition and the like, and the user terminal can reasonably select to execute offline map searching and online map searching according to the current environment, so that a better searching result is provided for the user. Furthermore, the objective condition of the user terminal can be reasonably combined with the user preference, and an optimal map searching mode is provided for the user. In addition, under the condition that online map searching can be carried out, a mechanism for further selecting searching in a large area is provided for the user, and wider searching can be further carried out according to the requirement of the user, so that the user requirement under various use conditions can be met, and the user experience is greatly improved.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (12)
1. A map search method, comprising:
responding to a map search request, and selecting offline map search and/or online map search according to the offline map data condition and the network condition;
searching by using the selected searching mode and outputting a searching result; wherein,
selecting an offline map search and/or an online map search according to the offline map data condition and the network condition includes:
and under the conditions that the off-line map data corresponding to the map search request exists and the available network exists, under the condition that the user preference is set as the priority of on-line map search, further judging the network condition, if the network condition is more than a preset standard, carrying out on-line map search, and if the network condition is lower than the preset standard, carrying out off-line map search.
2. The method of claim 1, wherein selecting offline map searches and/or online map searches based on offline map data conditions and network conditions comprises:
performing an online map search in the absence of offline map data corresponding to the map search request and in the presence of an available network;
an offline map search is conducted if there is offline map data corresponding to the map search request and there is no available network.
3. The method of claim 1, further comprising, prior to searching using the selected search mode:
and acquiring keywords for map search, wherein the keywords comprise interest point name keywords and/or portal address keywords.
4. The method of claim 3, wherein the obtaining the keywords for the map search input by the user comprises:
responding to the operation of inputting keywords by a user, associating and displaying the input keywords according to the searching mode selected by the user, and responding to the keyword selection operation of the user to obtain the keywords selected by the user and used for map searching; the searching mode is off-line map searching and/or on-line map searching.
5. The method according to claim 1, wherein in the step of searching using the selected search method, the search range is determined in a current geographical sub-area where the user terminal is located.
6. The method of claim 5, wherein outputting the search results comprises: and sorting and outputting the search results according to the matching degree with the keywords or the distance between the search results and the position of the user terminal.
7. A map search apparatus, comprising: the device comprises a request response module, a search mode selection module, a map search module and a result output module; wherein,
the request response module is used for responding to a map search request and triggering the search mode selection module to select a search mode;
the searching mode selecting module is used for selecting off-line map searching and/or on-line map searching according to the off-line map data condition and the network condition;
the map searching module is used for performing off-line map searching and/or on-line map searching according to the searching mode selected by the searching mode selecting module;
the result output module is used for outputting the search result of the map search module;
wherein, the searching mode selecting module comprises: a third selection sub-module, configured to further determine a network status when the offline map data corresponding to the map search request exists and an available network exists and when a user preference is set to be an online map search priority, select an online map search if the network status is above a preset criterion, and select an offline map search if the network status is below the preset criterion.
8. The apparatus of claim 7, wherein the search mode selection module further comprises:
a first selection sub-module for selecting an online map search if there is no offline map data corresponding to the map search request and there is an available network;
a second selection sub-module to select an offline map search if there is offline map data corresponding to the map search request and there is no available network.
9. The apparatus of claim 7, further comprising:
the map search system comprises a keyword acquisition module, a map search module and a keyword search module, wherein the keyword acquisition module is used for acquiring keywords for map search and providing the keywords for the map search module, and the keywords comprise interest point name keywords and/or portal address keywords.
10. The apparatus of claim 9, wherein the keyword obtaining module comprises:
and the keyword associating module is used for responding to the operation of inputting the keywords by the user, associating and displaying the input keywords according to the searching mode selected by the user, responding to the keyword selecting operation of the user, and acquiring the keywords selected by the user and used for map searching, wherein the searching mode is off-line map searching and/or on-line map searching.
11. The device of claim 10, wherein in the map search module, a search range is determined in a current geographical sub-area where the user terminal is located, and the search is performed.
12. The apparatus of claim 7, wherein the result output module sorts and outputs the search results according to a degree of matching with the keyword or a distance from a location where the user terminal is located.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410449553.5A CN104166735B (en) | 2014-09-04 | 2014-09-04 | Map search method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410449553.5A CN104166735B (en) | 2014-09-04 | 2014-09-04 | Map search method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104166735A CN104166735A (en) | 2014-11-26 |
CN104166735B true CN104166735B (en) | 2018-09-28 |
Family
ID=51910548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410449553.5A Active CN104166735B (en) | 2014-09-04 | 2014-09-04 | Map search method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104166735B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102315891B1 (en) * | 2014-12-08 | 2021-10-21 | 삼성전자주식회사 | Method for providing point of interest and electronic device thereof |
CN107426278A (en) * | 2017-04-24 | 2017-12-01 | 阿里巴巴集团控股有限公司 | Call method, device and the mobile terminal of H5 applications |
CN108307069B (en) * | 2018-01-29 | 2020-08-07 | Oppo广东移动通信有限公司 | Navigation operation method, navigation operation device and mobile terminal |
CN109522345A (en) * | 2018-11-19 | 2019-03-26 | 百度在线网络技术(北京)有限公司 | For showing the method and device of information |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101093481A (en) * | 2006-06-22 | 2007-12-26 | 朱建宇 | Discrete tracked geographical information system |
CN101166211A (en) * | 2006-10-16 | 2008-04-23 | 琥珀媒体有限公司 | A method and system for providing network resource information and corresponding service |
CN101246476A (en) * | 2007-02-15 | 2008-08-20 | 北京腾瑞万里信息技术有限公司 | Map data downloading method, downloading device and server |
CN102449625A (en) * | 2009-05-26 | 2012-05-09 | 诺基亚公司 | Method and apparatus for automatic geo-location search learning |
CN102468989A (en) * | 2010-11-11 | 2012-05-23 | 腾讯科技(深圳)有限公司 | Method and system for processing network data |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020005866A1 (en) * | 2000-07-14 | 2002-01-17 | Space-Wise Technologies, Inc. | Method and system for creation of a spatially referenced multimedia relational database that can be transmitted among users or published to internet |
US20100306214A1 (en) * | 2009-05-28 | 2010-12-02 | Microsoft Corporation | Identifying modifiers in web queries over structured data |
-
2014
- 2014-09-04 CN CN201410449553.5A patent/CN104166735B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101093481A (en) * | 2006-06-22 | 2007-12-26 | 朱建宇 | Discrete tracked geographical information system |
CN101166211A (en) * | 2006-10-16 | 2008-04-23 | 琥珀媒体有限公司 | A method and system for providing network resource information and corresponding service |
CN101246476A (en) * | 2007-02-15 | 2008-08-20 | 北京腾瑞万里信息技术有限公司 | Map data downloading method, downloading device and server |
CN102449625A (en) * | 2009-05-26 | 2012-05-09 | 诺基亚公司 | Method and apparatus for automatic geo-location search learning |
CN102468989A (en) * | 2010-11-11 | 2012-05-23 | 腾讯科技(深圳)有限公司 | Method and system for processing network data |
Also Published As
Publication number | Publication date |
---|---|
CN104166735A (en) | 2014-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101747303B1 (en) | Method for recommendation of application, mobile terminal thereof and communication system thereof | |
JP5166949B2 (en) | RECOMMENDATION INFORMATION GENERATION DEVICE AND RECOMMENDATION INFORMATION GENERATION METHOD | |
CN102999619A (en) | Mobile terminal, server and method for realizing searching | |
CN104166735B (en) | Map search method and device | |
WO2018065939A1 (en) | Contextual search for location services | |
CN103942319B (en) | A kind of method and device of search | |
CN111651685A (en) | Interest point obtaining method and device, electronic equipment and storage medium | |
CN104092821A (en) | Icon hiding method and system of mobile terminal | |
US20190033094A1 (en) | Navigation apparatus, navigation method, and navigation system | |
CN102867031A (en) | Method and system for optimizing point of interest (POI) searching results, mobile terminal and server | |
US9195761B2 (en) | System and method for navigating documents | |
CN109154511A (en) | Along the search based on collection of route | |
CN110968801A (en) | Real estate product searching method, storage medium and electronic device | |
CN104090989A (en) | Website searching system and method based on mobile terminal | |
CN112395519A (en) | Method and device for generating interest points in road information | |
JP2012242844A (en) | Recommendation information generation device and recommendation information generation method | |
CN104933149A (en) | Information searching method and information searching device | |
CN107562747B (en) | Information display method and system, electronic equipment and database | |
KR20130102854A (en) | Search system and operation method thereof | |
CN106445955B (en) | Information query method, device and terminal | |
CN109470246A (en) | Navigation device | |
TW201627880A (en) | Service searching system and method | |
KR101352514B1 (en) | System for providing image patent map | |
WO2012164333A1 (en) | System and method to search, collect and present various geolocated information | |
KR102044009B1 (en) | System and method of providing information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |