Embodiment
Functional overview
In embodiments of the present invention, provide a kind of terminal positioning scheme, in this implementation, terminal positioning, stored self positional information and positioning time, with positional information and positioning time information send to other distant terminal, receive and storage by other terminal; Terminal or distant terminal according to positional information and positioning time information determine that terminal is in the position of predetermined instant or the path in the predetermined amount of time.
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Method embodiment
According to first embodiment of the invention, at first provide a kind of method of locating terminal.Fig. 1 is the flow chart according to a kind of method of locating terminal of first embodiment of the invention.As shown in Figure 1, a kind of method of locating terminal according to first embodiment of the invention may further comprise the steps (step S102-step S104):
Step S102: first terminal receive and store second location information of terminals and positioning time information;
Step S104: first terminal according to the positional information that receives and positioning time information, determine in the position of predetermined instant or the at the fixed time path in the section of second terminal.
The following specifically describes the details of above-mentioned processing.
In specific implementation process, first terminal can be earlier initiated request to second terminal, and second terminal response is in the request of first terminal, with the positional information of location and positioning time information send to first terminal.Certainly, second terminal also can be without the request of first terminal, initiatively to first terminal send the location positional information and positioning time information.The location that positioning time, information was used to write down second terminal constantly, first terminal can utilize positioning time information to obtain the position of a certain moment second terminal, perhaps utilize at least two positioning time information, obtain the path of certain the period second terminal process.
In concrete process of transmitting, second terminal can by a short message with specific format send above-mentioned positional information and positioning time information.
After first terminal receives above-mentioned positional information and positioning time information, will preserve in this locality, for example, can be kept in RAM, ROM, disk, the tape in the computer-readable medium.The time of preserving can be the acquiescence holding time that has set, and the holding time surpasses the positional information of acquiescence holding time can no longer preserve, and also no longer can inquire about.Follow-up, after receiving user's Location Request, can based on the positional information of preserving and positioning time information inquire about.User's request roughly can be divided into two kinds, and a kind of is inquiry to the specified place in a certain moment, and another kind is the inquiry to the path in certain time period.
For first kind of situation, carry time information in the Location Request, after first terminal receives user's Location Request, search in the information in positional information of having stored and positioning time, obtain the positional information of information moment corresponding information positioning time, determine the position of second terminal in this moment.
For second kind of situation, carry first time information and second time information in the Location Request, after first terminal receives user's Location Request, obtain a plurality of positional informations of information positioning time between first time information and second time information of local storage, and determine the path of second terminal according to a plurality of positional informations.
Preferably, after the request according to the user positions inquiry, can use cell phone map to show Query Result.According to the positional information that receives, when requiring inquiry, on cell phone map, mark particular location; Perhaps according to the positional information of storage and positioning time information, be presented at the path in the certain hour section, and up-to-date information corresponding position information positioning time on the path can be highlighted.
More than the operation of first terminal and second terminal all carry out on the backstage as far as possible, prevent from the user is caused unnecessary influence.
Above embodiment describes be first terminal to second terminal send positional information and positioning time information, the embodiment that inquires about for second user's terminal.The invention is not restricted to this, when specific implementation, first terminal also can preserve in this locality himself positional information and positioning time information, for the user inquiring of first terminal.Concrete inquiry mode and the above embodiments are similar, repeat no more here, and other the operations such as demonstration such as to Query Result also can be according to the description of above-mentioned first embodiment being understood and being implemented.
The method of utilizing above embodiment to describe, portable terminal can be solved and the problem of user's locating information and active path that can't inquiring user a period of time can't be preserved, and because the GPS locating information of having preserved the mobile phone users self-position can provide follow-up query function.In addition, because the data volume that positional information comprises is smaller, general handheld terminal just can be stored considerable information, and therefore, the time range that can inquire about is very big.
According to second embodiment of the invention, also provide a kind of method of locating terminal.Fig. 2 is the flow chart according to a kind of method of locating terminal of second embodiment of the invention.As shown in Figure 2, a kind of method of locating terminal according to second embodiment of the invention may further comprise the steps (step S202-step S204):
S202, terminal positioning and store self positional information and positioning time information;
S204, according to positional information and positioning time information determine terminal the position of predetermined instant or at the fixed time the section in the path.
Below, the position fixing process of first terminal above mentioned is described.
In specific implementation process, terminal positions with the position of predetermined time interval to self; If locate success constantly when prelocalization, then terminal generate positional information and positioning time information, and stored position information and positioning time information; If location failure, then initiate the location constantly once more in next one location, certainly, the treatment step that terminal is not located after the success also can be set in advance by the user, so just need not all point out at every turn, terminal can be finished everything under glitch-free situation, the influence that the user is subjected to drops to minimum.
Fig. 3 is the flow chart of the method for the concurrent carry information of a kind of according to the preferred embodiment of the invention terminal positioning.The method of the concurrent carry information of a kind of according to the preferred embodiment of the invention terminal positioning as shown in Figure 3 may further comprise the steps (step S302-step S328):
Step S302: first terminal is received the invitation of second terminal, according to the selection of self, open the positioning function of first terminal according to predetermined timing strategy, wherein, first terminal is supported note, cell phone map and GPS positioning function at least, and second terminal is supported the function of note and cell phone map at least;
Step S304: first terminal judges whether if not, then to repeat this step S304 to positioning time according to predetermined timing strategy;
Step S306: first terminal is opened GPS mobile phone positioning function, begins the location;
Step S308: successfully whether first terminal judges location, if forward step S312 to;
Step S310: whether the first terminal judges user selects manually input location, if, forward step S316 to, if not, forward step S326 to;
Step S312: first terminal is preserved first location information of terminals and positioning time;
Step S314: first terminal is closed GPS mobile phone positioning function;
Step S316: the user starts the cell phone map function, closes GPS mobile phone positioning function, and the reason of closing GPS mobile phone positioning function this moment is the relatively power consumption of GPS location, thereby should close;
Step S318: the user selects a position by clicking on cell phone map;
Step S320: first terminal is preserved positional information and positioning time, closes the cell phone map function;
Step S322: first terminal is compiled as the special format note with the positioning time and the positional information of preserving, and the note of this special format does not need special restriction as long as first terminal and the second terminal both sides can discern mutually;
Step S324: first terminal sends to second terminal with note;
Step S326: first terminal receives the selection of user to whether continuing to locate, if, then return step S306, start the GPS function and position;
Step S328: first terminal is closed GPS, and returns step S304, once more to judging positioning time.
In specific implementation process, the form of the note of special format for example is among the step S322:
##GPS?POSITION?INFO:.....NAME:.....DATA:.....TIME:.....POSITION:.....##
Fig. 4 is that a kind of according to the preferred embodiment of the invention terminal receives the also flow chart of the method for stored information.A kind of according to the preferred embodiment of the invention terminal as shown in Figure 4 receives and the method for stored information may further comprise the steps (step S402-step S424):
Step S402: second terminal is received the note that first terminal sends;
Step S404: whether the note that second terminal judges is received comprises the mobile phone locating information, if enter step S408;
Step S406: second terminal enters the normal short message process flow steps, the end process;
Step S408: the content of the second terminal parses note, extract the number of first terminal, positioning time and positional information, positional information can be detailed latitude and longitude information;
Step S410: whether have the business card of this number correspondence in second terminal judges, second terminal, if enter step S414;
Step S412: second terminal is preserved this number, enters step S416;
Step S414: second terminal is called the business card of this number correspondence;
Step S416: second terminal is preserved positioning time and positional information, is saved in the default file;
Step S418: whether the second terminal judges user preestablishes to checking immediately, if not, and the end process;
Step S420: the second terminal notifying user, and the function of startup cell phone map;
Step S422: second terminal is taken out the locating information of first terminal from file, in the particular location and the positioning time that show each period location under this business card or this number on the cell phone map;
Step S424: the process that user's end of second terminal is watched, close cell phone map.
In specific implementation process, even second terminal is not received the locating information that first terminal sends, also can start cell phone map at any time, inquire about the active path of first terminal certain period.
Among the step S422, last locating information can highlight on cell phone map, and second terminal can handle each positional information automatically, and these positional informations are shown as active path on the cell phone map.
Among the step S416, default file is special-purpose file storage, number, business card, positioning time and the positional information of the terminal that storage receives.
By the foregoing description, a kind of method of locating terminal is provided, the positional information of terminal positioning or reception, storage terminal and positioning time, realize position and path query function to terminal.
System embodiment
According to the embodiment of the invention, also provide a kind of terminal.
Fig. 5 is the structured flowchart according to the terminal of the embodiment of the invention.As shown in Figure 5, the terminal according to the embodiment of the invention comprises: positioning unit 10,information generating unit 20, information acquisition unit 30 and transmitting element 40.Below further combined with Fig. 5 the details of above-mentioned each module is described.
Positioning unit 10 is used to position operation, and this unit preferably can be realized by the GPRS position indicator.
Information generating unit 20 is used for the positioning action according to positioning unit, generates positional information.
Information acquisition unit 30 is used to obtain information positioning time of positioning action.
Transmitting element 40, be used for positional information and positioning time information send to distant terminal, preferably can the short message by special format send positional information and positioning time information, adopt the effect of the short message of special format to be to be different from common short message.
Fig. 6 is the structured flowchart of terminal according to the preferred embodiment of the invention.As shown in Figure 6, terminal can also comprise first receiving element 50, memory cell 60, second receiving element 70 and query unit 80.
As shown in Figure 6, first receiving element 50 be used to receive from the positional information of distant terminal and positioning time information; Memory cell 60 be used to store local positional information and positioning time information and the positional information that receives of first receiving element 50 and positioning time information, for example, preferably, can according to positional information and positioning time information mapping relations store; Second receiving element 70 is used to receive the query requests from the user, wherein, carries temporal information in the query requests; Query unit 80 is used for searching memory cell 60 according to temporal information, obtains position location and location path.
By the foregoing description, a kind of terminal is provided, can realize position and path query function to terminal.
In sum, by the above embodiment of the present invention, the terminal positioning scheme that provides has solved the locating information that terminal in the correlation technique is not preserved user self, in order to the function of subsequent query, also not to the problem of the other side's function of the inquiry of active path in a certain period.Utilize the solution of the present invention, can store and inquire about the active path of a certain period of terminal, so can select the period to watch self or residing at that time position of other terminal or the path of a period of time as required arbitrarily, the contact between user friendly memorandum and the user with help each other.In addition, because the data volume that positional information comprises is smaller, general handheld terminal just can be stored considerable information, and therefore, the time range that can inquire about is very big.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.