Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The process flow diagram of the method for the recording geographical position information that Fig. 1 provides for the embodiment of the invention.The method comprises:
The positional information that step 11, reception network side send, described positional information comprises geographic position data;
The geographic position data at the user place that detects such as real-time reception GPS comprises longitude, latitude, height etc.; Perhaps, as utilize the architecture technology, from the base station receiving position information.
Step 12, judge the user residence time in geographic position corresponding to described geographic position data whether greater than default short residence time;
Particularly, can comprise the geographic position data in the current geographical location information that receives and the front address location information that once receives is compared, obtain deviate; When described deviate is in default deviation range, carries out described judge the user residence time in geographic position corresponding to described geographic position data whether greater than the short residence time of presetting.Suppose GPS in the difference of the geographic position data that detected at 10 o'clock and the geographic position data that detects for 10 thirty less than default deviation range, namely the geographic position data variation range can think that less than default deviation range two geographic position are in the same area; And judge the residence time of user in this zone whether greater than default short residence time, if greater than short residence time, illustrate that the user has carried out certain activity in this zone; Otherwise think that this user does not have activity in this zone.
Step 13, in the situation of the described residence time greater than described default short residence time, the geographic position that recording user stopped within the described residence time and/or the residence time.
As recording the administrative division title in zone described in the above-mentioned steps 12, perhaps record street name etc.
The positional information of the technical scheme that present embodiment provides by providing by network side judged whether the user stops and then record the information such as stop place somewhere, thereby presented will record the result, realized the automatic record of positional information.
Before the above-mentioned steps 11, the method based on the Global Positioning System (GPS) recording geographical position information that the embodiment of the invention provides also can comprise: inputted by the user or the deviation range of system default, to improve the dirigibility of recording geographical position information.
Before the above-mentioned steps 11, the method based on the Global Positioning System (GPS) recording geographical position information that the embodiment of the invention provides also can comprise: accept the short residence time of user input or system default, to improve the dirigibility of record reason positional information.
The method based on the Global Positioning System (GPS) recording geographical position information that the embodiment of the invention provides also can comprise: show geographic position and/or the residence time of record, so that consult; Perhaps can comprise: in calendar or schedule, show geographic position and the residence time of record, further to facilitate consultation.
The structural representation of the portable terminal of the recording geographical position information that Fig. 2 provides for the embodiment of the invention.As shown in Figure 2, this portable terminal comprises: receiving element 21, judging unit 22 and position record cell 23.Receiving element 21 is used for receiving the positional information that network side sends, and described positional information comprises geographic position data.As receive the positional information that GPS or base station provide, see the explanation of above-mentioned steps 11 for details.Judging unit 22 be used for judging the user residence time in geographic position corresponding to described geographic position data whether greater than the short residence time of presetting, see the explanation of above-mentioned steps 12 for details.Position record cell 23 is used for recording geographic position and/or the residence time that described user stops within the described residence time in the situation of the described residence time greater than described default short residence time, sees the explanation of above-mentioned steps 13 for details.When the GPS variation was very little, judging unit 22 was judged following two conditions constantly:
1) variation range of GPS position is less than " deviation range ";
2) residence time in deviation range is greater than " short residence time ".
If two conditions all satisfy, enable position record cell 23 recording geographical positions then.This geographic position can be the position information such as street name that GPS provides, and also can be the position information such as corresponding enterprise name that the user arranges in address book.
In the present embodiment, the positional information of the portable terminal of recording geographical position information by providing by network side, judge whether the user stops and then record the information such as stop place somewhere, thereby present will record the result, realized the automatic record of positional information.
The portable terminal of the recording geographical position information that the embodiment of the invention provides also can comprise: comparing unit 26, be used for the geographic position data of the current geographical location information that receives and the front address location information that once receives is compared, obtain deviate.At this moment, described judging unit 22 also is used for when described deviate is in default deviation range, carry out described judge the user residence time in geographic position corresponding to described geographic position data whether greater than default short residence time, see the explanation of above-mentioned steps 12 for details.
The portable terminal of the recording geographical position information that the embodiment of the invention provides also can comprise: position deviation setting unit 24, be used for before the positional information that receives the network side transmission, and accept the deviation range of user's input or system default.The user can arrange " deviation range " that the GPS position allows as required.
The portable terminal of the recording geographical position information that the embodiment of the invention provides also can comprise: set of time unit 25, be used for before receiving the positional information that network side sends, and accept the short residence time of user's input or system default.The user can arrange trigger recording " short residence time " as required.
The position record cell 23 of the portable terminal of the recording geographical position information that the embodiment of the invention provides also can carry out record to the stop number of times in geographic position of record, such as twice arrival of geographic position party A-subscriber, and satisfy the condition that position record cell 23 records, then record corresponding number of times 2.
The portable terminal of the recording geographical position information that the embodiment of the invention provides also can comprise: display unit 27 is used for showing geographic position and/or the residence time of recording; Perhaps be used for showing geographic position and/or the residence time of recording at calendar or schedule.Namely show GPS positional information, time of arrival, the residence time, the time departure of record, perhaps further show positional information, number of times information, history information in the address book.
The portable terminal of the recording geographical position information that the embodiment of the invention provides also can comprise: record control unit 28, be used for opening or closing described judging unit, position record cell, the unlatching of the function of the i.e. portable terminal of control note record geographical location information or close, the user can arrange the state of automatic recording function of this portable terminal as required as enabling, forbidding.
The workflow synoptic diagram that Fig. 3 provides the portable terminal of recording geographical position information to use for the embodiment of the invention.Suppose that this portable terminal at first has some following settings: the 1) opening and closing of automatic recording function, self registering date and time scope, for example: working day 8:00-18:00.2) " the short residence time " of trigger recording that is: stops above " short residence time " in certain position, just begins to record corresponding informance.3) " deviation range " of GPS position, that is: two GPS positions all in deviation range, think then that these two GPS change in location are little in many aspects such as longitude, latitude, height, should calculate in same zone.4) positional information to preserving in the GPS address book provides NAPT function, also allows to arrange voluntarily " short residence time " and " deviation range ".Recording process comprises:
Step 31, judge whether to open automatic recording function, if do not have, then finish; Otherwise, execution in step 32;
Step 32, opened after the automatic recording function, received in real time the GPS positional information that GPS provides, and constantly detect the variation of GPS positional information.
Step 33, judge that whether the GPS positional information changes less than " deviation range ", and the residence time is greater than " short residence time "; If namely time of changing between deviation range of GPS positional information surpasses " the short residence time " set, then execution in step 34; Otherwise continue to detect, and carry out decision operation;
Step 34, the information such as duration of automatically preserving positional information, time departure and calculating.
Step 35, continuation judge whether the GPS positional information exceeds " deviation range "; If then execution in step 36; Otherwise continue to carry out decision operation;
Step 36, record time departure obtain time of arrival and the residence time, and time and GPS positional information are carried out keeping records.
Positional information and the time of step 37, demonstration record.Such as information such as the position that can arbitrarily check in the past record and times.And editting function is provided, and increase clauses and subclauses such as " contents ", make things convenient for user record in the information such as activity description in this place.Also can be for GPS address lookup historical record function, the number of times that went in can inquiring between arbitrary time period, each information such as gps time.For record position information, can draw out random time section user's event trace, and can cooperate temporal information at trajectory diagram, the user is in the residence time of certain position length in the image expression.
Said method, device and the positional information of terminal embodiment by providing by network side are judged whether the user stops and then record the information such as stop place somewhere, thereby are presented will record the result, have realized the automatic record of positional information.Can provide automatic edition function further.Like this, mobile electronic device just can be helped the user record location information automatically, and automatically generates the behavior report of every day, understands the details such as the number of times that stops in certain place, duration thereby be convenient to the user within a period of time.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.