Disclosure of Invention
In order to solve the above problems in the prior art, the present invention is directed to a map-based search system and method.
The technical scheme adopted by the invention is as follows: a map-based search system, comprising:
the keyword module is used for acquiring keywords input by a user;
the searching module is used for searching in a preset database based on the keywords and obtaining a searching result matched with the keywords;
the selection module is used for responding to the operation of the user to select the required result of the user from the search results;
the query module is used for querying in a preset database based on the required result and acquiring comprehensive information matched with the required result, wherein the comprehensive information comprises position information, product information and service information;
and the map display module is used for displaying the comprehensive information.
Preferably, the system further comprises a UI module, and the UI module is used for displaying the search results in sequence based on the matching degree of the keywords.
Preferably, the predetermined database includes a location database and a product database.
Preferably, the search result comprises a location result and a product result, and when the required result is the location result, the query module queries and obtains product information and service information matched with the location result in the product database; and when the required result is a product result, the query module queries the position database and obtains the position information matched with the product result.
The other technical scheme adopted by the invention is as follows: a map-based search method, comprising the steps of:
acquiring keywords input by a user;
searching in a preset database based on the keywords and obtaining a search result matched with the keywords;
selecting a required result of the user from the search results in response to the operation of the user;
inquiring in a preset database based on the required result and obtaining comprehensive information matched with the required result, wherein the comprehensive information comprises position information, product information and service information;
and displaying the comprehensive information.
Preferably, the search method further includes: and displaying the search results in sequence based on the matching degree of the keywords.
Preferably, the predetermined database includes a location database and a product database.
As a preferred mode, the search result comprises a position result and a product result, and if the required result is the position result, product information and service information matched with the position result are inquired and obtained in the product database; and if the required result is a product result, inquiring and obtaining the position information matched with the product result in the position database.
The invention has the beneficial effects that:
the invention provides a searching system and a searching method based on a map, which can realize the interconnection and intercommunication of positions and products and services, and a user can search the accurate positions of the products and the services by searching the products; the user searches the position and can see the products and services provided by the position. The invention associates the position with the product and the service, provides more efficient product and service display opportunities and more convenient search result service, and greatly improves the user experience.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the invention described herein without inventive step, shall fall within the scope of protection of the invention.
The embodiment provides a map-based search system which comprises a keyword module, a search module, a UI module, a selection module, an inquiry module and a map display module.
The keyword module is used for acquiring keywords input by a user, and the keywords are keywords input by the user in the search box. The keyword is, for example, a chinese character, an english character, a latin character, a greek character, a numeral, a symbol, or a combination thereof. Further, the obtaining of the keyword 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. Wherein the first few of the associated results may preferentially display matches in the search history, followed by the few associated results. In another embodiment, when the user adopts voice input, the voice content input by the user in a voice mode is received, voice recognition is carried out, and the recognized voice content is used as a keyword.
The search module is used for searching in a preset database based on the keywords and obtaining a search result matched with the keywords. The reservation database includes a location database in which location information of a plurality of products is stored, and a product database in which product information and service information of a plurality of products is stored. After the user inputs the keywords, the search module searches the keywords in the position database and the product database at the same time and obtains search results matched with the keywords.
And the UI module is used for displaying the search results in sequence based on the matching degree of the keywords, and preferentially displaying the search results with higher matching degree. The method comprises the steps that a keyword module acquires a first keyword input by a user, a search module starts a first search thread, the search module executes a search thread again when the user inputs a keyword, the previous search thread is stopped, and a UI (user interface) module displays search results in real time until the user inputs all keywords. Therefore, the search result can be dynamically displayed, the input of the user is reduced, and the search efficiency is improved.
The selection module is used for responding to the operation of the user to select the required result of the user from the search results, and the required result is the result which the user wants to search.
The query module is used for querying in a preset database based on the required result and obtaining comprehensive information matched with the required result, wherein the comprehensive information comprises position information, product information and service information, the position information is stored in the position database, and the product information and the service information are stored in the product database. The user clicks on a desired result through the selection module and the query module responds to the click event.
And the map display module is used for displaying the comprehensive information. After a user inputs keywords, the search module searches in the position database and the product database at the same time according to the keywords, the position database and the product database return matched search results, the search results are transmitted to the UI module, and the UI module displays the search results according to the matching degree; the user clicks a required result in the search results, the UI module transmits the ID of the required result to the query module, and the query module queries specific comprehensive information in the position database and the product database; the search result comprises a position result and a product result, when the selection module selects the position result, the query module queries and obtains product information and service information matched with the position result in the product database, and the map display module displays the product information and the service information on a map; when the selection module selects a product result, the query module queries and obtains position information matched with the product result in the position database, and the map display module displays the position information on a map.
As shown in fig. 1, the embodiment further provides a map-based search method, which is applied to the map-based search system, and includes the following steps:
acquiring keywords input by a user through a keyword module;
based on the keywords, simultaneously searching in a position database and a product database through a searching module, and obtaining a searching result matched with the keywords, wherein the searching result comprises a position result and a product result;
based on the matching degree of the keywords, displaying the search results in sequence through a UI module, such as displaying on a mobile phone or a computer screen;
responding to the operation of the user, such as clicking by the user, and selecting a required result of the user from the search results through a selection module;
based on the required result, inquiring in a position database and a product database through an inquiring module and obtaining comprehensive information matched with the required result;
and displaying the comprehensive information on a map display module, wherein the comprehensive information comprises position information, product information and service information.
When the user selects a position result, inquiring and obtaining product information and service information matched with the position result in the product database based on the position result, and then displaying the product information and the service information on a map; when a product result is selected, location information matching the product result is queried and obtained in the location database based on the product result, and then displayed on a map.
The searching method of the invention can realize the interconnection and intercommunication of the position, the product and the service. The user can search the product and the accurate position of the product and the service; the user searches the position and can see the products and services provided by the position. The invention associates the position with the product and the service, provides more efficient product and service display opportunities and more convenient search result service, and greatly improves the user experience.
Based on the above description, one skilled in the art will appreciate that all of the features disclosed in this specification (including the accompanying claims, abstract and drawings), and all of the processes or elements of any apparatus or device so disclosed, may be combined in any combination, except combinations where mutually exclusive of such features are present. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or other suitable processor may be used in practice to implement some or all of the functionality of some of the modules according to embodiments of the invention. The present invention may also be embodied as apparatus programs (e.g., computer programs and computer program products) for performing a portion or all of the apparatus described herein. Such a program implementing the invention may be stored on a storage medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the specific embodiment of the present invention or the description thereof, and the protection 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 the changes or substitutions should be covered within the protection scope of the present invention. The protection scope of the present invention shall be subject to the protection scope of the claims.