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 is obtained 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.This method comprises:
The positional information that step 11, reception network side send, described positional information comprises geographic position data;
Geographic position data as the detected user of real-time reception GPS place comprises longitude, latitude, height etc.; Perhaps, as utilize the base station location technology, from the base station receiving position information.
Step 12, judge the user residence time in the geographic position of described geographic position data correspondence whether greater than default short residence time;
Particularly, can comprise the geographic position data in current geographical location information that receives and the preceding 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 the geographic position of described geographic position data correspondence whether greater than the short residence time of presetting.Suppose GPS 10 o'clock detected geographic position data and 10 thirty detected geographic position data difference less than default deviation range, promptly 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, illustrate that the user has carried out certain activity in this zone greater than short residence time; Otherwise think that this user does not have activity in this zone.
Step 13, under the situation of the described residence time greater than described default short residence time, the geographic position that recording user stopped in the described residence time and/or the residence time.
As writing down the administrative division title in zone described in the above-mentioned steps 12, perhaps write down 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 note information such as stop place somewhere, thereby presented will write down 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: imported 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: the geographic position of displayed record and/or the residence time, so that consult; Perhaps can comprise: the geographic position of displayed record and the residence time in calendar or schedule, 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 location records unit 23.Receiving element 21 is used to receive 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 to judge the user residence time in the geographic position of described geographic position data correspondence whether greater than default short residence time, see the explanation of above-mentioned steps 12 for details.Location records unit 23 is used for writing down the geographic position and/or the residence time that described user stops in the described residence time under 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 ".
All satisfy as if two conditions, then enable position record cell 23 recording geographical positions.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 is provided with 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 note information such as stop place somewhere, thereby present, realized the automatic record of positional information will write down the result.
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 current geographical location information that receives and the preceding 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 the geographic position of described geographic position data correspondence 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 is provided with unit 24, is used for before the positional information that receives the network side transmission, accepts the deviation range of user's input or system default.The user can be provided with " 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: the time is provided with unit 25, is used for before receiving the positional information that network side sends, and accepts the short residence time of user's input or system default.The user can be provided with trigger recording " short residence time " as required.
The location records unit 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, as twice arrival of geographic position party A-subscriber, and satisfy the condition that location records unit 23 writes down, then write down 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 the geographic position and/or the residence time of displayed record; Perhaps be used for the geographic position and/or the residence time in calendar or schedule displayed record.Be GPS positional information, time of arrival, the residence time, the time departure of displayed record, positional information, number of times information, history information in the perhaps further explicit address basis.
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, location records unit, the unlatching of the function of the i.e. portable terminal of control note record geographical location information or close, the user can be provided with 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 ", with regard to the opening entry corresponding informance in certain position.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 be provided with voluntarily " short residence time " and " deviation range ".Recording process comprises:
Step 31, judge whether to open automatic recording function,, then finish if do not have; Otherwise, execution in step 32;
Step 32, opened after the automatic recording function, received the GPS positional information that GPS provides in real time, 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 promptly 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 preserving positional information, time departure and calculating automatically.
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 the time of arrival and the residence time, and time and GPS positional information are carried out keeping records.
The positional information of step 37, displayed record and time.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 the information such as activity description of user record in this place.Also can be at 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.At record position information, random time section user's event trace can be drawn out, and temporal information can be on trajectory diagram, cooperated, 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 note information such as stop place somewhere, thereby are presented will write down 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 generates the behavior report of every day automatically, understands details such as the number of times that stops in certain place, duration thereby be convenient to the user in 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: 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 put 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.