A kind of point of interest search method and apparatus
Technical field
The present invention relates to a kind of fixed-position searching method, particularly a kind of employing interactive mode that can require according to user's direction is dynamically adjusted point of interest search method and the device of Search Results.
Background technology
In recent years, along with popularizing of smart mobile phone, all kinds of mobile Internets are used just with surprising rapidity development, and wherein the service based on the geographic position is a main focus.This field has not only been expedited the emergence of a collection of such as Foursqure, and the other such star in street newly creates company, has also attracted numerous internet giants, such as Google, and facebook, Tengxun.Service based on the geographic position has become the standard configuration function that numerous smart mobile phones are used.Periphery point of interest (POI-Point of Interest: the geographic information database term refers to a significant geographic position, such as the restaurant, cinema, coffee shop) recommendation service is a kind of at present comparatively popular service based on the geographic position.Such as recommending for peripheral restaurant, only domestic just have a popular comment, the sound of chopping wood life, and the pudding life, the Eating God a series of popular mobile phones such as swaggers and uses.
Along with popularizing and the appearance of all kinds of smart mobile phone softwares of smart mobile phone, software function has not been that smart phone user considers whether download, and uses unique motivation of software.The software of multiple similar functions often is provided on the various software markets, and in this case, whether the interactive mode of software is interesting, convenient, just become an important use motivation.In point of interest recommendation field, some software relies on novel interactive mode to win market.The interactive mode of the point of interest search of prior art mainly adopts to click and recommends button ejection content recommendation or shake mobile phone ejection content recommendation.Click and recommend button to eject the content recommendation mode, the user clicks the recommendation button, and client is obtained peripheral content recommendation from server and presented with tabular form or single point of interest form; Shake mobile phone and eject the content recommendation mode, typical example such as certain point of interest recommend software that the user is shaken mobile phone as the instruction of recommending peripheral point of interest, client is caught the action that the user shakes by gyroscope or three-dimensional acceleration sensor, when the user shakes mobile phone, obtain peripheral content recommendation from server end and present with tabular form or single point of interest form, but the point of interest search method of prior art all can't satisfy the user to recommending the direction requirement of point of interest.
Summary of the invention
Technical matters to be solved by this invention provide a kind of can according to mobile device towards change search have point of interest search method and the device that direction requires.
To achieve these goals, the invention provides a kind of point of interest search method, wherein, comprise the steps:
S1, obtain the positional information that mobile device provides, receive and the record searching request, this positional information comprises the corresponding direction of this mobile device, and this searching request comprises at least one screening conditions;
S2, search and record satisfy the point of interest of described searching request as the first search result set;
The angular separation of the position of the corresponding described mobile device of each Search Results in S3, described the first search result set of calculating, and delete described angular separation greater than the Search Results of an angle threshold, record remaining Search Results as the second search result set;
S4, output also show described the second search result set.
Above-mentioned point of interest search method, wherein, the screening conditions described in the step S1 are the public bus network of described mobile device position periphery.
Above-mentioned point of interest search method wherein, also comprises before the step S2:
S20, described mobile device are sent to a server with described positional information and described searching request.
Above-mentioned point of interest search method, wherein, step S2 and S3 finish by described server.
Above-mentioned point of interest search method wherein, also comprises before the step S4:
S40, described server are sent to described mobile device with described the second search result set.
Above-mentioned point of interest search method, wherein, step S2 is finished by described server, and step S3 has described mobile device to finish.
Above-mentioned point of interest search method wherein, also comprises before the step S3:
S30, described server are sent to described mobile device with described the first search result set.
Above-mentioned point of interest search method, wherein, described angle threshold is 30 degree, 45 degree, 60 degree, 90 degree, 120 degree or 180 degree.
In order to realize better above-mentioned purpose, the present invention also provides a kind of point of interest search device, wherein, comprising:
Position and acquisition of information module are used for obtaining the positional information that mobile device provides, and receive and the record searching request, and this positional information comprises the corresponding direction of this mobile device, and this searching request comprises at least one screening conditions;
Search module is used for search and record satisfies the point of interest of described searching request as the first search result set;
Angle calculation and screening module, angular separation for the position of calculating the corresponding described mobile device of each Search Results of described the first search result set, and delete described angular separation greater than the Search Results of an angle threshold, record remaining Search Results as the second search result set;
Output and display module are used for output and show described the second search result set.
Above-mentioned point of interest search device wherein, comprises that also information receives and sending module, is used for transmission or the reception of described positional information and described searching request, described the second search result set or described the first search result set.
Technique effect of the present invention is:
Point of interest search method and apparatus of the present invention, the electronic compass function that can utilize mobile device according to mobile device towards change adjust dynamically the point of interest of recommendation, adopt interactive mode to recommend the user to have the point of interest that direction requires, possess very strong interest and feeling of freshness, have certain commercial competition advantage.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is point of interest search method flow diagram of the present invention;
Fig. 2 is point of interest search device block diagram of the present invention;
Fig. 3 is the method flow diagram of one embodiment of the invention;
Fig. 4 is the method flow diagram of another embodiment of the present invention;
Fig. 5 is the method flow diagram of further embodiment of this invention;
Fig. 6 is the computer program process flow diagram of step S3 of the present invention;
Fig. 7 is the computer program process flow diagram of public bus network search of the present invention.
Wherein, Reference numeral
1 position and acquisition of information module
2 search modules
3 angle calculation and screening module
4 output and display modules
5 information receive and sending module
S1~S4 step
Embodiment
Below in conjunction with accompanying drawing structural principle of the present invention and principle of work are done concrete description:
Referring to Fig. 1, Fig. 1 is point of interest search method flow diagram of the present invention.Point of interest search method of the present invention comprises the steps:
Step S1, obtain the positional information that mobile device provides, receive and the record searching request, this positional information comprises the corresponding direction of this mobile device, and this searching request comprises at least one screening conditions; These screening conditions can be the public bus network of described mobile device position periphery;
Step S2, search and record satisfy the point of interest of described searching request as the first search result set;
The angular separation of the position of the corresponding described mobile device of each Search Results in step S3, described the first search result set of calculating, and delete described angular separation greater than the Search Results of an angle threshold, record remaining Search Results as the second search result set; Wherein, described angle threshold can be 30 degree, 45 degree, 60 degree, 90 degree, 120 degree or 180 degree.
Step S4, output also show described the second search result set.
Before step S2, also can comprise:
S20, described mobile device are sent to a server with described positional information and described searching request.
Wherein, step S2 and S3 finish by described server.Perhaps, step S2 is finished by described server, and step S3 has described mobile device to finish.
Also can comprise before the step S4:
S40, described server are sent to described mobile device with described the second search result set.
Also can comprise before the step S3:
S30, described server are sent to described mobile device with described the first search result set.
Referring to Fig. 2, Fig. 2 is point of interest search device block diagram of the present invention.Point of interest search device of the present invention comprises:
Position and acquisition of information module 1 can be arranged at mobile client, are used for obtaining the positional information that mobile device provides, and receive and the record searching request, and this positional information comprises the corresponding direction of this mobile device, and this searching request comprises at least one screening conditions;
Search module 2 can be arranged at server, perhaps also can be arranged at mobile client, is preferably disposed on the server, is used for searching for and recording and satisfy the point of interest of described searching request as the first search result set;
Angle calculation and screening module 3, can be arranged at server, also can be arranged at mobile client, angular separation for the position of calculating the corresponding described mobile device of each Search Results of described the first search result set, and delete described angular separation greater than the Search Results of an angle threshold, record remaining Search Results as the second search result set;
Output and display module 4 are arranged at mobile client, are used for output and show described the second search result set.
Can comprise that also information receives and sending module 6, be arranged at mobile client and server, it is mutual in the communication of server to be used for mobile client, sends or receive described positional information and described searching request, described the second search result set or described the first search result set etc.
Referring to Fig. 3, Fig. 3 is the method flow diagram of one embodiment of the invention.Exchange method of the present invention comprises a mobile device client and at least one background server.User's mobile device should possess gyroscope or three-dimensional acceleration sensor etc. can computing equipment towards hardware, its interactive interface comprises that an electronic compass and one show the window of interest point information, like this mobile device client just can obtain current device towards and be reflected on the electronic compass on the interface.Step S1, the position and the acquisition of information module 1 that are arranged on mobile client are obtained positional information and are obtained the corresponding direction of mobile device by electronic compass, receive and the record searching request; The information of mobile client receives and sending module 5 sends current location and directional information and searching request to server (step S20); The search module 2 that is arranged on server is searched for periphery and is met the point of interest of screening conditions as the first search result set (step S2) in geographical data bank; Be arranged on the angle calculation of server and the angular separation that screening module 3 is calculated each the point of interest respective user position in the first search result set, and delete described angular separation greater than the Search Results of an angle threshold, record remaining Search Results as the second search result set (step S3); Search Results after server will be processed receives by information and sending module 6 returns mobile client (step S40); The output and the display module 4 that are arranged on mobile client show this second search result set (step S4) in the interest point information window.Wherein, the computer program process flow diagram of step S3 is referring to Fig. 6, and angle calculation and screening module 3 are obtained the coordinate of each point of interest from described the first search result set; Calculate it with respect to the relative direction of the position of user's mobile device according to each coordinate of interest points; The mobile device that calculates the relative user's of each point of interest the direction of mobile device and user towards the angular separation; Delete this direction angle greater than the point of interest of described angle threshold; To remain point of interest exports as the second search result set.In specific implementation, the mobile device client or first from server obtain interest point information then according to mobile device towards change show different interest point informations, perhaps only obtain current device institute to the interest point information on the direction, until after change, again obtaining from server at every turn.In the situation of user's horizontal positioned mobile device (such as mobile phone, panel computer etc.), the electronic compass indicating equipment towards.Interest point information on the interest point information display window display device correspondence direction or can arrive public transport line or the road information of some point of interest.
In device of the present invention, can also increase by a memory module and set up a point of interest preference configuration file for each user.The explicit requirement of this document recording user, such as near the point of interest of only recommending in 1 kilometer, but the also implicit expression requirement of recording user, such as in recommend in the dining room, the stealthy preference that analyzes from its feedback to historical recommendation results can be recorded in the configuration file.Such as not liking pungent taste, higher to the quality of service requirement in dining room.Can judge that by this document which point of interest should be not recommended.
Referring to Fig. 4, Fig. 4 is the method flow diagram of another embodiment of the present invention.After starting, mobile client obtains the corresponding direction of mobile device (step S1) by position and the 1 automated initiation of search request of acquisition of information module and by electronic compass; Mobile client is with current location information and searching request receives by information and sending module 5 sends server (step S20) to; Server is searched for the point of interest that meets screening conditions by search module 2 in geographical data bank be the first search result set (step S2); Search Results is received by information server and sending module 5 returns mobile client (step S30); The angular separation that mobile client is calculated the corresponding position of mobile equipment of each point of interest in the first search result set by angle calculation and screening module 3, and with described angular separation less than the Search Results of an angle threshold as the second search result set (step S3); Mobile client shows described the second search result set (step S4) by output and display module 4 in the interest point information window.The advantage of present embodiment is initiatively to send request without the user, but along with mobile device towards the smooth and easy interest point information that naturally change to show of change.This is because the interest point information of user's current location periphery all directions has downloaded on the equipment when program start in advance.The shortcoming of the method is that network flow consumption is larger, and is higher to network bandwidth requirement.
Consider in the commending system of public transport convenience at some in addition, the concept of periphery be not on the air line distance but be reflected in to take public transport and whether can arrive easily.Such as whether can in 100 meters, finding a bus stop, in 5 stations, arrive, and the rear walking of getting off is no more than 100 meters.Referring to Fig. 5, Fig. 5 is the method flow diagram of further embodiment of this invention.Present embodiment is applicable to the situation that user couple and trip road or public bus network have requirement.Know that such as the user certain bar terrain vehicle two is less, wish preferential this road dining room along the line of recommending.Perhaps the starting station of certain bar public bus network just in its vicinity, taking this public bus network must have the seat.The reciprocal process of at this moment point of interest recommendation just can be according to set direction road or public bus network.After starting, mobile client automatically the screening conditions of searching request are comprised peripheral public bus network information by position and acquisition of information module 1; Mobile client receives by information and sending module 5 sends current location information and screening conditions to server; Server is searched for peripheral public bus network as the first search result set by search module 2 in geographical data bank; Server receives by information and sending module 5 returns Search Results to mobile client; Along with mobile device towards change, mobile client is calculated the angular separation of the corresponding position of mobile equipment of each point of interest in the first search result set by angle calculation and screening module 3, and with described angular separation less than the Search Results of an angle threshold as the second search result set, this moment, this direction angle can also namely be stipulated a specific direction for a less special angle, for example 15 degree or 0 are spent, and mobile client shows the public transport line information on this specific direction in the interest point information window; Mobile client receives by information and sending module 5 sends the public transport line of user selection to server; Server is retrieved interest point information along the line by search module 2 again from geographical data bank; Interest point information is received by information server and sending module 5 sends mobile client to; Mobile client shows corresponding interest point information by output and display module 4.Wherein, the computer program process flow diagram of public bus network search is referring to Fig. 7, and the mobile device of client receives by information and sending module 5 submits to current location and equipment towards arriving server end; The search module 2 that is arranged at server in geographic information database, retrieve peripheral distance less than the bus station of an angle threshold as the first search result set; Angle calculation and the relative equipment of screening module 3 deletion towards the angular separation greater than the bus station of this angle threshold and will remain the bus station as the second search result set; Search module 2 is retrieved the Bus Schedules through the bus station of this second Search Results combination in geographic information database; Server end receives by information and sending module 5 returns above-mentioned Bus Schedules to client.
Point of interest search method and apparatus of the present invention, the electronic compass function that can utilize mobile device according to mobile device towards change adjust dynamically the point of interest of recommendation, adopt interactive mode to recommend the user to have the point of interest that direction requires, possess very strong interest and feeling of freshness, have certain commercial competition advantage.
Certainly; the present invention also can have other various embodiments; in the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.