Summary of the invention
The embodiment of the present disclosure provides the sharing method and device of geographical location information, can allow and is intuitive to see by sharing side
The geographical location of sharing side, it is easy to operate;The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of sharing method of geographical location information is provided, comprising:
When receiving position and disclosing sharing instruction, obtain user current location in the first map application first positioningly
Figure;
Screenshot processing is carried out to first positioning map, obtains map picture;
The map denotation parameter of first positioning map is obtained, the map denotation parameter is fixed for restoring described first
Map situation in the map of position;
It after the map denotation parameter coding, is written in the pictorial information of the map picture, generates and carry
State the map picture of map denotation parameter;
The map picture for carrying the map denotation parameter is sent to by sharing side.
In one embodiment, the map denotation parameter includes the GPS coordinate of user current location, user current location
In the coordinate of first positioning map, the scaling of first positioning map, rotation angle information.
In one embodiment, the map denotation parameter includes: the GPS coordinate of user current location, user's present bit
Set the coordinate in first positioning map, the scaling of first positioning map, rotation angle information, user's present bit
Set the map distance, actual range, angle with surrounding features building, the application type of the first map application.
In one embodiment, the method also includes:
The map denotation parameter of the first positioning map of the user current location is sent to by sharing side in real time.
In one embodiment, the method also includes:
Receive position hide share instruction when, position the user current location information;
Generate and carry the picture to be shared of the user current location information, it is described wait share do not shown in picture it is described
User current location information;
The picture to be shared for carrying the user current location information is sent to by sharing side.
It is in one embodiment, described to generate the picture to be shared for carrying the user current location information, comprising:
Obtain initial picture to be shared;
After the user current location information coding, it is written in the pictorial information of the initial picture to be shared,
Generate the picture to be shared for carrying the user current location information.
It is in one embodiment, described to generate the picture to be shared for carrying the user current location information, comprising:
By the user current location information and picture type parameter coding at character string;
The character string is converted into decimal number;
Generated using the decimal number that is converted into as pixel carry the user current location information wait share
Picture.
According to the second aspect of an embodiment of the present disclosure, a kind of sharing method of geographical location information is provided, comprising:
Receive the map picture for carrying the map denotation parameter;
Show the map picture;
When receiving the first operation for the map picture, the map picture is decoded, the map denotation is obtained
Parameter;
According to the map denotation parameter, second of user current location described in the second map application of display is positioningly
Figure, second positioning map are identical as the map situation of first positioning map.
In one embodiment, described when first map application is identical as the application type of the second map application
Map denotation parameter includes the GPS coordinate of user current location, coordinate of the user current location in first positioning map, institute
State scaling, the rotation angle information of the first positioning map.
In one embodiment, the map denotation parameter includes: the GPS coordinate of user current location, user's present bit
Set the coordinate in first positioning map, the scaling of first positioning map, rotation angle information, user's present bit
Set the map distance, actual range, angle with surrounding features building, the application type of the first map application;The then basis
The map denotation parameter shows the second positioning map of user current location described in the second map application, comprising:
When the application type of first map application is identical as the application type of second map application, according to institute
State the GPS coordinate of user current location, coordinate of the user current location in first positioning map, first positioning map
Scaling, rotation angle information, show the second map application described in user current location the second positioning map;
In the application type and the application type difference of second map application of first map application, according to institute
State the second positioning map that map denotation parameter shows user current location described in the second map application.
In one embodiment, the method also includes:
The map denotation parameter of first positioning map of user current location described in real-time reception;
According to the second positioning map described in the map denotation parameter real-time update.
In one embodiment, the method also includes:
Receive the picture to be shared for carrying the user current location information;
Show the picture to be shared;
When receiving the second operation for described wait share picture, the picture to be shared is decoded, the user is obtained
Current location information;
According to the user current location information, the third positioning of user current location described in the second map application is shown
Map.
In one embodiment, picture to be shared described in the decoding obtains the user current location information, comprising:
The pixel of the picture to be shared is decoded as decimal number;
The decimal number is converted into character string;
The character string is decoded as the user current location information and picture type parameter.
According to the third aspect of an embodiment of the present disclosure, a kind of sharing apparatus of geographical location information is provided, comprising:
First obtain module, for receive position disclose sharing instruction when, obtain the first map application in user work as
First positioning map of front position;
Screen capture module obtains map picture for carrying out screenshot processing to first positioning map;
Second obtains module, for obtaining the map denotation parameter of first positioning map, the map denotation parameter
For restoring the map situation in first positioning map;
First generation module, for believing the picture for after the map denotation parameter coding, being written to the map picture
In breath, the map picture for carrying the map denotation parameter is generated;
First sending module, for being sent to the map picture for carrying the map denotation parameter by sharing side.
In one embodiment, the map denotation parameter includes the GPS coordinate of user current location, user current location
In the coordinate of first positioning map, the scaling of first positioning map, rotation angle information.
In one embodiment, the map denotation parameter includes: the GPS coordinate of user current location, user's present bit
Set the coordinate in first positioning map, the scaling of first positioning map, rotation angle information, user's present bit
Set the map distance, actual range, angle with surrounding features building, the application type of the first map application.
In one embodiment, described device further include:
Second sending module, in real time sending out the map denotation parameter of the first positioning map of the user current location
It gives by sharing side.
In one embodiment, described device further include:
Locating module, for receive position hide share instruction when, position the user current location information;
Second generation module, it is described wait divide for generating the picture to be shared for carrying the user current location information
It enjoys and does not show the user current location information in picture;
Third sending module, the picture to be shared for that will carry the user current location information, which is sent to, to be shared
Side.
In one embodiment, second generation module includes:
Acquisition submodule, for obtaining initial picture to be shared;
First generates submodule, for after the user current location information coding, will be written to it is described it is initial to point
It enjoys in the pictorial information of picture, generates the picture to be shared for carrying the user current location information.
In one embodiment, second generation module includes:
Encoding submodule is used for the user current location information and picture type parameter coding into character string;
First transform subblock, for the character string to be converted to decimal number;
Second generates submodule, works as carrying the user as pixel generation using the decimal number being converted into
The picture to be shared of front position information.
According to a fourth aspect of embodiments of the present disclosure, a kind of sharing apparatus of geographical location information is provided, comprising:
First receiving module, for receiving the map picture for carrying the map denotation parameter;
First display module, for showing the map picture;
First decoder module decodes the map picture when for receiving the first operation for being directed to the map picture,
Obtain the map denotation parameter;
Second display module, for showing that user described in the second map application is current according to the map denotation parameter
Second positioning map of position, second positioning map are identical as the map situation of first positioning map.
In one embodiment, described when first map application is identical as the application type of the second map application
Map denotation parameter includes the GPS coordinate of user current location, coordinate of the user current location in first positioning map, institute
State scaling, the rotation angle information of the first positioning map.
In one embodiment, the map denotation parameter includes: the GPS coordinate of user current location, user's present bit
Set the coordinate in first positioning map, the scaling of first positioning map, rotation angle information, user's present bit
Set the map distance, actual range, angle with surrounding features building, the application type of the first map application;Then described second
Display module includes:
First display sub-module, for answering for application type and second map application in first map application
When identical with type, according to the GPS coordinate of the user current location, seat of the user current location in first positioning map
Mark, the scaling of first positioning map, rotation angle information show user current location described in the second map application
The second positioning map;
Second display sub-module, for answering for application type and second map application in first map application
When with type difference, the second positioning of user current location described in the second map application is shown according to the map denotation parameter
Map.
In one embodiment, described device further include:
Second receiving module, the map denotation ginseng of the first positioning map for user current location described in real-time reception
Number;
Update module is used for the second positioning map according to the map denotation parameter real-time update.
In one embodiment, described device further include:
Third receiving module, for receiving the picture to be shared for carrying the user current location information;
Third display module, for showing the picture to be shared;
Second decoder module, when being directed to second operation wait share picture for receiving, decoding is described wait share
Picture obtains the user current location information;
Third display module, for showing user described in the second map application according to the user current location information
The third positioning map of current location.
In one embodiment, second decoder module includes:
First decoding sub-module, for the pixel of the picture to be shared to be decoded as decimal number;
Second transform subblock, for the decimal number to be converted to character string;
The character string is decoded as the user current location information and picture type parameter by the second decoding sub-module.
According to a fifth aspect of the embodiments of the present disclosure, a kind of sharing apparatus of geographical location information is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to step in the method that above-mentioned first aspect provides when executing;
Alternatively, the processor is configured to step in the method that above-mentioned second aspect provides when executing.
According to a sixth aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is provided, computer is stored with and refers to
It enables, the computer instruction realizes the step in the method that above-mentioned first aspect provides when being executed by processor;
Alternatively, the computer instruction realizes the step in the method for above-mentioned second aspect offer when being executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment can receive
When position discloses sharing instruction, the first positioning map of user current location in the first map application is obtained;It is fixed to described first
Position map carries out screenshot processing, obtains map picture;The map denotation parameter of first positioning map is obtained, the map is aobvious
Show parameter for restoring the map situation in first positioning map;After the map denotation parameter coding, it is written to institute
It states in the pictorial information of map picture, generates the map picture for carrying the map denotation parameter;The map will be carried
The map picture of display parameters is sent to by sharing side, can so make more intuitively to be seen by the side of sharing by the map picture
To the position of sharing side, by the first operation of sharing side's input it is seen that map situation in the first positioning map identical the
Two positioning maps, so that identical by the first positioning map that sharing side can be intuitive to see with the user of the side of sharing is seen
Map situation facilitates by the ground angle of field of the user of clear sharing side, sharing side, and easy to operate.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Sharing side side embodiment:
Fig. 1 is a kind of flow chart of the sharing method of geographical location information shown according to an exemplary embodiment, such as Fig. 1
Shown, the sharing method of geographical location information is for including the following steps 101-105 in the terminal of the side of sharing:
In a step 101, receive position disclose sharing instruction when, obtain the first map application in user current location
The first positioning map.
Here, when wanting with sharing oneself geographic location by sharing side, sharing side can be in terminal for sharing side
When communications applications in, sharing side discloses sharing instruction, the terminal of the side of sharing with input position on the communication interface by the side of sharing
Receive the position disclose sharing instruction after, so that it may call in terminal and answered with associated first map of the instant messaging application
With positioning user current location, obtain the first positioning map of user current location in the first map application, this is first positioningly
The geography information such as road, the building around the icon and user current location of user current location are shown on figure.
In a step 102, screenshot processing is carried out to first positioning map, obtains map picture.
In step 103, the map denotation parameter of first positioning map is obtained, the map denotation parameter is for also
Map situation in former first positioning map.
Here, terminal can do screenshot processing to first positioning map, to the map picture of the first positioning map.Together
When, terminal can also obtain the map denotation parameter of first positioning map, and the map denotation parameter is for restoring described first
Map situation in positioning map, the map situation include the situation of map display range, user current location in map.Show
Example, which may include the scaling of map, rotation angle, the GPS coordinate of map center point and user
The GPS coordinate of current location, can by the scaling of map, rotation angle, the GPS coordinate of map center point these parameters
To restore the map display range of the first positioning map;It can be used in reduction display by the GPS coordinate of user current location
Situation of the family current location in map.
At step 104, it by after the map denotation parameter coding, is written in the pictorial information of the map picture,
Generate the map picture for carrying the map denotation parameter.
Here, the map denotation parameter coding can be configured to corresponding data mould by software code side by terminal
Type is written in the pictorial information of the map picture, generates the map picture for carrying the map denotation parameter.
In step 105, the map picture for carrying the map denotation parameter is sent to by sharing side.
Here, the map picture for carrying the map denotation parameter can be sent to by terminal by instant messaging application
It can be in instant messaging application after receiving the map picture for carrying the map denotation parameter by sharing side by sharing side
In with show the map picture on the communication interface of the side of sharing, can be intuitive to see by sharing side by the map picture
The position of sharing side when being wanted to continue checking by sharing side, can click the map picture, will be decoded by the terminal of sharing side
The map picture obtains the map denotation parameter carried in the map picture, then, can be called end by the terminal of sharing side
Show that the second map is answered and according to the map denotation parameter with associated second map application of the instant messaging application in end
Second positioning map of the user current location of the side of sharing described in, second positioning map and first positioning map
Map situation it is identical, in this way, the user of sharing side can be intuitive to see from the second positioning map by the terminal of sharing side
The identical map situation of the first positioning map seen.
The present embodiment can receive position disclose sharing instruction when, obtain the first map application in user current location
The first positioning map;Screenshot processing is carried out to first positioning map, obtains map picture;Obtain described first positioningly
The map denotation parameter of figure, the map denotation parameter are used to restore the map situation in first positioning map;It will be described
It after map denotation parameter coding, is written in the pictorial information of the map picture, generation carries the map denotation parameter
Map picture;The map picture for carrying the map denotation parameter is sent to by sharing side, the ground can be so passed through
Figure picture makes the position that sharing side is more intuitively seen by the side of sharing, and can be by sharing side by the map denotation parameter
Identical with the map situation in the first positioning map the second positioning map is provided so that can be intuitive to see by sharing side and
The identical map situation of the first positioning map that the user of sharing side is seen facilitates by the user's of clear sharing side, sharing side
Ground angle of field.
In a kind of possible embodiment, the map denotation parameter includes the GPS coordinate of user current location, user
Coordinate of the current location in first positioning map, the scaling of first positioning map, rotation angle information.
Here, sharing side and the map application associated by the instant messaging application of the side's of sharing terminal are defined same answer
With the map application of type, i.e. the first map application is identical with the application type of the second map application.In this way, by the end of sharing side
End can go out the user current location of sharing side according to the user current location in the coordinate setting of first positioning map
It, then, can root by the terminal of sharing side in the coordinate (coordinate in two positioning maps is the same) of the second positioning map
According to the GPS coordinate of user current location, the scaling of first positioning map, rotation angle information restore the first positioning
The map display range of map, in this way, the second positioning map, which can be shown, shows identical geographical model with the first positioning map
It encloses, and goes out to show the user current location of sharing side in identical map reference, since the first positioning map and second position
Map is identical map style, therefore the second positioning map shown by the side of sharing and the first positioning map can be the same.
Map denotation parameter described in the present embodiment includes the GPS coordinate of user current location, and user current location is in institute
State the coordinate of the first positioning map, the scaling of first positioning map, rotation angle information, to facilitate and the first map
Identical second map application of the application type of application can accurate reproduction go out as the first positioning map second positioningly
Figure.
In a kind of possible embodiment, the map denotation parameter includes: the GPS coordinate of user current location, is used
Coordinate of the family current location in first positioning map, the scaling of first positioning map, rotation angle information are used
Map distance, actual range, the angle of family current location and surrounding features building, the application type of the first map application
Here, there is no fixed gauges with the map application associated by the instant messaging application of the side's of sharing terminal for sharing side
It is fixed, therefore the first map application associated by the instant messaging application of sharing side is closed with by the instant messaging application of the side's of sharing terminal
Second map application of connection can be the same or different.
Here, it by the terminal of sharing side according to the application type of the first map application, determines when the first map application and the
When the application type of two map applications is identical, by the terminal of sharing side according to the GPS coordinate of user current location, user's present bit
The coordinate in first positioning map is set, the scaling of first positioning map, rotation angle information can be shown
The second positioning map identical with the first positioning map out.
Here, it by the terminal of sharing side according to the application type of the first map application, determines when the first map application and the
When the application type difference of two map applications, by the terminal of sharing side according to the GPS coordinate of user current location, user's present bit
The coordinate in first positioning map is set, the scaling of first positioning map, rotation angle information can obtain
Body of a map or chart identical with the first positioning map and identical user current location are got, due to the first map application and second
The application type of map application is different, and the map denotation mode of the two is different, which can work as according to user
The map distance of front position and surrounding features building, actual range, these parameters of angle carry out finer adjustment, show
The second positioning map identical with the map situation of the first positioning map out.
Map denotation parameter described in the present embodiment includes: the GPS coordinate of user current location, and user current location is in institute
State the coordinate in the first positioning map, the scaling of first positioning map, rotation angle information, user current location with
Map distance, actual range, the angle of surrounding features building, the application type of the first map application, to facilitate with the first
Scheme identical or different the second map application of application type of application can accurate reproduction go out map with the first positioning map
Identical second positioning map of situation.
In a kind of possible embodiment, the sharing method of above-mentioned geographical location information can also include the following steps
A1。
In step A1, in real time by the map denotation parameter of the first positioning map of the user current location be sent to by
Sharing side.
Here, understood the position of sharing side in real time by sharing side for convenience, the terminal of the sharing side can be in real time by ground
Figure display parameters are sent to by sharing side, in this way, can real-time update second positioning map by the terminal of sharing side.
What needs to be explained here is that the terminal of the side of sharing in real time can be joined the map denotation by instant messaging application
Number is sent to by sharing side, passes through the communication interface between the instant messaging application and the second map application by the terminal of sharing side
The map denotation parameter is forwarded to second map application, which can be real according to the map denotation parameter
The second positioning map of Shi Gengxin.
The map denotation parameter of first positioning map of the user current location can be sent to by the present embodiment in real time
By sharing side so that by sharing side can real-time update second positioning map so that this can be real-time by sharing side
Solve the ground angle of field of sharing side.
In a kind of possible embodiment, the sharing method of above-mentioned geographical location information is also implemented as following steps
B1 to B3.
In step bl is determined, receive position hide share instruction when, position the user current location information.
In step B2, the picture to be shared for carrying the user current location information, the picture to be shared are generated
In do not show the user current location information.
In step B3, the picture to be shared for carrying the user current location information is sent to and is shared user.
Here, when needing privacy to maintain secrecy, geographical location is directly shared by sharing side to be immediately seen by other people,
Itself privacy can expose.At this point, the privacy in order to protect sharing side, sharing side can input position hide and share instruction, share
After the terminal of side receives the hiding sharing instruction in the position, so that it may which direct using terminal GPS positioning obtains user current location
Information such as GPS coordinate longitude and latitude numerical value etc..
Here, the picture to be shared for carrying the user current location information can be generated in the terminal of the side of sharing, should be wait divide
Any user current location information will not be shown by enjoying in picture, then, the terminal of the side of sharing can will carry describedly
The picture to be shared of figure display parameters is sent to by instant messaging application by sharing side, by sharing side receive this carry it is described
Map denotation parameter after sharing picture, can should be to display on the communication interface of the side of sharing in instant messaging application
Share picture, since the user current location information is not shown on the picture to be shared, therefore, what is shown should picture be shared
The location information of sharing side can't be exposed.
Here, when being wanted to check the user current location of the sharing side by sharing side, can click in concealed location should be to
Share picture, which will be decoded by the terminal of sharing side, obtain the map denotation carried in the picture to be shared
Parameter, then, by the terminal of sharing side can call in terminal with associated second map application of the instant messaging application, root
According to the user current location information, the third positioning map of user current location described in the second map application is shown, in this way,
The current location of the user of sharing side can be seen from third positioning map by sharing side.
What needs to be explained here is that due to not showing user current location information on the picture to be shared, in order to allow the quilt
Sharing knows that this carries user current location information wait share in picture, is somebody's turn to do figure to be shared in display by the terminal of sharing side
When piece, can show preset prompt information simultaneously, prompt this by the side of sharing show wait share, that user is carried in picture is current
Location information, it is exemplary, it can show specific icon or display text information " position picture " etc..
The present embodiment can receive position hide share instruction when, position the user current location information;It generates
The picture to be shared of the user current location information is carried, it is described not show the user current location in picture wait share
Information;The picture to be shared for carrying the user current location information is sent to by sharing side, in this way, being received simultaneously by sharing side
It has been shown that, due to not showing the user current location information on the picture to be shared, should protect sharing side after sharing picture
Location privacy.
In a kind of possible embodiment, the step B2 in the sharing method of above-mentioned geographical location information be can be implemented as
Following steps B21 and B22.
In step B21, initial picture to be shared is obtained.
In step B22, after the user current location information coding, it is written to the initial picture to be shared
In pictorial information, the picture to be shared for carrying the user current location information is generated.
Here, the side of sharing terminal generate carry the user current location information when sharing picture, Ke Yixian
Initial picture to be shared is got, which can be the photo or use that user selects from atlas
The photo that family is newly taken, as long as display should not show the user current location information when sharing picture.
Here, the terminal of the side of sharing is getting initial after sharing picture, user current location information can be led to
It crosses software code side and is configured to corresponding data type, and be labeled as the picture type of picture to be shared, be then written to wait divide
It enjoys among the pictorial information of picture, so far, generates the picture to be shared for carrying the user current location information.
The available initial picture to be shared of the present embodiment is write then by after the user current location information coding
Enter into the pictorial information of the initial picture to be shared, generates the figure to be shared for carrying the user current location information
Piece, generating mode are simple and fast.
In a kind of possible embodiment, the step B2 in the sharing method of above-mentioned geographical location information be can be implemented as
Following steps B23 to B25.
In step B23, by the user current location information and picture type parameter coding at character string.
In step B24, the character string is converted into decimal number.
In step B25, the user current location is carried as pixel generation using the decimal number being converted into
The picture to be shared of information.
Here, the terminal of the side of sharing can be by the picture type of user current location information and the picture to be shared to be generated
Parameter coding is converted to decimal number at character string, by the character string, and character string can such as be switched to standard ASCII character, will
ASCII character is converted to 7 bits, and the binary numeral spelled is redistributed with every 8, and deficiency mends 0, is converted to later
Decimal number, then, terminal can generate the picture to be shared as pixel using the decimal number being converted into
Generate the picture to be shared for concealing geographical location information of a similar white noise.
The present embodiment can be by the user current location information and picture type parameter coding at character string;By the word
Symbol string is converted to decimal number;The user current location letter is carried as pixel generation using the decimal number being converted into
The picture to be shared of breath, generating mode are simple and fast.
By sharing side side embodiment:
Fig. 2 is a kind of flow chart of the sharing method of geographical location information shown according to an exemplary embodiment, such as Fig. 2
Shown, the sharing method of geographical location information is used to include the following steps 201-204 by the terminal of sharing side:
In step 201, the map picture for carrying the map denotation parameter is received.
In step 202, the map picture is shown.
In step 203, when receiving the first operation for the map picture, the map picture is decoded, is obtained
The map denotation parameter.
In step 204, according to the map denotation parameter, user current location described in the second map application is shown
Second positioning map, second positioning map are identical as the map situation of first positioning map.
Here, sharing side, can be to by sharing side when wanting to disclose oneself geographic location with being shared by sharing side
The map picture for carrying the map denotation parameter is sent, this is received by sharing side and carries the map denotation parameter
After map picture, can in instant messaging application with show the map picture on the communication interface of the side of sharing, by sharing side
The position of sharing side can be intuitive to see by the map picture.
Here, it when being wanted to continue checking by sharing side, when can input the first operation for the map picture, such as clicks
The operation of the map picture will decode the map picture after receiving first operation by the terminal of sharing side, obtain the ground
Then the map denotation parameter carried in figure picture can be called in terminal by the terminal of sharing side and be answered with the instant messaging
With associated second map application, and according to the map denotation parameter, the use of the side of sharing described in the second map application is shown
Second positioning map of family current location, second positioning map is identical as the map situation of first positioning map, such as
This, by the terminal of sharing side can be intuitive to see that the user of sharing side seen from the second positioning map first positioningly
Scheme identical map situation.
The present embodiment can receive the map picture for carrying the map denotation parameter, show the map picture;It connects
When receiving the first operation for the map picture, the map picture is decoded, the map denotation parameter is obtained, according to institute
Map denotation parameter is stated, shows the second positioning map of user current location described in the second map application, second positioning
Map is identical as the map situation of first positioning map, so according to the map display parameters restore the first positioning map ground
Figure situation, so that being become apparent from the ground angle of field of the user of sharing side by sharing side.
It is identical as the application type of the second map application in first map application in a kind of possible embodiment
When, the map denotation parameter includes the GPS coordinate of user current location, and user current location is in first positioning map
Coordinate, the scaling of first positioning map, rotation angle information.
Here, sharing side and the map application associated by the instant messaging application of the side's of sharing terminal are defined same answer
With the map application of type, i.e. the first map application is identical with the application type of the second map application.In this way, by the end of sharing side
End can go out the user current location of sharing side according to the user current location in the coordinate setting of first positioning map
It, then, can root by the terminal of sharing side in the coordinate (coordinate in two positioning maps is the same) of the second positioning map
According to the GPS coordinate of user current location, the scaling of first positioning map, rotation angle information restore the first positioning
The map display range of map, in this way, the second positioning map, which can be shown, shows identical geographical model with the first positioning map
It encloses, and goes out to show the user current location of sharing side in identical map reference, since the first positioning map and second position
Map is identical map style, therefore the second positioning map shown by the side of sharing and the first positioning map can be the same.
Map denotation parameter described in the present embodiment includes the GPS coordinate of user current location, and user current location is in institute
State the coordinate of the first positioning map, the scaling of first positioning map, rotation angle information, to facilitate and the first map
Identical second map application of the application type of application can accurate reproduction go out as the first positioning map second positioningly
Figure.
In a kind of possible embodiment, the map denotation parameter includes: the GPS coordinate of user current location, is used
Coordinate of the family current location in first positioning map, the scaling of first positioning map, rotation angle information are used
Map distance, actual range, the angle of family current location and surrounding features building, the application type of the first map application;Then
Step 204 in the sharing method of above-mentioned geographical location information can be implemented as following steps C1 and C2.
In step C1, in the application type and the application type phase of second map application of first map application
Meanwhile according to the GPS coordinate of the user current location, user current location first positioning map coordinate, it is described
The scaling of first positioning map, rotation angle information show second of user current location described in the second map application
Positioning map.
In step C2, first map application application type and second map application application type not
Meanwhile the second positioning map of user current location described in the second map application is shown according to the map denotation parameter.
Here, there is no fixed gauges with the map application associated by the instant messaging application of the side's of sharing terminal for sharing side
It is fixed, therefore the first map application associated by the instant messaging application of sharing side is closed with by the instant messaging application of the side's of sharing terminal
Second map application of connection can be the same or different.
Here, by the terminal of sharing side when decoding obtains map denotation parameter, available first map application is answered
It is determined by the terminal of sharing side according to the application type of the first map application when the first map application and the second map with type
When the application type of application is identical, by the terminal of sharing side according to the GPS coordinate of user current location, user current location is in institute
State the coordinate of the first positioning map, the scaling of first positioning map, rotation angle information can be shown and the
Identical second positioning map of one positioning map.
Here, it by the terminal of sharing side according to the application type of the first map application, determines when the first map application and the
When the application type difference of two map applications, by the terminal of sharing side according to the GPS coordinate of user current location, user's present bit
The coordinate in first positioning map is set, the scaling of first positioning map, rotation angle information can obtain
Body of a map or chart identical with the first positioning map and identical user current location are got, due to the first map application and second
The application type of map application is different, and the map denotation mode of the two is different, which can work as according to user
The map distance of front position and surrounding features building, actual range, these parameters of angle carry out finer adjustment, show
The second positioning map identical with the map situation of the first positioning map out.
Map denotation parameter described in the present embodiment includes: the GPS coordinate of user current location, and user current location is in institute
State the coordinate in the first positioning map, the scaling of first positioning map, rotation angle information, user current location with
Map distance, actual range, the angle of surrounding features building, the application type of the first map application, to facilitate with the first
Scheme identical or different the second map application of application type of application can accurate reproduction go out map with the first positioning map
Identical second positioning map of situation.
In a kind of possible embodiment, the sharing method of above-mentioned geographical location information can also include the following steps D1
And D2.
In step D1, the map denotation parameter of the first positioning map of user current location described in real-time reception.
In step d 2, the second positioning map according to the map denotation parameter real-time update.
Here, understood the position of sharing side in real time by sharing side for convenience, the terminal of the sharing side can be in real time by ground
Figure display parameters are sent to by sharing side, in this way, can user current location described in real-time reception by the terminal of sharing side
The map denotation parameter of first positioning map and according to described map denotation parameter real-time update second positioning map.
The present embodiment can with the map denotation parameter of the first positioning map of user current location described in real-time reception so that
It can be according to described map denotation parameter real-time update second positioning map, so that this is permissible by sharing side by sharing side
The ground angle of field of sharing side is understood in real time.
In a kind of possible embodiment, the sharing method of above-mentioned geographical location information can also include the following steps E1
To E4.
In step E1, the picture to be shared for carrying the user current location information is received.
In step E2, the picture to be shared is shown.
In step E3, when receiving the second operation for described wait share picture, the picture to be shared is decoded, is obtained
Take the user current location information.
In step E4, according to the user current location information, user's present bit described in the second map application is shown
The third positioning map set.
Here, sharing side, can be to by sharing side when wanting to disclose oneself geographic location with being shared by sharing side
It sends and carries the picture to be shared of the user current location information, receiving this by sharing side, to carry the user current
Location information after sharing picture, can should wait share with display on the communication interface of the side of sharing in instant messaging application
Picture, since the user current location information is not shown on the picture to be shared, therefore, what is shown is somebody's turn to do picture to be shared not
The location information of sharing side can be exposed.
Here, when being wanted to check the user current location of the sharing side by sharing side, it can input and be directed in concealed location
The picture to be shared second operation, such as click the operation of the picture to be shared, by the terminal of sharing side will decode this to
Share picture, obtains the map denotation parameter carried in the picture to be shared, then, can be called end by the terminal of sharing side
The second map is shown according to the user current location information with associated second map application of the instant messaging application in end
The third positioning map of the user current location described in, in this way, can be seen from third positioning map point by sharing side
The current location of the user for the side of enjoying.
The present embodiment can receive the picture to be shared for carrying the user current location information, and display is described wait share
Picture decodes the picture to be shared, it is current to obtain the user when receiving the second operation for described wait share picture
Location information shows that the third of user current location described in the second map application is fixed according to the user current location information
Position map, in this way, being received by sharing side and showing that this after sharing picture, works as due to not showing the user on the picture to be shared
Front position information protects the location privacy of sharing side.
In a kind of possible embodiment, the step 203 in the sharing method of above-mentioned geographical location information can also be real
It is now following steps F1 to F3.
In step F1, the pixel of the picture to be shared is decoded as decimal number.
In step F2, the decimal number is converted into character string.
In step F3, the character string is decoded as the user current location information and picture type parameter.
Here, the terminal of the side of sharing is by the picture type parameter of user current location information and the picture to be shared to be generated
It is encoded into character string, the character string is converted into decimal number, it is then raw as pixel using the decimal number being converted into
At the picture to be shared for carrying the user current location information;Therefore by the terminal of sharing side decoding when need to carry out it is inverse
Operation, is decoded as decimal number for the pixel of the picture to be shared, the decimal number is converted to character string, finally will
The character string is decoded as the user current location information and picture type parameter, works as in this way, can decode to obtain user
Front position information.
The pixel of the picture to be shared can be decoded as decimal number by the present embodiment;The decimal number is converted
For character string;The character string is decoded as the user current location information and picture type parameter, decoding process are accurately fast
It is prompt.
Realization process is discussed in detail below by several embodiments.
Fig. 3 is a kind of flow chart of the sharing method of geographical location information shown according to an exemplary embodiment, such as Fig. 3
Shown, the sharing of the geographical location information can be realized by sharing side's terminal with by equipment such as the side's of sharing terminals, including step
301-311。
In step 301, sharing side's terminal receive position disclose sharing instruction when, obtain the first map application in use
First positioning map of family current location;
In step 302, sharing side's terminal carries out screenshot processing to first positioning map, obtains map picture;
In step 303, sharing side's terminal obtains the map denotation parameter of first positioning map, the map denotation
Parameter is used to restore the map situation in first positioning map;
Wherein, the map denotation parameter includes: the GPS coordinate of user current location, and user current location is described
The coordinate of one positioning map, the scaling of first positioning map, rotation angle information, user current location and surrounding are special
Levy map distance, actual range, the angle of building, the application type of the first map application.
In step 304, sharing side's terminal is written to the figure of the map picture for after the map denotation parameter coding
In piece information, the map picture for carrying the map denotation parameter is generated;
In step 305, the map picture for carrying the map denotation parameter is sent to and is shared by sharing side's terminal
Side;The map picture for carrying the map denotation parameter is received by sharing side's terminal;
Within step 306, the map picture is shown by sharing side's terminal;
In step 307, when receiving the first operation for the map picture by sharing side's terminal, decoding is describedly
Figure picture obtains the map denotation parameter;
In step 308, the application type by sharing side's terminal in first map application is answered with second map
When application type is identical, according to the GPS coordinate of the user current location, user current location described first positioningly
The coordinate of figure, the scaling of first positioning map, rotation angle information show that user described in the second map application works as
Second positioning map of front position.
In a step 309, the application type by sharing side's terminal in first map application is answered with second map
When application type difference, of user current location described in the second map application is shown according to the map denotation parameter
Two positioning maps.
In the step 310, the map of the first positioning map of the user current location is shown in real time by sharing side's terminal
Show that parameter is sent to by sharing side, the map denotation parameter of the first positioning map of user current location described in real-time reception;
In step 311, by sharing side's terminal second positioning map according to the map denotation parameter real-time update.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 4 is a kind of block diagram of the sharing apparatus of geographical location information shown according to an exemplary embodiment, the device
It being implemented in combination with as some or all of of electronic equipment by software, hardware or both.As shown in figure 4, the ground
Reason location information sharing apparatus 40 include:
First obtain module 401, for receive position disclose sharing instruction when, obtain the first map application in user
First positioning map of current location;
Screen capture module 402 obtains map picture for carrying out screenshot processing to first positioning map;
Second obtains module 403, for obtaining the map denotation parameter of first positioning map, the map denotation ginseng
Number is for restoring the map situation in first positioning map;
First generation module 404, for being written to the picture of the map picture for after the map denotation parameter coding
In information, the map picture for carrying the map denotation parameter is generated;
First sending module 405, for being sent to the map picture for carrying the map denotation parameter by sharing side.
It should be noted that the device 40 can also realize above-mentioned any one reality of sharing side terminal side by other modules
The step of applying the sharing method of geographical location information shown in example, this will not be repeated here for the embodiment of the present disclosure.
Fig. 5 is a kind of block diagram of the sharing apparatus of geographical location information shown according to an exemplary embodiment, the device
It being implemented in combination with as some or all of of electronic equipment by software, hardware or both.As shown in figure 5, the ground
Reason location information sharing apparatus 50 include:
First receiving module 501, for receiving the map picture for carrying the map denotation parameter;
First display module 502, for showing the map picture;
First decoder module 503 decodes the Map when for receiving the first operation for being directed to the map picture
Piece obtains the map denotation parameter;
Second display module 504, for showing that user described in the second map application works as according to the map denotation parameter
Second positioning map of front position, second positioning map are identical as the map situation of first positioning map.
It should be noted that the device 50 can also by other modules realize it is above-mentioned by sharing side terminal side any one
The step of sharing method of geographical location information shown in embodiment, this will not be repeated here for the embodiment of the present disclosure.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 6 is a kind of block diagram of the sharing apparatus of geographical location information shown according to an exemplary embodiment, the device
Suitable for terminal device.For example, device 600 can be mobile phone, game console, computer, tablet device, individual digital helped
Reason etc..
Device 600 may include following one or more components: processing component 601, memory 602, power supply module 603,
Multimedia component 604, audio component 605, input/output (I/O) interface 606, sensor module 607 and communication component
608。
The integrated operation of the usual control device 600 of processing component 601, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 601 may include that one or more processors 620 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 601 may include one or more modules, just
Interaction between processing component 601 and other assemblies.For example, processing component 601 may include multi-media module, it is more to facilitate
Interaction between media component 604 and processing component 601.
Memory 602 is configured as storing various types of data to support the operation in device 600.These data are shown
Example includes the instruction of any application or method for operating on device 600, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 602 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 603 provides electric power for the various assemblies of device 600.Power supply module 603 may include power management system
System, one or more power supplys and other with for device 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 604 includes the screen of one output interface of offer between described device 600 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 604 includes a front camera and/or rear camera.When device 600 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 605 is configured as output and/or input audio signal.For example, audio component 605 includes a Mike
Wind (MIC), when device 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 602 or via communication set
Part 608 is sent.In some embodiments, audio component 605 further includes a loudspeaker, is used for output audio signal.
I/O interface 606 provides interface between processing component 601 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 607 includes one or more sensors, and the state for providing various aspects for device 600 is commented
Estimate.For example, sensor module 607 can detecte the state that opens/closes of device 600, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 600, and sensor module 607 can be with 600 1 components of detection device 600 or device
Position change, the existence or non-existence that user contacts with device 600,600 orientation of device or acceleration/deceleration and device 600
Temperature change.Sensor module 607 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 607 can also include optical sensor, such as CMOS or CCD photo sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 608 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device
600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 608 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 608 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 602 of instruction, above-metioned instruction can be executed by the processor 620 of device 600 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
The disclosure provides a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by device
When 600 processor executes, so that device 600 is able to carry out the sharing method of the geographical location information of above-mentioned sharing side side,
The described method includes:
When receiving position and disclosing sharing instruction, obtain user current location in the first map application first positioningly
Figure;
Screenshot processing is carried out to first positioning map, obtains map picture;
The map denotation parameter of first positioning map is obtained, the map denotation parameter is fixed for restoring described first
Map situation in the map of position;
It after the map denotation parameter coding, is written in the pictorial information of the map picture, generates and carry
State the map picture of map denotation parameter;
The map picture for carrying the map denotation parameter is sent to by sharing side.
The disclosure provides a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by device
When 600 processor executes, so that device 600 is able to carry out the sharing side of the above-mentioned geographical location information by sharing side side
Method, which comprises
Receive the map picture for carrying the map denotation parameter;
Show the map picture;
When receiving the first operation for the map picture, the map picture is decoded, the map denotation is obtained
Parameter;
According to the map denotation parameter, second of user current location described in the second map application of display is positioningly
Figure, second positioning map are identical as the map situation of first positioning map.
The present embodiment additionally provides a kind of sharing apparatus of geographical location information, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When receiving position and disclosing sharing instruction, obtain user current location in the first map application first positioningly
Figure;
Screenshot processing is carried out to first positioning map, obtains map picture;
The map denotation parameter of first positioning map is obtained, the map denotation parameter is fixed for restoring described first
Map situation in the map of position;
It after the map denotation parameter coding, is written in the pictorial information of the map picture, generates and carry
State the map picture of map denotation parameter;
The map picture for carrying the map denotation parameter is sent to by sharing side.
The present embodiment additionally provides a kind of sharing apparatus of geographical location information, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the map picture for carrying the map denotation parameter;
Show the map picture;
When receiving the first operation for the map picture, the map picture is decoded, the map denotation is obtained
Parameter;
According to the map denotation parameter, second of user current location described in the second map application of display is positioningly
Figure, second positioning map are identical as the map situation of first positioning map.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.