CN104657065B - A kind of method, terminal and server obtaining search result - Google Patents
A kind of method, terminal and server obtaining search result Download PDFInfo
- Publication number
- CN104657065B CN104657065B CN201310590546.2A CN201310590546A CN104657065B CN 104657065 B CN104657065 B CN 104657065B CN 201310590546 A CN201310590546 A CN 201310590546A CN 104657065 B CN104657065 B CN 104657065B
- Authority
- CN
- China
- Prior art keywords
- search
- region
- information
- keyword
- index
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
Abstract
The invention discloses a kind of method, terminal and servers for obtaining search result, belong to field of map search.The described method includes: obtaining keyword according to character or text information that user inputs in such a way that touching is write on map;Obtain the marginal information for the region of search that the user draws on the map;The area information in the keyword and described search region is sent to server according to the marginal information;The search result that the server returns is received, described search result includes searching for the description information and address information of target.The present invention inputs character or text information in such a way that touching is write, and region of search is drawn on map using gesture, it recognizes the mode for obtaining search result closer to the daily behavior of user, and then guarantees that the region that user draws is that the user wants the region searched for.
Description
Technical field
The present invention relates to field of map search, in particular to a kind of method, terminal and server for obtaining search result.
Background technique
With the fast development of map search technology, map search in people's lives using more and more common.
When user wants some search target of search, such as the search target can be trade company or place etc., which can be on ground
Obtain the corresponding search result of search target on figure, such as the search result may include retouching for some trade company or some place
State information and address information.
Currently, a kind of method for obtaining search result is provided, specifically: terminal receives the keyword of user's input, and
The current location of the keyword and the terminal is sent to server by the current location for obtaining the terminal;Server receives the pass
The current location of keyword and the terminal, according to the keyword, centered on the current location by the terminal and radius is present count
The corresponding search result of the keyword is searched in the region of search of value, which is sent to the terminal, the terminal is at it
The search result is shown on the map of display.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
The radius of region of search in the prior art is set in advance, when user wants to adjust the region of search,
The user needs to adjust the radius of the region of search, and adjust it is complicated for operation, cause obtain search result time it is longer, and
Region of search in the prior art may not be the region searched for required for user.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method, terminals for obtaining search result
And server.The technical solution is as follows:
In a first aspect, providing a kind of method for obtaining search result, which comprises
According to character or text information that user inputs in such a way that touching is write on map, keyword is obtained;
Obtain the marginal information for the region of search that the user draws on the map;
The area information in the keyword and described search region is sent to server according to the marginal information;
The search result that the server returns is received, described search result includes searching for description information and the address of target
Information.
Second aspect provides a kind of method for obtaining search result, which comprises
The area information of keyword and region of search that terminal is sent is received, the keyword is the terminal according to user
What the character or text information inputted in such a way that touching is write on map obtained, described search region is that the user exists
The region drawn on the map;
Search result is obtained according to the keyword and the area information in described search region, described search result includes searching
Rope mesh target description information and address information;
Described search result is sent to the terminal.
The third aspect, provides a kind of terminal, and the terminal includes:
First obtains module, and the character or text for being inputted in such a way that touching is write on map according to user are believed
Breath obtains keyword;
Second obtains module, for obtaining the marginal information for the region of search that the user draws on the map;
First sending module, the region for sending the keyword and described search region according to the marginal information are believed
It ceases to server;
First receiving module, the search result returned for receiving the server, described search result include search mesh
Target description information and address information.
Fourth aspect, provides a kind of server, and the server includes:
Third receiving module, for receiving the keyword of terminal transmission and the area information of region of search, the keyword
It is that terminal is obtained according to the character or text information that user inputs in such a way that touching is write on map, described search area
Domain is the region that the user draws on the map;
Third obtains module, for obtaining search result according to the keyword and the area information in described search region,
Described search result includes searching for the description information and address information of target;
Second sending module, for described search result to be sent to the terminal.
In embodiments of the present invention, user is in such a way that touching is write at map inputing characters or text information, end
The character or text information that end is inputted according to user obtain keyword, and user can also draw one using gesture on map
A region of search, terminal obtain the marginal information of the region of search, according to the marginal information of the region of search send keyword and
The area information of the region of search searches server according to the keyword and the acquisition of the area information of the region of search to server
Rope as a result, and the search result that will acquire be shown in the region of search.Wherein, user is in such a way that touching is write in map
Inputing characters or text information and user use gesture to draw region of search on map, make the side for obtaining search result
Formula is recognized closer to the daily behavior of user, and then guarantees that the region that user draws is that the user wants the region searched for.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of method flow diagram for acquisition search result that the embodiment of the present invention one provides;
Fig. 2 is a kind of method flow diagram for obtaining search result provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of interface schematic diagram for obtaining keyword provided by Embodiment 2 of the present invention;
Fig. 4 is another interface schematic diagram for obtaining keyword provided by Embodiment 2 of the present invention;
Fig. 5 is a kind of interface schematic diagram for obtaining region of search provided by Embodiment 2 of the present invention;
Fig. 6 is a kind of interface schematic diagram for showing search result provided by Embodiment 2 of the present invention;
Fig. 7 is a kind of method flow diagram for acquisition search result that the embodiment of the present invention three provides;
Fig. 8 is a kind of terminal structure schematic diagram that the embodiment of the present invention four provides;
Fig. 9 is another terminal structure schematic diagram that the embodiment of the present invention four provides;
Figure 10 is a kind of server architecture schematic diagram that the embodiment of the present invention five provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
The embodiment of the invention provides a kind of methods for obtaining search result, referring to Fig. 1, this method comprises:
Step 101: the character or text information inputted in such a way that touching is write on map according to user is obtained and is closed
Keyword;
Step 102: obtaining the marginal information for the region of search that user draws on map;
Step 103: according to the marginal information of the region of search send the area information of the keyword and the region of search to
Server;
Step 104: receive the server return search result, the search result include search for target description information and
Address information.
Wherein, the character or text information inputted in such a way that touching is write on map according to user obtains crucial
Word, comprising:
User's character for inputting in such a way that touching is write on map is received, according to the character that the user inputs, from
Corresponding search-type keyword is searched in stored character and the corresponding relationship of search-type keyword, if found,
The search-type keyword of lookup is then determined as the keyword obtained;
Alternatively,
Receive the text information that user inputs in such a way that touching is write on the map, the text which is inputted
Word information is determined as the keyword obtained.
Wherein, the area information of the keyword and the region of search is sent to service according to the marginal information of the region of search
Device, comprising:
The area information of the region of search is determined according to the marginal information of the region of search;
The area information of the keyword and the region of search is sent to server.
Further, the area information of the region of search is determined according to the marginal information of the region of search, comprising:
The marginal information of the region of search is determined as to the area information of the region of search;
Alternatively,
According to the marginal information of the region of search, the index for the map unit that the edge of the region of search is passed through is obtained,
The index for the map unit that the edge of the region of search is passed through is determined as to the area information of the region of search;
Alternatively,
According to the marginal information of the region of search, the index for the map unit that the region of search includes is obtained, by the search
The index for the map unit that region includes is determined as the area information of the region of search.
Further, after the search result for receiving server return, further includes:
Receive the index for the corresponding map unit of the search result that server is sent;
According to the index of the corresponding map unit of the search result, the search result is shown in the region of search.
Wherein, the executing subject of the embodiment of the present invention can be terminal.
In embodiments of the present invention, user is in such a way that touching is write at map inputing characters or text information, end
The character or text information that end is inputted according to user obtain keyword, and user can also draw one using gesture on map
A region of search, terminal obtain the marginal information of the region of search, according to the marginal information of the region of search send keyword and
The area information of the region of search searches server according to the keyword and the acquisition of the area information of the region of search to server
Rope as a result, and the search result that will acquire be shown in the region of search.Wherein, user is in such a way that touching is write in map
Inputing characters or text information and user use gesture to draw region of search on map, make the side for obtaining search result
Formula is recognized closer to the daily behavior of user, and then guarantees that the region that user draws is that the user wants the region searched for.
Embodiment two
The embodiment of the invention provides a kind of method for obtaining search result, the method for the acquisition search result can be applied
In terminal, which can be the mobile touch screens communication terminal such as touch-screen mobile phone or touch screen PDA.Referring to fig. 2, this method comprises:
Step 201: the character or text information that terminal inputs in such a way that touching is write on map according to user obtain
Take keyword;
Wherein, in embodiments of the present invention, the keyword that terminal obtains includes the corresponding searching class of type for searching for target
Type keyword or the text information of user's input.
Further, terminal obtains the concrete operations of keyword are as follows:
Terminal receives user's character for inputting in such a way that touching is write on map, according to the character that user inputs,
Corresponding search-type keyword is searched from stored character and the corresponding relationship of search-type keyword, if searched
It arrives, then the search-type keyword of lookup is determined as the keyword obtained;
Alternatively, terminal obtains the concrete operations of keyword are as follows: terminal receives the side that user is write on map by touching
Received text information, is determined as the keyword obtained by the text information of formula input.
Wherein, user is the type setting character for searching for target in advance, and the character of setting is submitted to the terminal.The end
It is the character for searching for the search-type setting of target that end, which receives the user, and the search-type of the character and search target is crucial
Word is stored in the corresponding relationship of character and search-type keyword.
Further, if terminal is not found from the corresponding relationship of stored character and search-type keyword
Search-type keyword, then the terminal shows a prompt information, for prompting user to re-enter character.
It should be added that due to entitled multiple English alphabets of some search targets, such as SOHO office building
Entitled SOHO, it is single character that preferably, therefore the user, which is the character for the type setting for searching for target, user's input
Text information includes multiple characters and/or Chinese character etc..When terminal detect user on map touching write by way of it is defeated
The information entered is single character, then the terminal is closed according to the character from stored character is corresponding with search-type keyword
Corresponding search-type keyword is searched in system, and the search-type keyword of lookup is determined as to the keyword obtained.Work as terminal
User is detected when the information that inputs is multiple characters or Chinese character in such a way that touching is write on map, the terminal is by the use
The information of family input is determined as the text information of user's input, and the text information is determined as to the keyword of acquisition.
Wherein, the user can on the map that the interface of the terminal includes touching write by way of input want it is defeated
The character or text information entered, the sliding trace that the terminal recognition user draws in such a way that touching is write, and then identifying should
The character or text information of user's input.Certainly, which can also provide a search input frame, which can be by this
It searches for input frame and inputs character or text information to the terminal.
For example, as shown in figure 3, user draws a character " W " in such a way that touching is write on the map of terminal, eventually
End receives the character of user input, according to the character " W " that the user inputs, from character and search-type as shown in table 1 below
It is " bar " that corresponding search-type keyword is found in the corresponding relationship of keyword, at this point, terminal is by the searching class of lookup
Type keyword " bar " is determined as the keyword obtained;
Table 1
Character | Search-type keyword |
W | Bar |
B | Bank |
C | Supermarket |
E | Dining room |
For another example, as shown in figure 4, user draws text information " wine in such a way that touching is write on the map of terminal
", terminal detects the text information, which is determined as to the keyword obtained.
Step 202: terminal obtains the marginal information for the region of search that user draws on map;
Specifically, terminal receives the closure region of search that the user draws on map, obtains the edge of the region of search
The coordinate for the map unit that the edge of the region of search is passed through is determined as the field of search by the coordinate of the map unit passed through
The marginal information in domain.
Wherein, the coordinate for the map unit that the edge of the region of search is passed through can be passed through by the edge of the region of search
The longitude and latitude for the map unit crossed.
Wherein, map partitioning is multiple map units, each map unit pair by longitude and latitude in advance according to the map
Answer a longitude and a latitude.
Further, the marginal information of region of search can also include ratio, ground that the map is shown on the terminal
The region and the region of search that figure is shown on the screen of the terminal region shared on the screen of the terminal, the present invention are implemented
It is illustrated for the coordinate for the map unit that edge in example by the marginal information for the region of search is passed through.
Preferably, user needs to draw search on map within the preset time period after terminal obtains keyword
The marginal information in region;At this point, terminal determines that user wants search in the region of search drawn within the preset time period and is somebody's turn to do
The corresponding search target of keyword.
When being not received by the region of search that user draws within the preset time period after terminal obtains keyword, then
Terminal abandons the keyword.The field of search that user draws is received except preset time period of terminal after obtaining keyword
When domain, which shows a prompt information to the user, and the prompt information is for prompting user inputs character or text information.
Wherein, region of search in the prior art is obtained centered on the position that the terminal is currently located, when user moves
When dynamic position, which can retransmit the position that itself is currently located once to server, which can be in the terminal
Centered on the position of retransmission and radius is that search result is reacquired in the region of search of default value;And the present invention is implemented
Region of search in example is the region that user draws on map manually, and the region that user draws is not depended on to be currently located with terminal
Position, so when the user is mobile, which will not change, terminal does not need the position of itself being sent to clothes
It is engaged in device, and server will not reacquire a search result again and the search result that will acquire retransmits and gives the terminal,
The flow for transmitting data between terminal and server is saved, and then saves the cost for obtaining search result.
User manually draws the region of search for wanting to obtain search result on map in the embodiment of the present invention, makes terminal
It determines the easy to operate of region of search, and recognizes the mode for obtaining search result closer to the daily behavior of user.
For example, user can draw region of search as shown in Figure 5 on map, which is that user at will draws
A region of search.The coordinate for the map unit that the edge that the terminal obtains the region of search is passed through, by the region of search
The coordinate of map unit that is passed through of edge be determined as the marginal information of the region of search.
Step 203: the terminal determines the area information of the region of search according to the marginal information of the region of search;
Specifically, which determines the specific behaviour of the area information of the region of search according to the marginal information of the region of search
Work includes:
The marginal information of the region of search is determined as the area information of the region of search by the terminal;
Alternatively,
The terminal obtains the map unit that the edge of the region of search is passed through according to the marginal information of the region of search
The index for the map unit that the edge of the region of search is passed through, is determined as the area information of the region of search by index;
Alternatively,
The terminal obtains the index for the map unit for including in the region of search according to the marginal information of the region of search,
The index for the map unit that the region of search includes is determined as to the area information of the region of search.
Wherein, which obtains the map unit for including in the region of search according to the marginal information of the region of search
The concrete operations of index are as follows: the terminal determines the map list for including in the region of search according to the marginal information of the region of search
The coordinate of member obtains the map unit for including in the region of search according to the coordinate for the map unit for including in the region of search
Index.
Wherein, by map partitioning for an index is arranged for each map unit after multiple map units, so, eventually
End can unit according to the map longitude and latitude, get the index of the map unit.
Step 204: the area information of the keyword and the region of search is sent to server by the terminal;
Step 205: server receives the keyword of terminal transmission and the area information of the region of search;
Step 206: server obtains the map unit for including in the region of search according to the area information of the region of search
Index;
Specifically, server obtains the map unit for including in the region of search according to the area information of the region of search
The concrete operations of index, comprising:
If the area information of the region of search is the marginal information of the region of search, according to the edge of the region of search
Information determines region of search on map, obtains the index for the map unit for including in the region of search;
Alternatively,
If the index for the map unit that the area information of the region of search is passed through for the edge of the region of search, root
The index of the map unit passed through according to the edge of the region of search obtains the index for the map unit for including in the region of search;
Alternatively,
If the area information of the region of search is the index for the map unit that the region of search includes, by the field of search
The area information in domain is determined as the index of the map unit in the region of search included.
Wherein, the coordinate of the map unit passed through when the marginal information of the region of search for the edge of the region of search
When, server determines the concrete operations of region of search according to the marginal information of the region of search on map are as follows: server root
According to the coordinate for the map unit that the edge of the region of search is passed through, the seat for the map unit for including in the region of search is determined
Mark, according to the coordinate for the map unit for including in the region of search, obtains the index for the map unit for including in the region of search.
Step 207: server is according to the index of the map unit for including in the keyword and the region of search, from having stored
Keyword, obtain corresponding search result in the index of map unit and the corresponding relationship of search result, the search result packet
Include the description information and address information of search target;
Specifically, server is according to the index of the map unit for including in the region of search, from stored keyword,
Corresponding record is obtained in the index of figure unit and the corresponding relationship of search result;According to the keyword that the terminal is sent, to obtaining
The record taken is filtered, and the search result for including in the record after filtering is determined as to the search knot of server acquisition
Fruit.
Wherein, the keyword that server is sent according to the terminal, the concrete operations that the record of acquisition is filtered are as follows: clothes
The keyword that the terminal is sent is compared by business device with the keyword in the record of acquisition, if the key in the record obtained
Include the keyword that the terminal is sent in word, then retains the record, otherwise, abandon the record.
Wherein, the keyword in the corresponding relationship of stored keyword, the index of map grid and search result includes
Search for the information such as the corresponding search-type keyword of type of target and the title of search target.
Wherein, the description information for searching for target includes the information such as the title of the search target.For example, when the search target is
When trade company, the description information of the search target is the letter such as title, the favor information of the trade company and evaluation of the trade company of the trade company
Breath, when the search target is bus stop, the description information of the search target is for the title of the bus stop and in the public transport
The line information etc. for the bus that station is stopped.
For example, terminal is sent to the map side that the keyword of server is sent to server for " bar " and the terminal
The index of lattice is index 1, index 2 and index 3, keyword that server is sent according to the terminal and in the region of search includes
The index of map unit is obtained from the corresponding relationship of keyword as shown in table 2 below, the index of map unit and search result
It is description information 1 and address information 1 and description information 2 and address information 2 to corresponding search result.
Table 2
Step 208: the search result that server will acquire is sent to the terminal.
Further, which is sent to this for the index of the corresponding map unit of the search result in the region of search
Terminal.
When this is searched in the search result that terminal reception server is sent, and the region of search of reception server transmission
When the index of the corresponding map unit of hitch fruit, which searches according to the index of the corresponding map unit of the search result, at this
The search result is shown in rope region.
Wherein, show that the concrete operations of the search result can be divided into two kinds in the region of search, comprising:
The first, the search result is directly displayed in the region of search.
Second, terminal is corresponding with icon from the type of stored search target according to the type of the search target
Corresponding icon is obtained in relationship, according to the index of the corresponding map unit of the search result, display should in the region of search
Icon.When the terminal detects that user clicks some icon in the region of search, the terminal according to the icon correspondingly
The index of figure unit is tied from corresponding search is obtained in the corresponding relationship of the index of stored map unit and search result
Fruit shows the search result.
Wherein, the concrete operations which shown are as follows: a display area is drawn near the icon, it will
The search result is shown in the display area.
Wherein, identical icon can be arranged to the type of the same search target in embodiments of the present invention, it can also be with
Different icons is arranged to the type of the same search target.In this way, icon is arranged to the type of search target, which is shown
Show in region of search, increases the interest that user obtains search result.
Wherein, when terminal shows search result using the second way, when the terminal receives searching for server transmission
When the index and search result of the corresponding map unit of hitch fruit, the terminal is by the index of the corresponding map unit of the search result
It is stored in the search result in the index of map unit and the corresponding relationship of search result.
For example, terminal receives search result description information 1 and address information 1 and description information 2 and address information 2,
And the terminal receives the index of the search result description information 1 and the corresponding map unit of address information 1 as index 1, the end
It is index 2 that end, which receives the search result description information 2 and the index of the corresponding map unit of address information 2,.The terminal can root
It is corresponding from being obtained in the corresponding relationship of the stored type for searching for target and icon according to the type " bar " of the search target
Icon is index 1 according to the index of search result description information 1 and the corresponding map unit of address information 1, as shown in Figure 6
Show the icon and the terminal according to search result description information 2 and address information 2 correspondingly in the region of search at interface
The index of figure unit is index 2, and the icon is shown in the region of search at interface as shown in Figure 6.
In embodiments of the present invention, user is in such a way that touching is write at map inputing characters or text information, end
The character or text information that end is inputted according to user obtain keyword, and user can also draw one on map and want to obtain
The region of search of search result is taken, terminal obtains the marginal information of the region of search, sends out according to the marginal information of the region of search
It send keyword and the area information of the region of search to server, makes server according to the region of the keyword and the region of search
Acquisition of information search result, and the search result that will acquire is shown in the region of search.Wherein, user is write by touching
Mode draws region of search using gesture in map inputing characters or text information and user on map, makes to obtain and search
The mode of hitch fruit is recognized closer to the daily behavior of user, and the region of search drawn due to the user is independent of user
Current location, so server will not ceaselessly obtain the current location of user simultaneously again in user ceaselessly moving process
According to the current location of user reacquire search result, save between terminal and server transmit user current location and
The flow of the search result of reacquisition, and then save the cost for obtaining search result.
Embodiment three
Referring to Fig. 7, the embodiment of the invention provides a kind of methods for obtaining search result, this method comprises:
Step 301: receive the area information of keyword and region of search that terminal is sent, the keyword be terminal according to
What the character or text information that family inputs in such a way that touching is write on map obtained, which is the user on ground
The region drawn on figure;
Step 302: search result being obtained according to the keyword and the area information of the region of search, which includes
Search for the description information and address information of target;
Step 303: the search result that will acquire is sent to terminal.
Wherein, search result is obtained according to the keyword and the area information of the region of search, comprising:
The index for the map unit for including in the region of search is obtained according to the area information of the region of search;
According to the index for the map unit for including in the keyword and the region of search, from stored keyword, map
Corresponding search result is obtained in the index of unit and the corresponding relationship of search result.
Further, the rope for the map unit for including in the region of search is obtained according to the area information of the region of search
Draw, comprising:
If the area information of the region of search is the marginal information of the region of search, according to the edge of the region of search
Information determines region of search on map, obtains the index for the map unit for including in the region of search;
Alternatively,
If the index for the map unit that the area information of the region of search is passed through for the edge of the region of search, root
The index of the map unit passed through according to the edge of the region of search obtains the index for the map unit for including in the region of search;
Alternatively,
If the area information of the region of search is the index for the map unit that the region of search includes, by the field of search
The area information in domain is determined as the index of the map unit in the region of search included.
Further, which is sent to after terminal, further includes:
The index of the corresponding map unit of the search result in the region of search is sent to terminal, makes the terminal according to this
The index of the corresponding map unit of search result shows the search result in the region of search.
Wherein, the executing subject of the embodiment of the present invention can be server.
In embodiments of the present invention, the field of search that the keyword and user that server is sent according to terminal are drawn on map
The area information in domain obtains search result.Current location of the region of search drawn due to user independent of the terminal, so
When the terminal ceaselessly moves, which will not reacquire the search result in the region of search again, reduce acquisition
The complexity of search result, and server no longer sends the search result reacquired to the terminal, saves acquisition search
As a result cost.
Example IV
The embodiment of the invention provides a kind of terminals, and referring to Fig. 8, which includes:
First obtains module 401, the character or text for being inputted in such a way that touching is write on map according to user
Word information obtains keyword;
Second obtains module 402, for obtaining the marginal information for the region of search that the user draws on this map;
First sending module 403 sends the keyword and the region of search for the marginal information according to the region of search
Area information to server;
First receiving module 404, for receiving the search result of server return, which includes search target
Description information and address information.
Wherein, first module 401 is obtained, is specifically used for:
User's character for inputting in such a way that touching is write on map is received, according to the character that the user inputs, from
Corresponding search-type keyword is searched in stored character and the corresponding relationship of search-type keyword, if found,
The search-type keyword of lookup is then determined as the keyword obtained;
Alternatively,
The text information that user inputs in such a way that touching is write on map is received, which is determined as obtaining
The keyword taken.
Wherein, the first sending module 403 includes:
Determination unit determines the area information of the region of search for the marginal information according to the region of search;
Transmission unit, for sending the area information of the keyword and the region of search to server.
Further, it is determined that unit, is specifically used for:
The marginal information of the region of search is determined as to the area information of the region of search;
Alternatively,
According to the marginal information of the region of search, the index for the map unit that the edge of the region of search is passed through is obtained,
The index for the map unit that the edge of the region of search is passed through is determined as to the area information of the region of search;
Alternatively,
According to the marginal information of the region of search, the index for the map unit that the region of search includes is obtained, by the search
The index for the map unit that region includes is determined as the area information of the region of search.
Further, referring to Fig. 9, the terminal further include:
Second receives mould 405, the index of the corresponding map unit of the search result for receiving server transmission;
Display module 406 is shown in the region of search for the index according to the corresponding map unit of the search result
The search result.
In embodiments of the present invention, user is in such a way that touching is write at map inputing characters or text information, end
The character or text information that end is inputted according to user obtain keyword, and user can also draw one using gesture on map
A region of search, terminal obtain the marginal information of the region of search, according to the marginal information of the region of search send keyword and
The area information of the region of search searches server according to the keyword and the acquisition of the area information of the region of search to server
Rope as a result, and the search result that will acquire be shown in the region of search.Wherein, user is in such a way that touching is write in map
Inputing characters or text information and user use gesture to draw region of search on map, make the mode for obtaining search result
Closer to the daily behavior cognition of user, and then guarantee that the region that user draws is that the user wants the region searched for.
Embodiment five
The embodiment of the invention provides a kind of servers, and referring to Figure 10, which includes:
Third receiving module 501, for receiving the keyword of terminal transmission and the area information of region of search, the keyword
It is that the terminal is obtained according to the character or text information that user inputs in such a way that touching is write on map, the field of search
Domain is the region that the user draws on map;
Third obtains module 502, should for obtaining search result according to the area information of the keyword and the region of search
Search result includes the description information and address information for searching for target;
Second sending module 503, the search result for will acquire are sent to the terminal.
Wherein, third acquisition module 501 includes:
First acquisition unit obtains the map list for including in the region of search for the area information according to the region of search
The index of member;
Second acquisition unit, for the index according to the map unit for including in the keyword and the region of search, from
Corresponding search result is obtained in the keyword of storage, the index of map unit and the corresponding relationship of search result.
Further, first acquisition unit.It is specifically used for:
If the area information of the region of search is the marginal information of the region of search, according to the edge of the region of search
Information determines region of search on map, obtains the index for the map unit for including in the region of search;
Alternatively,
If the index for the map unit that the area information of the region of search is passed through for the edge of the region of search, root
The index of the map unit passed through according to the edge of the region of search obtains the index for the map unit for including in the region of search;
Alternatively,
If the area information of the region of search is the index for the map unit that the region of search includes, by the field of search
The area information in domain is determined as the index of the map unit in the region of search included.
Further, the server further include:
Third sending module, for the index of the corresponding map unit of the search result in the region of search to be sent to this
Terminal makes the terminal show the search result in the region of search according to the index of the corresponding map unit of the search result.
In embodiments of the present invention, the field of search that the keyword and user that server is sent according to terminal are drawn on map
The area information in domain obtains search result.Current location of the region of search drawn due to user independent of the terminal, so
When the terminal ceaselessly moves, which will not reacquire the search result in the region of search again, reduce acquisition
The complexity of search result, and server no longer sends the search result reacquired to the terminal, saves acquisition search
As a result cost.
It should be understood that it is provided by the above embodiment obtain search result device when obtaining search result, only with
The division progress of above-mentioned each functional module can according to need and for example, in practical application by above-mentioned function distribution by not
Same functional module is completed, i.e., the internal structure of device is divided into different functional modules, to complete whole described above
Or partial function.In addition, the device provided by the above embodiment for obtaining search result and the method for obtaining search result are implemented
Example belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (8)
1. a kind of method for obtaining search result, which is characterized in that the described method includes:
Identify the sliding trace that user draws in such a way that touching is write on map;
When identifying that the information of user's input is single character according to the sliding trace, from stored character and searching class
The corresponding search-type keyword of the single character identified is searched in the corresponding relationship of type keyword, it, will if found
The search-type keyword of lookup is determined as the keyword obtained;
It obtains and searches getting the closure that the user draws on the map in the preset time period after the keyword
The marginal information in rope region;
The area information in the keyword and described search region is sent to server according to the marginal information;
The search result that the server returns is received, described search result includes searching for the description information and address letter of target
Breath.
2. the method as described in claim 1, which is characterized in that described to send the keyword and institute according to the marginal information
The area information of region of search is stated to server, comprising:
The area information in described search region is determined according to the marginal information;
The area information in the keyword and described search region is sent to server.
3. method according to claim 2, which is characterized in that described to determine described search region according to the marginal information
Area information, comprising:
The marginal information is determined as to the area information in described search region;
Alternatively,
According to the marginal information, the index for the map unit that the edge in acquisition described search region is passed through, by described search
The index for the map unit that the edge in region is passed through is determined as the area information in described search region;
Alternatively,
According to the marginal information, the index for the map unit that described search region includes is obtained, includes by described search region
The index of map unit be determined as the area information in described search region.
4. the method as described in claim 1-3 any claim, which is characterized in that described to receive what the server returned
After search result, further includes:
Receive the index for the corresponding map unit of described search result that the server is sent;
According to the index of the corresponding map unit of described search result, described search result is shown in described search region.
5. a kind of terminal, which is characterized in that the terminal includes:
First obtains module, and the sliding trace that user draws in such a way that touching is write on map for identification works as basis
When the information that user inputs at the sliding trace identification is single character, from stored character and search-type keyword
The corresponding search-type keyword of the single character identified is searched in corresponding relationship, if found, by the search of lookup
Type keyword is determined as the keyword obtained;
Second obtains module, is getting in the preset time period after the keyword user describedly for obtaining
The marginal information of the closure region of search drawn on figure;
First sending module, for sent according to the marginal information area information in the keyword and described search region to
Server;
First receiving module, the search result returned for receiving the server, described search result include search target
Description information and address information.
6. terminal as claimed in claim 5, which is characterized in that first sending module includes:
Determination unit, for determining the area information in described search region according to the marginal information;
Transmission unit, for sending the area information of the keyword and described search region to server.
7. terminal as claimed in claim 6, which is characterized in that
The determination unit, is specifically used for:
The marginal information is determined as to the area information in described search region;
Alternatively,
According to the marginal information, the index for the map unit that the edge in acquisition described search region is passed through, by described search
The index for the map unit that the edge in region is passed through is determined as the area information in described search region;
Alternatively,
According to the marginal information, the index for the map unit that described search region includes is obtained, includes by described search region
The index of map unit be determined as the area information in described search region.
8. the terminal as described in claim 5-7 any claim, which is characterized in that the terminal further include:
Second receiving module, for receiving the index for the corresponding map unit of described search result that the server is sent;
Display module shows institute for the index according to the corresponding map unit of described search result in described search region
State search result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310590546.2A CN104657065B (en) | 2013-11-20 | 2013-11-20 | A kind of method, terminal and server obtaining search result |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310590546.2A CN104657065B (en) | 2013-11-20 | 2013-11-20 | A kind of method, terminal and server obtaining search result |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104657065A CN104657065A (en) | 2015-05-27 |
CN104657065B true CN104657065B (en) | 2019-05-21 |
Family
ID=53248266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310590546.2A Active CN104657065B (en) | 2013-11-20 | 2013-11-20 | A kind of method, terminal and server obtaining search result |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104657065B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302910A (en) * | 2015-11-09 | 2016-02-03 | 百度在线网络技术(北京)有限公司 | Information retrieval method and device |
CN105511783A (en) * | 2015-11-30 | 2016-04-20 | 东莞酷派软件技术有限公司 | Search method and mobile terminal |
CN108572982A (en) * | 2017-03-13 | 2018-09-25 | 贺树青 | A kind of regional information, the map displaying search of product and link method |
CN107193901A (en) * | 2017-05-11 | 2017-09-22 | 长威信息科技发展股份有限公司 | A kind of resource visualizes the method and system of fast selecting |
CN114637798A (en) * | 2022-05-07 | 2022-06-17 | 北京金堤科技有限公司 | Map query method and device for commercial information |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639847A (en) * | 2009-06-01 | 2010-02-03 | 北京四维图新科技股份有限公司 | Electronic map query method, electronic map query system and navigator |
CN102651005A (en) * | 2011-02-24 | 2012-08-29 | 北京千橡网景科技发展有限公司 | Interest point searching method and equipment |
CN102708214A (en) * | 2012-06-15 | 2012-10-03 | 深圳市凯立德科技股份有限公司 | Method for searching point of interest and terminal |
CN102915348A (en) * | 2012-09-27 | 2013-02-06 | 北京百度网讯科技有限公司 | Method and system for recommending search information to user in map |
CN103092965A (en) * | 2013-01-22 | 2013-05-08 | 百度在线网络技术(北京)有限公司 | Searching method, system, terminal and server based on map in mobile terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009093387A (en) * | 2007-10-09 | 2009-04-30 | Level Up Kk | Position search apparatus, position search method and position search program |
CN102314452B (en) * | 2010-06-30 | 2015-12-16 | 北京搜狗科技发展有限公司 | A kind of method and system of being undertaken navigating by input method platform |
CN102306171B (en) * | 2011-08-22 | 2016-07-06 | 百度在线网络技术(北京)有限公司 | A kind of for providing network to access suggestion and the method and apparatus of web search suggestion |
CN103268730B (en) * | 2013-06-03 | 2016-04-20 | 北京奇虎科技有限公司 | Electronic map interface shows the method and apparatus of association mark point |
-
2013
- 2013-11-20 CN CN201310590546.2A patent/CN104657065B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639847A (en) * | 2009-06-01 | 2010-02-03 | 北京四维图新科技股份有限公司 | Electronic map query method, electronic map query system and navigator |
CN102651005A (en) * | 2011-02-24 | 2012-08-29 | 北京千橡网景科技发展有限公司 | Interest point searching method and equipment |
CN102708214A (en) * | 2012-06-15 | 2012-10-03 | 深圳市凯立德科技股份有限公司 | Method for searching point of interest and terminal |
CN102915348A (en) * | 2012-09-27 | 2013-02-06 | 北京百度网讯科技有限公司 | Method and system for recommending search information to user in map |
CN103092965A (en) * | 2013-01-22 | 2013-05-08 | 百度在线网络技术(北京)有限公司 | Searching method, system, terminal and server based on map in mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104657065A (en) | 2015-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104657065B (en) | A kind of method, terminal and server obtaining search result | |
CN108173738B (en) | Display method and device | |
CN104182488B (en) | Searching method, server and client | |
CN104965580B (en) | The methods of exhibiting and device of unread message | |
EP3270619B1 (en) | Network connection control method and system for mobile terminal | |
CN102298503B (en) | Method and device for displaying contents on mobile terminal list interface | |
CN103034397B (en) | A kind of dynamic unlocking method based on nearest task, device and mobile terminal | |
CN102999268A (en) | Dynamic unlocking method and dynamic unlocking device based on application and use times and mobile terminal | |
CN104391636B (en) | A kind of screenshotss method and device | |
CN103426208A (en) | Cell phone attendance system based on WiFi signals | |
CN103067557A (en) | Method, device and mobile terminal for showing information | |
CN103543903A (en) | Quick operation method and device and mobile terminal | |
CN103179164B (en) | The method of memory page information and communication terminal thereof | |
WO2016183378A1 (en) | Instant communication | |
WO2012168546A1 (en) | Social network interaction | |
CN104731468A (en) | Application icon sorting method and device | |
CN102663055A (en) | Method, device and browser for realizing browser navigation | |
CN103533169A (en) | Method for positioning and linking field of electronic business card based on mobile terminal | |
CN106201237A (en) | A kind of information collection method and device | |
DE202013000058U1 (en) | Device and computer readable medium for recognizing locations | |
CN106529481A (en) | Fingerprint identification parameter configuration device and method | |
CN101071462A (en) | System and method for indicating risk of information inputted by users | |
CN103902175A (en) | Terminal and unlocking method of terminal | |
CN106506771A (en) | Contact object classification methods of exhibiting, device and mobile terminal | |
CN106686240B (en) | Method for obtaining event information on mobile terminal and mobile terminal |
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 |