1. Technical Field
Embodiments of the present disclosure relate to search technology, and particularly to a map searching system and method.
2. Description of Related Art
Map searching services provide a convenient function of querying target content, such as, information of path planning, food information or tour information, for example. Most map searching software generally uses a keyword or a place name to search target information. However, there is often a plurality of information having the same keyword (s), which is inconvenient to search the target information. Furthermore, although a search place corresponding to the place name can be located, the target information in a desired area having no accurate place name cannot be searched conveniently and quickly. Users also cannot search target information of a self-define area.
The disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware unit, or to a collection of software instructions, written in a programming language. One or more software instructions in the modules may be embedded in firmware unit, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media may include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The storage device 10 stores preset image layers of an electronic map, the image layers correspond to different hierarchies. In some embodiments, the electronic map may be a navigation map including information (e.g. position names, position information) of a plurality of places, or be a map including information of e-books of an electronic library, or be a map including information of electronic products of an electronic supermarket. The different hierarchies of the image layers represent different scaling (e.g. zoom in/out with different proportions) or different time periods of the image layers of the electronic map.
In one embodiment, each image layer of the electronic map is drawn with a mesh data structure by dividing each image layer into two dimensional (2D) mesh arrays, which include a plurality meshes. Each mesh of one image layer has a same size, and each mesh represents a pixel of the image layer. Each mesh corresponds to a unique code, and each mesh can be divided into smaller sub-meshes.
The storage device 10 further stores query data corresponding to the code of each mesh in the different hierarchies. The query data represents parameters or information of target objects in the each mesh, such as, position information, a name, an introduction, a category, a miniature of each of the target object, for example. The target object may be a place in the electronic map, an electronic bibliography in an electronic library map, or an electronic entry in an electronic supermarket map.
The client device 2 includes a display screen 20. When the client device 2 requests an image layer to query a target object from the server device 1, the server device 1 provides a user interface 21 to be displayed on the display screen 20. A user can use a mouse, a finger or a stylus to touch or slide an area on the image layer displayed on the display screen 20 to select the area. The selected area is regarded as the query area. The user interface 21 initially displays an image layer of a hierarchy (e.g. the first hierarchy), and provides several functions for users to execute operations on the image layer, such as, functions of zooming in, zooming out, or time period selections, for example.
In step S110, the sending module 110 sends an image layer of the electronic map to the client device 2, when the client device 2 requests the image layer from the server device 1. Users can use the functions on the user interface 21 to zoom in/out or to select different time periods, and the sending module 110 sends the corresponding hierarchy of image layer to the client device 2. In one embodiment, if one hierarchy of image layer has been sent to the client device to be stored in a storage system in the client device 2 temporarily, the sending module 110 does not send the hierarchy of image layer again. In one embodiment, if the client device 2 does not select hierarchy of image layer by zooming in/out or selecting different time periods, step S111 is implemented directly.
In step S111, the confirmation module 111 confirms a query area by determining an area selected on the image layer displayed on the display screen 20 to be the query area. The confirmation module 111 confirms the query area by recording codes of meshes in the selected area, and modifying correlation attributions of the meshes to be “true”. The users can use a mouse, a finger or a stylus to select an area on the image layer. The query area can be selected using a preset regular shape (e.g. a circle, a rectangle, or a polygon) or an irregular shape randomly operated by the user.
As shown in
In step S112, when a predetermined search command is received from the client device 2, the parsing module 112 parses the query area and a preselected query category from the user interface 21 to be query information according to a preset format. The preset search command may be triggered by a virtual icon on the display screen 20, or by a button of the client device 2, or triggered after the mouse, the finger or the stylus leaves the display screen 20 and the query area is confirmed. The preset format may be set as “{Hierarchy: 3, query category: fine food, query area: [{HMID:A113}; {HMID:A124}; {HMID:A123}; {HMID:A132}; {HMID:A131}; {HMID:A142}]}. The preset format also can be preset according to actual requirements to make a search be faster and more convenient.
In step S113, the querying module 113 compares the query information with the query data in the storage device 10, and obtains query results of the query information according to the comparison results. In one embodiment, the querying module 113 determines a hierarchy of the image layer according to a hierarchy of the query information, and determines codes of meshes in the query area of the query information. The querying module 113 further confirms one or more target objects which categories match the preselected query category of the query information according to the query data corresponding to the determined codes. The query data of the one or more target objects is determined to be the query results.
In step S114, the output module 114 outputs the query results in a preset display format to the client device 2 for displaying on the display screen 20 of the client device 2. The preset display format may be an anchor point format, or a list entry format. The output module 114 extracts one or more parameters of the one or more target objects according to the preset display format.
For example, if the preset display format is the anchor point format, the output module 114 may extract position information and names of the one or more target objects. The output module 114 outputs the extracted position information and names to the client device 2, and marks the extracted position information with the corresponding names on the image layer to display the query results. If the preset display format is the list entry format, the output module 114 may extract the names of the one or more target objects. The output module 114 outputs the extracted names to the client device 2, and displays a list of the names of the one or more target objects on the display screen 20.
In one embodiment, if one target object is selected by selecting the position information or the name displayed on the display screen 20 is selected, the output module 114 may output all the parameters of the target object to the client device 2 for displaying on the display screen 20 of the client device 2.
All of the processes described above may be embodied in, and be fully automated via, functional code modules executed by one or more general-purpose processors. The code modules may be stored in any type of non-transitory computer-readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory computer-readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
The described embodiments are merely possible examples of implementations, set forth for a clear understanding of the principles of the present disclosure. Many variations and modifications may be made without departing substantially from the spirit and principles of the present disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the described inventive embodiments, and the present disclosure is protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2013101868445 | May 2013 | CN | national |