Summary of the invention
The technical problem that the present invention mainly solves provide a kind of positional information sending method, share method and mobile communication terminal thereof, can when sending to other people message file, let other people know sender's current location automatically, simple operation, efficient are higher.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of position information transfer method is provided, comprises the steps: to obtain longitude, the latitude data of transmitting terminal; With longitude, latitude data transaction is the positional information of transmitting terminal, and wherein, positional information is character string or picture; When sending message file to be sent, positional information is inserted in the message file to be sent or is attached to outside the message file.
Wherein, obtain before the step of longitude, latitude data of transmitting terminal, comprising: create or edit information file; Obtain the operational order that sends message file; Be inserted in the message file to be sent positional information or the step that is attached to outside the message file comprises: the type of decision operation instruction; If operational order is the instruction of inserting the character string type positional information; Stem and afterbody in the character string positional information that acquires add sign as new positional information, and are inserted into the position that message file is set; If operational order is to insert the picture instruction, the picture of the predetermined size that acquires is inserted into the position of message file setting.
Wherein, Before the step of obtaining the longitude of transmitting terminal, latitude data; Comprise: the type of decision operation instruction, if operational order be meant be shown in the message file or outside increase the instruction of positional information, carry out and obtain the longitude of transmitting terminal, the step of latitude data; Otherwise, directly send message file and do not send positional information.
For solving the problems of the technologies described above, another technical scheme that the present invention adopts is: a kind of position information share method is provided, comprises: longitude, the latitude data of obtaining transmitting terminal; With longitude, latitude data transaction is the positional information of transmitting terminal, and wherein, positional information is character string or picture; Positional information is inserted in the message file to be sent or is attached to outside the message file; When sending message file to be sent, positional information is inserted in the message file to be sent or is attached to outside the message file; Receiving terminal receives the message file of band positional information and shows.
For solving the problems of the technologies described above, another technical scheme that the present invention adopts is: a kind of mobile communication terminal is provided, comprises: the GPS module is used to obtain longitude, the latitude data of transmitting terminal; The ground module, being used for longitude, latitude data transaction is the positional information of transmitting terminal, wherein, positional information is character string or picture; Information management module when being used to send message file to be sent, being inserted into positional information in the message file to be sent or being attached to outside the message file.
Wherein, the GPS module can be integrated with the ground module.
Wherein, information management module comprises creates the edit cell and first judging unit, creates edit cell and is used for creating or edit information file; First judging unit is used for the type of decision operation instruction; If operational order is the instruction of inserting the character string type positional information; Stem and afterbody in the character string positional information that acquires add sign as new positional information, and are inserted into the position that message file is set; If operational order is to insert the picture instruction, the picture of the predetermined size that acquires is inserted into the position of message file setting; The GPS module comprises instruction fetch unit, is used to obtain the operational order that sends message file.
Wherein, the GPS module comprises second judging unit, is used for the type of decision operation instruction, if operational order be meant be shown in the message file or outside increase the instruction of positional information, carry out and obtain the longitude of transmitting terminal, the step of latitude data; Otherwise, directly send message file and do not send positional information.
Wherein, message file is mail, multimedia message, note, blog or on-line signature.
Wherein, positional information is picture and said message file when being multimedia message, and the size of picture is less than or equal to 50KB.
The invention has the beneficial effects as follows: be different from the prior art inconvenience provides sender's positional information when other people send message file situation; Longitude, the latitude data of the present invention through obtaining transmitting terminal; And be the more specific location information of transmitting terminal according to this longitude, latitude data conversion, correspondingly in the message file process of transmitting at last add current location at the message file ad-hoc location, can when sending to other people message file, let other people know sender's current location automatically; Simple to operate, raise the efficiency; And the current location available pictures embodies, and is vivid.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is elaborated.
Consult Fig. 1, position information transfer method first embodiment of the present invention comprises the steps:
Step S1 obtains longitude, the latitude data of transmitting terminal.
In step S1; The built-in GPS chip of transmitting terminal is opened, and begins to obtain self longitude, latitude data, after the GPS chip is opened; Receive the locating information of satellite in real time, thereby and resolve this locating information to obtain the current position data of transmitting terminal be longitude and latitude data.Simultaneously, as long as creating or editing in the mail process always, the GPS chip will be whenever at a distance from one second obtaining the current longitude of transmitting terminal, latitude data.Like this, even transmitting terminal is in the motion process, its longitude, latitude data also can not stop to upgrade.Certainly, the obtaining the cycle of GPS chip positional data, promptly blanking time changeable, be provided with according to actual needs.
Step S2 is the positional information of transmitting terminal with longitude, latitude data transaction, and wherein, positional information is character string or picture.
In step S2, get access to longitude, latitude data after, through map application,, inquire about this longitude, the represented more specific location information of latitude data like Google Maps or Baidu's map.In Google Maps or the Baidu's map, each point corresponding to the combination of a longitude, latitude data, simultaneously also corresponding to a concrete positional information, can be a concrete positional information with longitude, latitude data conversion just so lead to this corresponding relation all.As: (E114 ° 04 ' 12 ", N22 ° of 37 ' 12 "), correspondence position information is " Shenzhen ".Certainly, this positional information can be more careful, as long as longitude, the latitude data are accurate to also has in certain value and the map application database positional information more specifically should be arranged, this positional information can be specific to a certain street even a certain solitary building etc.
This positional information can be a character string, also can be picture.When this positional information is character string, embody positional information with character string forms, its traffic consumes is few, succinct; When this positional information was picture, this picture was from map application, was the center with the current location, and the square area of the predetermined size of intercepting can be vivider, very clear with picture embodied positional information.Certainly, the form of expression of this positional information is looked concrete condition and is set.
Step S3 when sending message file to be sent, is inserted into positional information in the message file to be sent or is attached to outside the message file.
In step S3,, this positional information is inserted message file to be sent or is attached to outside the message file according to predefined position.With this message file is that mail is an example, and concrete insertion position is traditionally arranged to be that Mail Contents ending place, content begin to locate, last column of mail signature, title ending place of mail or the like.Certainly, look concrete condition different insertion positions can be set.Insertion position information in process of transmitting, can make positional information more in real time, more accurate.
The embodiment of the invention through longitude, the latitude data of obtaining transmitting terminal, and is the more specific location information of transmitting terminal according to this longitude, latitude data conversion; Corresponding to message file ad-hoc location interpolation current location in the message file process of transmitting at last; Can when sending to other people message file, let other people know sender's current location automatically, simple to operate, raise the efficiency, and; The current location available pictures embodies, and is vivid.
In other was used, the recipient can also use the positional information in the message file, as can searching for the location to the other side's positional information, or navigation etc.
Consult Fig. 2, position information transfer method second embodiment of the present invention comprises the steps:
Step S11 creates or edit information file.
Step S12 obtains the operational order that sends message file.
Step S13, the type of decision operation instruction.
If operational order be meant be shown in the message file or outside increase the instruction of positional information, execution in step S14; Otherwise, execution in step S18.
In step S13, whether transmitting terminal obtains needs insertion position information, if desired with regard to execution in step S14, if do not need, just directly sends the general information file, does not promptly comprise the message file of positional information.
Step S14 obtains longitude, the latitude data of transmitting terminal.
Step S15 is the positional information of transmitting terminal with longitude, latitude data transaction, and wherein, positional information is character string or picture.
Step S16 when sending message file to be sent, is inserted into positional information in the message file to be sent or is attached to outside the message file.
In step S16: the step that comprises the type of decision operation instruction.
If operational order is the instruction of inserting the character string type positional information, adds sign as new positional information at the stem and the afterbody of the character string positional information that acquires, and be inserted into the position of message file setting.When being " Shenzhen " such as positional information, adding the sign back is [Shenzhen], can certainly be other symbol, as long as the content and the positional information of ability distinctive information file are not done too much restriction here.
If operational order is to insert the picture instruction, the picture of the predetermined size that acquires is inserted into the position of message file setting.The size of this preset value is a concrete condition and deciding, such as, when the type of message file was multimedia message, because the recommendation of network service provider, the predetermined size of this picture was traditionally arranged to be below the 50KB.The predetermined size of this picture can be provided with different predetermined sizes according to the difference of message file type.
Step S17 directly sends message file and does not send positional information.
The embodiment of the invention increases step S13, can select sending or not sending the message file that comprises positional information; Step S17 comprises the operational order determining step; But the form of expression of location information is selected, and can make things convenient for the user, increases user experience.
Except that the foregoing description, the user can be through manual insertion position information in message file, and its concrete grammar catches up with that to state step similar, and its unique difference is: manually select the insertion position and insert character string and still insert picture.Give unnecessary details no longer one by one here.
The present invention also provides a kind of position information share method embodiment.This embodiment comprises the steps:
Obtain longitude, the latitude data of transmitting terminal;
With longitude, latitude data transaction is the positional information of transmitting terminal, and wherein, positional information is character string or picture;
Positional information is inserted in the message file to be sent or is attached to outside the message file;
When sending message file to be sent, positional information is inserted in the message file to be sent or is attached to outside the message file;
Receiving terminal receives the message file of band positional information and shows.
Consult Fig. 3, mobile communication terminal first embodiment of the present invention comprises:GPS module 11,module 12 andinformation management module 13.
GPS module 11 is used to obtain longitude, the latitude data of transmitting terminal;
Ground module 12 connectsGPS module 11, and being used for longitude, latitude data transaction is the positional information of transmitting terminal, and wherein, positional information is character string or picture;
Information management module 13 connectsground module 12, when being used to send message file to be sent, positional information is inserted in the message file to be sent or is attached to outside the message file.
ThisGPS module 11 can integratedly be a positioninformation process module 1 withground module 12.
In the foregoing description, the type of message file is mail, multimedia message, note, blog or on-line signature.
The operation principle of the embodiment of the invention is:
With the message file is that mail is that example describes.When the user created or edits mail, information management module notice positioninformation process module 1 was started working.Positioninformation process module 1 startsGPS module 11;GPS module 11 is obtained the real-time longitude and latitude data of current location on the backstage; Be thatGPS module 11 is just every at a distance from the longitude that a second obtains current transmitting terminal, latitude data; Like this, when the user in motion process, the renewal that the positional information of transmitting terminal also can not stopped.When the user has edited mail, when selecting to send mail,information management module 13 is to positioninformation process module 1 request current position information; Then, positioninformation process module 1notice GPS module 11 sends toground module 12 with current longitude and latitude data, and afterground module 12 received data, this position, search location was concrete positional information with the longitude and latitude data conversion in map; Rearmost positionmessage processing module 1 returns toinformation management module 13 with positional information with the form of character string or the form of picture.Afterinformation management module 13 receives this positional information character string or picture, this character string or picture are inserted into place specific in the mail, like the signature place of mail.
In addition, when the type of message file was multimedia message, the size of this picture was less than or equal to 50KB.When the type of message file was other, the size of picture did not have the restriction of 50KB, can set according to circumstances.And, when the type of message file is note, do not support positional information is represented with the picture form.
The embodiment of the invention; IncreaseGPS module 11 andground module 12; Obtain positional information, ask these positional informations byinformation management module 13, and send with message file; Can when sending to other people message file, let other people know sender's current location automatically, simple operation, efficient be higher.
The difference of mobile communication terminal second embodiment of the present invention and first embodiment is, mobile communication terminal second embodiment of the present invention:
Information management module comprises creates the edit cell and first judging unit.
Create edit cell, be used for creating or edit information file.
First judging unit; The type that is used for the decision operation instruction; If operational order is the instruction of inserting the character string type positional information, adds sign as new positional information at the stem and the afterbody of the character string positional information that acquires, and be inserted into the position of message file setting; If operational order is to insert the picture instruction, the picture of the predetermined size that acquires is inserted into the position of message file setting.
The GPS module comprises the instruction fetch unit and second judging unit.
This instruction fetch unit is used to obtain the operational order that sends message file.
This second judging unit is used for the type of decision operation instruction, if operational order be meant be shown in the message file or outside increase the instruction of positional information, carry out and obtain the longitude of transmitting terminal, the step of latitude data; Otherwise, directly send message file and do not send positional information.
More than be merely embodiments of the invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.