[go: up one dir, main page]

CN104618854B - Method, terminal and the server of sharing position information - Google Patents

Method, terminal and the server of sharing position information Download PDF

Info

Publication number
CN104618854B
CN104618854B CN201410213543.1A CN201410213543A CN104618854B CN 104618854 B CN104618854 B CN 104618854B CN 201410213543 A CN201410213543 A CN 201410213543A CN 104618854 B CN104618854 B CN 104618854B
Authority
CN
China
Prior art keywords
shared
terminal
map
map area
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410213543.1A
Other languages
Chinese (zh)
Other versions
CN104618854A (en
Inventor
任鹏
程刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410213543.1A priority Critical patent/CN104618854B/en
Publication of CN104618854A publication Critical patent/CN104618854A/en
Application granted granted Critical
Publication of CN104618854B publication Critical patent/CN104618854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Instructional Devices (AREA)
  • Navigation (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method, terminal and the servers of sharing position information, belong to Internet technical field.Method includes:In the map interface currently shown, location information to be shared, any position information that location information is user current location information or user specifies are obtained;Operation and location information are adjusted according to the map interface of user, obtain shared map area, map area is shared and includes location information;According to shared map area, position information share is carried out.Any position information that location information to be shared can be user current location information in the present invention or user specifies, so shared location information is versatile and flexible;In addition, operation can be also adjusted according to the map interface of user obtains shared map area, so shared map area is various informative, the form of expression of position information share is enriched;In addition, carry out position information share based on map area, facilitate user and treat sharing position information and be described, visual effect is preferable.

Description

Method, terminal and the server of sharing position information
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method, terminal and the server of sharing position information.
Background technology
In daily life, people can usually encounter that company has a dinner party, classmate's party or the household needs such as celebrate one's birthday are gone out The situation of rally.For the above situation, in order to ensure everyone of participation can accurately and quickly arrive at, have The application of position information share function is come into being.
In the prior art, user is after startup has the function of the application of position information share, application automatic positioning user Current location information, and obtain the latitude and longitude information of current location information.Later, which passes through place terminal by longitude and latitude Information is sent to multiple target terminals, realizes the shared of location information.Wherein, which is also required to equally be equipped with and have The map application of geographical location sharing functionality.
In the implementation of the present invention, inventor has found that the prior art has at least the following problems:
Due to sharing user current location information in the form of latitude and longitude information, so this kind of position information share mode mistake In dull and abstract, it is not easy to user and current location information is described;And visual effect is bad, it is impossible to clear and definite location information Specific location on map;Further, since the current location information of shared user is only capable of, therefore shared location information is more Limitation and single, underaction.
Invention content
In order to solve problem of the prior art, an embodiment of the present invention provides a kind of method, the terminals of sharing position information And server.The technical solution is as follows:
In a first aspect, a kind of method of sharing position information is provided, the method includes:
In the map interface currently shown, location information to be shared is obtained, the location information is user's present bit Any position information that confidence ceases or user specifies;
Operation and the location information are adjusted according to the map interface of user, obtain shared map area, it is described shared Map area includes the location information;
According to the shared map area, position information share is carried out.
Second aspect provides a kind of method of sharing position information, the method includes:
The shared data that user terminal is sent is received, the longitude and latitude that the shared data includes at least the location information is believed Breath, map scaling and map denotation size;
The shared data is forwarded to target terminal, so that the target terminal is generating ground according to the shared data After graph region, the map area is shown at the displaying interface of the target terminal.
The third aspect, provides a kind of terminal, and the terminal includes:
Position information acquisition module, it is described in the map interface currently shown, obtaining location information to be shared Any position information that location information is user current location information or user specifies;
Map area acquisition module for adjusting operation and the location information according to the map interface of user, obtains Shared map area, the shared map area include the location information;
Position information share module, for according to the shared map area, carrying out position information share.
Fourth aspect, provides a kind of server, and the server includes:
Shared data receiving module, for receiving the shared data of user terminal transmission, the shared data includes at least Latitude and longitude information, map scaling and the map denotation size of the location information;
Shared data sending module, for the shared data to be forwarded to target terminal, so that the target terminal exists After generating map area according to the shared data, the map area is opened up at the displaying interface of the target terminal Show.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
After location information to be shared is obtained in the map interface currently shown, adjusted and grasped according to the map interface of user Make and the location information, the shared map area of acquisition carry out position information share, due to treating altogether according to shared map area Any position information that the location information enjoyed can be user current location information or user specifies, so shared location information spirit Work is various;In addition, operation also, which can be adjusted, according to the map interface of user obtains shared map area, thus get sharedly Graph region is various informative, enriches the form of expression of position information share;In addition, carry out location information due to being based on map area It is shared, it is described so facilitating user and treating sharing position information, and the mode visual effect of this kind of sharing position information Preferably, the detail location of location information to be shared on map can be specified.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the system architecture diagram of sharing position information provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of sharing position information provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram of sharing position information provided in an embodiment of the present invention;
Fig. 4 is a kind of method flow diagram of sharing position information provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of map area provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of map area provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of map area provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of map area provided in an embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of map area provided in an embodiment of the present invention;
Figure 10 is a kind of schematic diagram of data communication mode provided in an embodiment of the present invention;
Figure 11 is a kind of schematic diagram of data communication mode provided in an embodiment of the present invention;
Figure 12 is a kind of structure diagram of terminal provided in an embodiment of the present invention;
Figure 13 is a kind of structure diagram of server provided in an embodiment of the present invention;
Figure 14 is a kind of internal structure schematic diagram of terminal provided in an embodiment of the present invention;
Figure 15 is a kind of internal structure schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Before being described in detail to the embodiment of the present invention, first the application scenarios of the embodiment of the present invention are introduced.This The typical case scene of invention is:It has a dinner party for company, that classmate's party etc. needs more people to be reached from different departure places is same The scene of destination, in order to ensure everyone of rally can accurately arrive at destination, it is real that organizing user can pass through the present invention Map area including destination locations information is shared to all participation users by the method for applying example offer, and each participating user In order to enable everybody clear and definite present position of itself, also can share to other users by the current location information of itself.Needle For a certain user, before the shared map area of location information to be shared is included to other users transmission, user terminal The shared map area can be obtained by following methods:In the map interface currently shown, location information to be shared is obtained, Any position information that the location information is user current location information or user specifies;It is adjusted and grasped according to the map interface of user Make and location information, the shared map area of acquisition, the shared map area include the location information.Getting the shared ground After graph region, shared map area can be sent to other users by user by two ways shown in FIG. 1.
Referring to Fig. 1, when user A is intended to share based on the shared map area of a certain location information to user B, user A can This is shared into map area by two ways such as shared server communication and point-to-point communications and shares to other users.Wherein, The location information may be either the current location information of user A, can also be any position information that user A is specified.User B refers to one The one or more users for receiving its shared map area that class user namely reference are specified by user A.Point-to-point communication can wrap Include a variety of realization methods, such as short message, multimedia message, bluetooth, socket (socket) and other implementations.
Fig. 2 is a kind of method flow diagram of sharing position information provided in an embodiment of the present invention.This method is performed with terminal Angle for, referring to Fig. 2, method flow provided in an embodiment of the present invention includes:
201st, in the map interface currently shown, location information to be shared is obtained, location information is user's present bit Any position information that confidence ceases or user specifies.
202nd, operation and location information are adjusted according to the map interface of user, obtains shared map area, share map Region includes location information.
203rd, according to shared map area, position information share is carried out.
Method provided in an embodiment of the present invention, after location information to be shared is obtained in the map interface currently shown, Operation and location information are adjusted according to the map interface of user, shared map area is obtained, is carried out according to shared map area Position information share, due to any bit confidence that location information to be shared can be user current location information or user specifies Breath, so shared location information is versatile and flexible;In addition, operation can be also adjusted according to the map interface of user obtains shared map Region so the shared map area got is various informative, enriches the form of expression of position information share;In addition, due to Position information share is carried out based on map area, is described so facilitating user and treating sharing position information, and this kind common The mode visual effect for enjoying location information is preferable, can specify the detail location of location information to be shared on map.
Optionally, operation and location information are adjusted according to user's map interface, obtains shared map area, including:
According to location information and the correspondence of longitude and latitude degrees of data, the longitude and latitude degrees of data of location information is determined;
According to the latitude and longitude information of location information, initial map area is obtained, initial map area includes location information;
Initial map area is shown on the displaying interface of user terminal;
Interface adjustment operation according to the map, is adjusted initial map area, obtains shared map area, initial map Region is more than shared map area.
Optionally, interface adjustment operation according to the map, is adjusted initial map area, including:
When map interface adjustment operation includes user annotation addition operation, obtain user annotation addition and operate corresponding behaviour Make track;
According to operation trace, corresponding markup information is added in initial map area.
Optionally, according to shared map area, position information share is carried out, including:
When not including first terminal in target terminal, the shared data of shared map area is obtained, first terminal is not The target terminal of communication connection is established with shared server, shared data includes at least the latitude and longitude information of location information, map Scaling and map denotation size;
Shared data is sent to shared server, so that shared server is after shared data is received, by shared number According to being forwarded to target terminal, by target terminal after shared map area is generated according to shared data, by shared map area into Row displaying.
Optionally, according to shared map area, position information share is carried out, including:
When not including first terminal in target terminal, the shared data of shared map area is obtained, first terminal is not The target terminal of communication connection is established with shared server, shared data includes at least the latitude and longitude information of location information, map Scaling and map denotation size;
By point-to-point communication mode, shared data is sent to target terminal, so that target terminal is according to shared After the shared map area of data generation, shared map area is shown.
Optionally, according to shared map area, position information share is carried out, including:
When target terminal includes first terminal, generation includes the picture of shared map area, first terminal for not with Shared server establishes the target terminal of communication connection;
By point-to-point communication mode, first terminal will be sent to including the picture for sharing map area.
Optionally, this method further includes:
The shared data of shared map area is obtained, shared data includes at least the latitude and longitude information of location information, map Scaling and map denotation size;
By point-to-point communication mode, shared data is sent to second terminal, so that second terminal is according to shared After the shared map area of data generation, shared map area is shown, second terminal is to communicate with shared server foundation The target terminal of connection.
Optionally, according to shared map area, before carrying out position information share, this method further includes:
Obtain the target terminal information of location information;
Target terminal information is uploaded to shared server, so that shared server judges target according to target terminal information With the presence or absence of first terminal in terminal, and it will determine that result is back to user terminal.
Optionally, interface adjustment operation according to the map, is adjusted initial map area, including:
When map interface adjustment operation includes map zoom operations, the corresponding map pantograph ratio of map zoom operations is obtained Example ruler;
Scaling ruler according to the map zooms in and out operation to initial map area.
Optionally, interface adjustment operation according to the map, is adjusted initial map area, including:
When map interface adjustment operation includes map moving operation, the corresponding mobile scale of map moving operation is obtained;
According to mobile scale, initial map area is adjusted.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 3 is a kind of method flow diagram of sharing position information provided in an embodiment of the present invention.The party is performed with server For the angle of method, referring to Fig. 3, method flow provided in an embodiment of the present invention includes:
301st, receive user terminal send shared data, shared data include at least location information latitude and longitude information, Map scaling and map denotation size.
302nd, shared data is forwarded to target terminal, so that target terminal is generating map area according to shared data Afterwards, map area is shown at the displaying interface of target terminal.
After receiving the shared data that user terminal is sent, shared data is forwarded for method provided in an embodiment of the present invention To target terminal, after generating map area according to shared data so as to target terminal, which is shown, due to base Position information share is carried out in map area, is described so facilitating user and treating sharing position information, and this kind shared The mode visual effect of location information is preferable, can specify the detail location of location information to be shared on map.
Optionally, this method further includes:
Receive the target terminal information of user terminal uploads;
According to target terminal information, judge to obtain judging result, first terminal with the presence or absence of first terminal in target terminal For the terminal of communication connection is not established with shared server;
It will determine that result is back to user terminal, so that user terminal is according to judging result and the shared map area got Domain carries out position information share.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 4 is a kind of method flow diagram of sharing position information provided in an embodiment of the present invention.Interaction agent is whole for user End and shared server.Referring to Fig. 4, method flow provided in an embodiment of the present invention includes:
401st, user terminal obtains location information to be shared, location information is uses in the map interface currently shown Any position information that family current location information or user specify.
In embodiments of the present invention, location information to be shared can be divided into two kinds, and one kind is user current location information, separately A kind of is any position information that user specifies, and does not include user current location information in any position information.It is common for treating The type for the location information enjoyed is different, and the mode for obtaining location information to be shared is also different.
If location information to be shared is user current location, due to opening the application with position information share Afterwards, GPS (Global Positioning System, global positioning system) can automatically determine user's present position Position, so for this kind of situation, directly using the location information that GPS is currently got as location information to be shared.If it treats altogether The location information enjoyed is any position that user specifies, then can be by search input frame of the user in the map interface currently shown The location information of middle input is as location information to be shared.It should be noted that except above-mentioned acquisition location information to be shared Mode outside, can also take other acquisition modes, can also take other acquisition modes, the embodiment of the present invention does not limit this specifically It is fixed.
402nd, user terminal adjusts operation and location information to be shared according to the map interface of user, obtains shared ground Graph region shares map area and includes location information to be shared.
After location information to be shared is got, in order to facilitate user to be shared to including according to itself wish The map area of location information is handled, and method provided in an embodiment of the present invention obtains altogether according to location information to be shared When enjoying map area, also support that adjusting operation according to the map interface of user obtains shared map area simultaneously.Wherein, map circle Face adjustment operation includes but not limited to map zoom operations, map moving operation, user's addition labeling operation etc..
Wherein, when obtaining shared map area according to user's map interface adjustment operation and location information, specifically may be used Take following realization methods:
According to location information to be shared and the correspondence of longitude and latitude degrees of data, the longitude and latitude number of degrees of the location information are determined According to;According to the latitude and longitude information of the location information, initial map area is obtained, initial map area includes location information;It will be just Beginning map area is shown on the displaying interface of user terminal;Interface adjustment operation according to the map, to initial map area It is adjusted, obtains shared map area, initial map area is more than shared map area.
For any one location information, a longitude and latitude degrees of data can be corresponded to.I.e. a longitude and latitude degrees of data can be to one A location information carries out unique mark.Have the function of for the application of position information share for one, can prestore Location information and the correspondence of longitude and latitude degrees of data.It, can by inquiring the correspondence after location information to be shared is determined Determine the longitude and latitude degrees of data of location information to be shared.After the longitude and latitude degrees of data of the location information is determined, in order to reduce map Load time and map occupy memory space, can also according to the longitude and latitude degrees of data according to a preliminary estimate once need loading map institute Including administrative region.If for example, the longitude and latitude data are located in the range of the longitude and latitude that Beijing is covered, in loading map When, only loading includes Beijing's map of various administrative region displaying ranks.And then the position is determined according to the longitude and latitude degrees of data Display location of the information in map, and be labeled at display location with the displays such as bubble mark.Further, since user is whole The displaying interface size at end is limited, thus the initial map area got generally with the displaying interface size one of user terminal It causes.The initial map area includes location information to be shared, and the concrete form of initial map area can be found in Fig. 5.
It is operated in addition, being adjusted at interface according to the map, it is including but not limited to following when being adjusted to initial map area Three kinds of realization methods:
The first realization method, when map interface adjustment operation include user annotation addition operation when, acquisition user annotation Addition operates corresponding operation trace;According to operation trace, corresponding markup information is added in initial map area.
For the first realization method, user annotation refers to a kind of mark for being guided target user and being prompted, Form can be the remarks class mark arbitrarily by user from setting such as arrow that shows the way.Referring to Fig. 6, two black overstrikings shows the way in figure Arrow is just user annotation.In embodiments of the present invention, it is because we are often in daily life why to add user annotation Such situation can be often encountered, is limited to the factors such as the display granularity of map, when the neighboring area that we arrive at, is led to Can often not know walk to get to destination or even will appear toward which direction and all check neighboring area to finish ability Find the situation of destination.And in the embodiment of the present invention after user annotation is added to, other users according to the map on use Family mark can more quickly and correctly know the specific location of destination, and then save the time of user, improve use Family Experience Degree.
Further, since current intelligent terminal kind equipment uses touch screen, so being used being added to initial map area When family marks, operation trace of the user in initial map area can be sensed in real time by temperature-sensitive element, later, will be different from ground The lines of graph region color show that the lines are used for the operation trace of analog subscriber, the operation rail with user in map area Mark shape is consistent.For example, if the operation trace of user is straight line, the straight line of black overstriking is shown in map area, it should Straight line can be isometric with user's operation track, also can normal ratio corresponding with the length of user's operation track, the embodiment of the present invention is to this It is not especially limited.
Second of realization method, when map interface adjustment operation include map zoom operations when, acquisition map zoom operations Corresponding map scaling ruler;Scaling ruler according to the map zooms in and out operation to initial map area.
For second of realization method, after the first map area is obtained, may due to current map scaling compared with It is small, so the neighboring area of position to be shared is not shown finely in initial map area or even is not shown.And initial In map area, everybody focus of attention is only position to be shared and the neighboring area nearer apart from it, in initial map area Use is had no away from position remote position to be shared.So in this case, the scaling of map can be increased, so as to treat The neighboring area of sharing position and position to be shared is finely shown, on the one hand facilitates other users quick in map area Position to be shared is locked, the neighboring area that on the other hand other users can be made to treat sharing position is better understood. After map area shown in fig. 5 is carried out map scale enhanced processing, map area as shown in Figure 7 can obtain.
In addition, in map zoom operations on map interface, intelligent terminal kind equipment can be grasped according to the scaling of user's finger Make and judge current whether in execution map zoom operations and the corresponding zoom scale of map zoom operations.For example, when user is whole When end detects that the finger for touching screen is located remotely from each other, you can determine that user is currently performing enlarged map operation, and between finger Distance it is more remote represent amplification scale it is bigger;When user terminal detects that the finger for touching screen is close to each other, you can determine User is currently performing diminution map operation, and the smaller representative diminution scale of distance between finger is bigger.Due to having shared position The application for the informational function put can pre-set the correspondence of map zoom operations and map scaling ruler, so user is whole End, according to the correspondence, can be learnt to which kind of initial map area carries out after the map zoom operations of user are got Scaling processing.
The third realization method, when map interface adjustment operation include map moving operation when, acquisition map moving operation Corresponding mobile scale;According to mobile scale, initial map area is adjusted.
For the third mode, after initial map area is got, since position to be shared may be currently displayed at just The boundary part of beginning map area, can be by position to be shared in order to which the neighboring area situation of position to be shared is better understood It puts and is moved, be allowed to be shown in the center at the displaying interface of user terminal.That is, adjustment is shown in the exhibition of user terminal Show the map area on interface.After treating sharing position and carrying out movement, a part of region in initial map area just will not It is shown on the displaying interface of user terminal, the subregion of initial map area is only shown on current presentation interface, and The map area not being shown before part is further included on current presentation interface at this time, the map area is with the ground of user Figure moving operation and be gradually shown on current presentation interface.If map moving operation is slide from left to right, just The part map area on the beginning map area left side is illustrated on current presentation interface;If map moving operation is the cunning of right-to-left Dynamic operation, then the part map area on the right of initial map area is illustrated on current presentation interface.
In addition, specifically moving to much subregions in initial map area except current presentation interface, map need to be regarded Depending on the corresponding mobile scale of moving operation.Mobile scale is bigger, is moved in initial map area except current presentation interface Region is bigger;Mobile scale is smaller, and the region moved in initial map area except current presentation interface is smaller.Due to having altogether Map moving operation and the correspondence of mobile scale can be pre-set by enjoying the application of the informational function of position, so user terminal After the map moving operation of user is got, according to the correspondence, it can obtain and how know initial map area is adjusted It is whole.After map area shown in fig. 5 is carried out map movement processing, map area as shown in Figure 8 can obtain.
It should be noted that above-mentioned three kinds of modes being adjusted to initial map area, the group of any form can be carried out It closes.For example, referring to Fig. 9, map zoom operations can carried out to initial map area shown in fig. 5, obtain contracting as shown in Figure 7 After map area after putting, then the map area after scaling is labeled.Which kind of combination is specifically taken, the present invention is implemented Example is not especially limited this, can depend on the circumstances.
In addition, above-mentioned steps 401 and step 402, the execution sequence of following step 403 to step 404 are arbitrary.That is, step Rapid 401 and step 402 can be performed before step 403 and step 404, can also be performed after step 403 and step 404, this Inventive embodiments are not especially limited this.
403rd, user terminal obtains the target terminal information of location information to be shared, and target terminal information is uploaded to Shared server.
In embodiments of the present invention, target terminal the information concretely corresponding telephone number of target terminal or target terminal User identifier of the owner etc., the present embodiment is to the form of target terminal information without specifically limiting.By target terminal When information is uploaded to shared server, the mode for directly uploading target terminal information can be taken, can also be taken target The mode that end message uploads again after being packaged, specifically using which kind of upload mode, the embodiment of the present invention is not made this specifically It limits.
404th, shared server is after the target terminal information of user terminal uploads is received, according to target terminal information, Judge to obtain judging result, and will determine that result is back to user terminal with the presence or absence of first terminal in target terminal;Wherein, Terminal of the first terminal not establish communication connection with shared server.
In embodiments of the present invention, for a target terminal, if the terminal is equipped with sharing position information Application, then the target terminal communication connection is just set up with shared server.The target terminal is stored in shared server The log-on message of the owner.The log-on message may include the telephone number of the target terminal owner, be registered to the use of the application Family mark etc..After shared server receives the target terminal information of user terminal uploads, according to being stored in the note of itself Volume information can be determined with the presence or absence of first terminal in target terminal, that is, being communicated to connect in the presence of not established with shared server Terminal.
By target terminal information for for telephone number, then shared server is receiving at least the one of user terminal uploads After a telephone number, judge each telephone number received whether with itself storage log-on message in any telephone number Match;If each telephone number received has record in the log-on message of itself storage, target end is judged There is no first terminals at end;If the log-on message that at least one telephone number is stored at itself in the telephone number received In do not record, then judge target terminal there are first terminal, and corresponding telephone number is recorded.
Shared server can take the side that directly will determine that result is returned when returning to judging result to user terminal Formula can also take the mode that will determine that result returns again to after being packaged, specifically using which kind of echo plex mode, the embodiment of the present invention This is not especially limited.
405th, user terminal, according to judging result and shared map area, carries out position letter after judging result is received Breath is shared.
In embodiments of the present invention, according to the difference of judging result, following two classes sharing modes is mainly taken to carry out position Information sharing.When first terminal is not present for target terminal in judging result, following step 405 (a1) is taken to step 405 (a2) or step 405 (a3) to step 405, (mode of a4 carries out position information share;When judging result exists for target terminal During first terminal, following step 405 (b1) to step 405 (b4) is taken to carry out position information share.
When in target terminal not include first terminal when, can both take shared server communication mode as shown in Figure 10 into Row position information share can also take point-to-point communication mode as shown in figure 11 to carry out position information share.It is shared when taking Server communication mode carry out position it is shared when, perform following step 405 (a1) to step 405 (a2);It is point-to-point logical when taking Letter mode carry out position it is shared when, perform following step 405 (a3) to step 405 (a4).
405 (a1), user terminal obtain the shared data of shared map area, and the shared data is sent to shared clothes Business device;Wherein, shared data includes at least latitude and longitude information, map scaling and the map denotation of location information to be shared Size.
Since target terminal has been respectively mounted the application with position information share, so carrying out position information share When, it is only necessary to user terminal only needs to send the shared data of shared map area to shared server.Wherein, position to be shared The longitude and latitude degrees of data of confidence breath is accurately positioned for treating sharing position in map, and map scaling is for definitely The zoom scale of figure, map denotation size are used to define the boundary of map namely indicate which region all included in map.This Outside, shared data is other than the longitude and latitude degrees of data, map scaling and the map denotation size that include location information to be shared, May also include user annotation for carrying out road navigation etc., the embodiment of the present invention to the content that shared data includes without It is specific to limit.
Further, since shared map area is got according to above-mentioned steps 402, so user terminal is by having position The application of confidence breath sharing functionality can get the shared data of shared map area.Shared data is being sent to shared clothes During business device, the mode that shared data is directly sent to shared server can be taken, can also take being packaged shared data It is retransmited afterwards to the mode of shared server, specifically this is not especially limited using which kind of sending method embodiment of the present invention.
Shared data is forwarded to target terminal, by target by 405 (a2), shared server after shared data is received Shared map area is shown by terminal after shared map area is generated according to shared data.
In embodiments of the present invention, shared server is after the shared data for receiving user terminal transmission, just according to altogether Shared data is forwarded to target terminal by the target terminal information for enjoying data.And target terminal is after the shared data is received, There is the application of position information share due to itself being equipped with, so target terminal can generate shared ground according to shared data Graph region.And the shared map area shown on the displaying interface of target terminal, with being opened up on the displaying interface of user terminal The shared map area shown is consistent.That is, the embodiment of the present invention realize shown on the displaying interface of user terminal sharedly Graph region is similarly shown on the displaying interface of target terminal.
405 (a3), user terminal obtain the shared data of shared map area, which includes at least location information Latitude and longitude information, map scaling and map denotation size.
With above-mentioned steps 405 (a1) similarly, details are not described herein again for this step.
405 (a4), by point-to-point communication mode, shared data is sent to target terminal by user terminal, so that mesh Terminal is marked after shared map area is generated according to shared data, shared map area is shown.
In embodiments of the present invention, since first terminal being not present in target terminal, so user terminal is being got altogether After the shared data for enjoying map area, can shared data be sent to by target terminal by point-to-point communication mode.Work as user Terminal and target terminal it is closer to the distance when, the transmission that the communication mode of bluetooth or LAN carries out shared data can be passed through;When User terminal and target terminal it is distant when, short message can be passed through or the communication mode of multimedia message carries out the transmission of shared data. The specific implementation that target terminal generates shared map area according to shared data can be found in above-mentioned steps 405 (a2).
When in target terminal being entirely first terminal, point-to-point communication mode as shown in figure 11 is taken to carry out position letter Breath is shared, step 405 (b1) as described below to step 405 (b2).When both further included in target terminal including first terminal and During two terminals (target terminal that communication connection is established with shared server), point-to-point communication mode can be taken or taken altogether It enjoys the mode that server communication mode and point-to-point communication mode are combined and carries out position information share, 405 (b1) as described below To step 405 (b5).
405 (b1), user terminal generation include the picture of shared map area.
In embodiments of the present invention, since first terminal does not install the application with position information share, if so Shared data is sent to first terminal, then first terminal can not generate shared map area according to shared data, so as to not It can realize position information share.So for being entirely that there are first terminals in first terminal and target terminal in target terminal Situation will also generate the picture for including shared map area according to shared map area.For example, shared map area can be converted For static images, such as the picture of jpeg forms.The visual effect of the picture is the same as the shared map area shown on map interface Visual effect it is similar.
405 (b2), by point-to-point communication mode, user terminal will be sent to the including sharing the picture of map area One terminal.
When shared data is sent to first terminal, can take will directly be sent to including the picture for sharing map area The mode of first terminal, can also take will retransmit including sharing after the picture of map area is packaged to the side of first terminal Formula is specifically not especially limited this using which kind of sending method embodiment of the present invention.
405 (b3), user terminal obtain the shared data of shared map area, and shared data includes at least location information Latitude and longitude information, map scaling and map denotation size.
With above-mentioned steps 405 (a1) similarly, details are not described herein again for this step.
405 (b4), by point-to-point communication mode, shared data is sent to second terminal by user terminal, so that Shared map area is shown by two terminals after shared map area is generated according to shared data, and second terminal is together Enjoy the target terminal that server establishes communication connection.
With above-mentioned steps 405 (a4) similarly, details are not described herein again for this step.In addition, step 405 (b4) can also be by step 405 (b5) are replaced.
Shared data is sent to shared server by 405 (b5), user terminal so that shared server receive it is shared After data, shared data is forwarded to target terminal, it, will by target terminal after shared map area is generated according to shared data Shared map area is shown.
With above-mentioned steps 405 (a2) similarly, details are not described herein again for this step.
It should be noted that above-mentioned steps 405 (b1) are to step 405 (b2), the execution of 405 (b3) to step 405 (b4) Sequence is arbitrary, and the embodiment of the present invention is not especially limited this.That is, above-mentioned steps 405 (b1) to step 405 (b2) both can be It performs before above-mentioned steps 405 (b3) to step 405 (b4), can also be held after above-mentioned steps 405 (b3) to step 405 (b4) Row.The embodiment of the present invention is only with above-mentioned steps 405 (b1) to step 405 (b2) in above-mentioned steps 405 (b3) to step 405 (b4) Perform before for, it is illustrated.
Method provided in an embodiment of the present invention, after location information to be shared is obtained in the map interface currently shown, Operation and location information are adjusted according to the map interface of user, shared map area is obtained, is carried out according to shared map area Position information share, due to any bit confidence that location information to be shared can be user current location information or user specifies Breath, so shared location information is versatile and flexible;In addition, operation can be also adjusted according to the map interface of user obtains shared map Region so the shared map area got is various informative, enriches the form of expression of position information share;In addition, due to Position information share is carried out based on map area, is described so facilitating user and treating sharing position information, and this kind common The mode visual effect for enjoying location information is preferable, can specify the detail location of location information to be shared on map.Further Ground, requirement of the position information share mode provided in an embodiment of the present invention to target terminal are low, it is only necessary to which target terminal supports point pair The shared of location information can be realized in the communication mode of point.
Figure 12 is an embodiment of the present invention provides a kind of terminal, and referring to Figure 12, which includes:Position information acquisition module 1201st, map area acquisition module 1202, position information share module 1203.
Wherein, position information acquisition module 1201, in the map interface currently shown, obtaining position to be shared Information, any position information that location information is user current location information or user specifies;Map area acquisition module 1202 It connect with position information acquisition module 1201, for adjusting operation and location information according to the map interface of user, obtains altogether Map area is enjoyed, map area is shared and includes location information;1203 map area acquisition module 1202 of position information share module Connection, for according to shared map area, carrying out position information share.
Optionally, map area acquisition module, including:
Longitude and latitude data determination unit for the correspondence according to location information and longitude and latitude degrees of data, determines that position is believed The longitude and latitude degrees of data of breath;
Map area acquiring unit for the latitude and longitude information according to location information, obtains initial map area, initially Graph region includes location information;
Map area display unit, for initial map area to be shown on the displaying interface of user terminal;
Map area adjustment unit is adjusted for interface according to the map and is operated, initial map area is adjusted, is obtained Shared map area, initial map area are more than shared map area.
Optionally, map area adjustment unit, for when map interface adjustment operation include user annotation addition operate when, It obtains user annotation addition and operates corresponding operation trace;According to operation trace, corresponding mark is added in initial map area Note information.
Optionally, position information share module, for when not including first terminal in target terminal, obtaining shared map The shared data in region, target terminal of the first terminal not establish communication connection with shared server, shared data are at least wrapped Include latitude and longitude information, map scaling and the map denotation size of location information;Shared data is sent to shared server, So that shared server is forwarded to target terminal after shared data is received, by shared data, by target terminal according to altogether After enjoying the shared map area of data generation, shared map area is shown.
Optionally, position information share module, for when not including first terminal in target terminal, obtaining shared map The shared data in region, target terminal of the first terminal not establish communication connection with shared server, shared data are at least wrapped Include latitude and longitude information, map scaling and the map denotation size of location information;It, will be shared by point-to-point communication mode Data are sent to target terminal, so that target terminal is according to shared data after shared map area is generated, by shared map area Domain is shown.
Optionally, position information share module, for when target terminal includes first terminal, generation to include shared ground The picture of graph region, target terminal of the first terminal not establish communication connection with shared server;Pass through point-to-point communication Mode will be sent to first terminal including the picture for sharing map area.
Optionally, position information share module is additionally operable to obtain the shared data of shared map area, and shared data is at least Latitude and longitude information including location information, map scaling and map denotation size;It, will altogether by point-to-point communication mode It enjoys data and is sent to second terminal, so that second terminal is according to shared data after shared map area is generated, by shared map Region is shown, and second terminal is that the target terminal of communication connection is established with shared server.
Optionally, which further includes:
End message acquisition module, for obtaining the target terminal information of location information;
End message uploading module, for target terminal information to be uploaded to shared server, so that shared server root Judge according to target terminal information with the presence or absence of first terminal in target terminal, and will determine that result is back to user terminal.
Optionally, map area adjustment unit, for when map interface adjustment operation includes map zoom operations, obtaining The corresponding map scaling ruler of map zoom operations;Scaling ruler according to the map zooms in and out behaviour to initial map area Make.
Optionally, map area adjustment unit, for when map interface adjustment operation includes map moving operation, obtaining The corresponding mobile scale of map moving operation;According to mobile scale, initial map area is adjusted.
Terminal provided in an embodiment of the present invention, after location information to be shared is obtained in the map interface currently shown, Operation and location information are adjusted according to the map interface of user, shared map area is obtained, is carried out according to shared map area Position information share, due to any bit confidence that location information to be shared can be user current location information or user specifies Breath, so shared location information is versatile and flexible;In addition, operation can be also adjusted according to the map interface of user obtains shared map Region so the shared map area got is various informative, enriches the form of expression of position information share;In addition, due to Position information share is carried out based on map area, is described so facilitating user and treating sharing position information, and this kind common The mode visual effect for enjoying location information is preferable, can specify the detail location of location information to be shared on map.
Figure 13 is a kind of server provided in an embodiment of the present invention, and referring to Figure 13, which includes:Shared data receives Module 1301, shared data sending module 1302.
Wherein, shared data receiving module 1301, for receiving the shared data of user terminal transmission, shared data is at least Latitude and longitude information including location information, map scaling and map denotation size;Shared data sending module 1302 is together It enjoys data reception module 1301 to connect, for shared data to be forwarded to target terminal, so that target terminal is according to shared number After generation map area, map area is shown at the displaying interface of target terminal.
Optionally, which further includes:
End message receiving module, for receiving the target terminal information of user terminal uploads;
Terminal judgment module, for according to target terminal information, judging to obtain with the presence or absence of first terminal in target terminal Judging result, terminal of the first terminal not establish communication connection with shared server;
Judging result issues module, for will determine that result is back to user terminal, so that user terminal is tied according to judgement Fruit and the shared map area got carry out position information share.
After receiving the shared data that user terminal is sent, shared data is turned for server provided in an embodiment of the present invention Target terminal is sent to, after generating map area according to shared data so as to target terminal, which is shown, due to Position information share is carried out based on map area, is described so facilitating user and treating sharing position information, and this kind common The mode visual effect for enjoying location information is preferable, can specify the detail location of location information to be shared on map.
Figure 14 is a kind of terminal provided in an embodiment of the present invention, which can be used for performing what is provided in above-described embodiment The method of sharing position information.Referring to Figure 14, which includes:
RF (Radio Frequency, radio frequency) circuit 110 includes one or more computer-readable storage mediums Memory 120, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, the WiFi (Wireless of matter Fidelity, Wireless Fidelity) module 170, including there are one or more than one processing core processor 180 and power supply 190 grade components.It will be understood by those skilled in the art that the restriction of the terminal structure shown in Figure 14 not structure paired terminal, it can To include either combining certain components or different components arrangement than illustrating more or fewer components.Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, transfer to one or more than one processor 180 is handled;In addition, the data for being related to uplink are sent to Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also communicate with network and other equipment by radio communication.Wireless communication, which can use, appoints (Global System of Mobile communication, the whole world are moved for one communication standard or agreement, including but not limited to GSM Dynamic communication system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storage software program and module, and processor 180 is stored in memory 120 by operation Software program and module, so as to perform various functions application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created number according to terminal 1400 According to (such as audio data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.
Input unit 130 can be used for receiving the number inputted or character information and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or neighbouring touch operation (such as user using any suitable object such as finger, stylus or attachment in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and processor 180 can be received The order sent simultaneously is performed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), It is one or more in trace ball, mouse, operating lever etc..
Display unit 140 can be used for display by information input by user or be supplied to the information of user and terminal 1400 Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination. Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal may be used Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) display panel is configured 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects on it or neighbouring touches After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event Corresponding visual output is provided on display panel 141.Although in fig. 14, touch sensitive surface 131 and display panel 141 are conducts Two independent components output and input function to realize, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 1400 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 1400 is moved in one's ear Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared ray sensors that terminal 1400 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 1400.Sound The transformed electric signal of the audio data received can be transferred to loud speaker 161, is converted to by loud speaker 161 by frequency circuit 160 Voice signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is received by voicefrequency circuit 160 After be converted to audio data, then after audio data output processor 180 is handled, it is such as another to be sent to through RF circuits 110 Audio data is exported to memory 120 to be further processed by terminal.Voicefrequency circuit 160 is also possible that earplug is inserted Hole, to provide the communication of peripheral hardware earphone and terminal 1400.
WiFi belongs to short range wireless transmission technology, and terminal 1400 can help user to receive and dispatch electricity by WiFi module 170 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.
Processor 180 is the control centre of terminal 1400, utilizes various interfaces and each portion of connection whole mobile phone Point, it is stored in memory 120 by running or performing the software program being stored in memory 120 and/or module and call Interior data perform the various functions of terminal 1400 and processing data, so as to carry out integral monitoring to mobile phone.Optionally, it handles Device 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulation /demodulation processing Device, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 1400 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 1400 can also include camera, bluetooth module etc., and details are not described herein.Specifically at this In embodiment, the display unit of terminal is touch-screen display, terminal further included memory and one or more than one Program, one of them either more than one program be stored in memory and be configured to by one or more than one Reason device execution states one or more than one program includes the instruction for being operated below:
In the map interface currently shown, location information to be shared is obtained, location information is believed for user current location Any position information that breath or user specify;
Operation and location information are adjusted according to the map interface of user, shared map area is obtained, shares map area Including location information;
According to shared map area, position information share is carried out.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of terminal, also comprising instructions for performing the following operations:
According to location information and the correspondence of longitude and latitude degrees of data, the longitude and latitude degrees of data of location information is determined;
According to the latitude and longitude information of location information, initial map area is obtained, initial map area includes location information;
Initial map area is shown on the displaying interface of user terminal;
Interface adjustment operation according to the map, is adjusted initial map area, obtains shared map area, initial map Region is more than shared map area.
In the third the possible embodiment provided based on second of possible embodiment, terminal is deposited In reservoir, also comprising instructions for performing the following operations:
When map interface adjustment operation includes user annotation addition operation, obtain user annotation addition and operate corresponding behaviour Make track;
According to operation trace, corresponding markup information is added in initial map area.
In the 4th kind of possible embodiment provided based on the first possible embodiment, terminal is deposited In reservoir, also comprising instructions for performing the following operations:
When not including first terminal in target terminal, the shared data of shared map area is obtained, first terminal is not The target terminal of communication connection is established with shared server, shared data includes at least the latitude and longitude information of location information, map Scaling and map denotation size;
Shared data is sent to shared server, so that shared server is after shared data is received, by shared number According to being forwarded to target terminal, by target terminal after shared map area is generated according to shared data, by shared map area into Row displaying.
In the 5th kind of possible embodiment provided based on the first possible embodiment, terminal is deposited In reservoir, also comprising instructions for performing the following operations:
When not including first terminal in target terminal, the shared data of shared map area is obtained, first terminal is not The target terminal of communication connection is established with shared server, shared data includes at least the latitude and longitude information of location information, map Scaling and map denotation size;
By point-to-point communication mode, shared data is sent to target terminal, so that target terminal is according to shared After the shared map area of data generation, shared map area is shown.
In the 6th kind of possible embodiment provided based on the first possible embodiment, terminal is deposited In reservoir, also comprising instructions for performing the following operations:
When target terminal includes first terminal, generation includes the picture of shared map area, first terminal for not with Shared server establishes the target terminal of communication connection;
By point-to-point communication mode, first terminal will be sent to including the picture for sharing map area.
In the 7th kind of possible embodiment provided based on the 6th kind of possible embodiment, terminal is deposited In reservoir, also comprising instructions for performing the following operations:
The shared data of shared map area is obtained, shared data includes at least the latitude and longitude information of location information, map Scaling and map denotation size;
By point-to-point communication mode, shared data is sent to second terminal, so that second terminal is according to shared After the shared map area of data generation, shared map area is shown, second terminal is to communicate with shared server foundation The target terminal of connection.
In the 8th kind of possible embodiment provided based on the 4th kind to the 7th kind possible embodiment, In the memory of terminal, also comprising instructions for performing the following operations:
Obtain the target terminal information of location information;
Target terminal information is uploaded to shared server, so that shared server judges target according to target terminal information With the presence or absence of first terminal in terminal, and it will determine that result is back to user terminal.
In the 9th kind of possible embodiment provided based on second of possible embodiment, terminal is deposited In reservoir, also comprising instructions for performing the following operations:
When map interface adjustment operation includes map zoom operations, the corresponding map pantograph ratio of map zoom operations is obtained Example ruler;
Scaling ruler according to the map zooms in and out operation to initial map area.
In the tenth kind of possible embodiment provided based on second of possible embodiment, terminal is deposited In reservoir, also comprising instructions for performing the following operations:
When map interface adjustment operation includes map moving operation, the corresponding mobile scale of map moving operation is obtained;
According to mobile scale, initial map area is adjusted.
Terminal provided in an embodiment of the present invention, after location information to be shared is obtained in the map interface currently shown, Operation and location information are adjusted according to the map interface of user, shared map area is obtained, is carried out according to shared map area Position information share, due to any bit confidence that location information to be shared can be user current location information or user specifies Breath, so shared location information is versatile and flexible;In addition, operation can be also adjusted according to the map interface of user obtains shared map Region so the shared map area got is various informative, enriches the form of expression of position information share;In addition, due to Position information share is carried out based on map area, is described so facilitating user and treating sharing position information, and this kind common The mode visual effect for enjoying location information is preferable, can specify the detail location of location information to be shared on map.
Figure 15 is a kind of server provided in an embodiment of the present invention, which can be used for performing carries in above-described embodiment The method of the sharing position information of confession.Referring to Figure 15, which can generate bigger due to configuration or different performance Difference, can include one or more central processing units (central processing units, CPU) 1522 (for example, One or more processors) and memory 1532, one or more storage application programs 1542 or data 1544 Storage medium 1530 (such as one or more mass memory units).Wherein, memory 1532 and storage medium 1530 can To be of short duration storage or persistent storage.One or more module (figures can be included by being stored in the program of storage medium 1530 Show and do not mark), each module can include operating the series of instructions in server.Further, central processing unit 1522 could be provided as communicating with storage medium 1530, and the series of instructions in storage medium 1530 are performed on server 1500 Operation.
Server 1500 can also include one or more power supplys 1526, one or more wired or wireless nets Network interface 1550, one or more input/output interfaces 1558 and/or, one or more operating systems 1541, example Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Specifically in the present embodiment, be configured to by one either more than one processor perform one or more than one Program includes the instruction for being operated below:
The shared data that user terminal is sent is received, shared data includes at least the latitude and longitude information of location information, map Scaling and map denotation size;
Shared data is forwarded to target terminal, so that target terminal after map area is generated according to shared data, is incited somebody to action Map area is shown at the displaying interface of target terminal.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of server, also comprising instructions for performing the following operations:
Receive the target terminal information of user terminal uploads;
According to target terminal information, judge to obtain judging result, first terminal with the presence or absence of first terminal in target terminal For the terminal of communication connection is not established with shared server;
It will determine that result is back to user terminal, so that user terminal is according to judging result and the shared map area got Domain carries out position information share.
After receiving the shared data that user terminal is sent, shared data is turned for server provided in an embodiment of the present invention Target terminal is sent to, after generating map area according to shared data so as to target terminal, which is shown, due to Position information share is carried out based on map area, is described so facilitating user and treating sharing position information, and this kind common The mode visual effect for enjoying location information is preferable, can specify the detail location of location information to be shared on map.
It should be noted that:The terminal and server that above-described embodiment provides is in sharing position information, only with above-mentioned each The division progress of function module, can be as needed and by above-mentioned function distribution by different work(for example, in practical application Energy module is completed, i.e., the internal structure of equipment is divided into different function modules, to complete whole described above or portion Divide function.In addition, terminal and server and the embodiment of the method for shared location information that above-described embodiment provides belong to same structure Think, specific implementation process refers to embodiment of the method, and which is not described herein again.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (22)

  1. A kind of 1. method of sharing position information, which is characterized in that the method includes:
    In the map interface currently shown, location information to be shared is obtained, the location information is believed for user current location Any position information that breath or user specify;
    According to location information and the correspondence of longitude and latitude degrees of data, the longitude and latitude degrees of data of the location information is determined;
    According to the latitude and longitude information of the location information, initial map area is obtained, the initial map area includes institute's rheme Confidence ceases;
    The initial map area is shown on the displaying interface of the user terminal;
    It is adjusted and operated according to the map interface, the initial map area is adjusted, obtains the shared map area, The initial map area is more than the shared map area, and the shared map area includes the location information;
    According to the shared map area, position information share is carried out.
  2. 2. according to the method described in claim 1, it is characterized in that, described adjusted according to the map interface operates, to described Initial map area is adjusted, including:
    When map interface adjustment operation includes user annotation addition operation, obtain the user annotation addition operation and correspond to Operation trace;
    According to the operation trace, corresponding markup information is added in the initial map area.
  3. It is 3. according to the method described in claim 1, it is characterized in that, described according to the shared map area, progress position letter Breath is shared, including:
    When not including first terminal in target terminal, the shared data of the shared map area, the first terminal are obtained Not establish the target terminal of communication connection with shared server, the shared data includes at least the longitude and latitude of the location information Spend information, map scaling and map denotation size;
    The shared data is sent to the shared server, so that the shared server is receiving the shared data Afterwards, the shared data is forwarded to the target terminal, as the target terminal according to shared data generation After shared map area, the shared map area is shown.
  4. It is 4. according to the method described in claim 1, it is characterized in that, described according to the shared map area, progress position letter Breath is shared, including:
    When not including first terminal in target terminal, the shared data of the shared map area, the first terminal are obtained Not establish the target terminal of communication connection with shared server, the shared data includes at least the longitude and latitude of the location information Spend information, map scaling and map denotation size;
    By point-to-point communication mode, the shared data is sent to the target terminal, so that the target terminal exists After generating the shared map area according to the shared data, the shared map area is shown.
  5. It is 5. according to the method described in claim 1, it is characterized in that, described according to the shared map area, progress position letter Breath is shared, including:
    When target terminal includes first terminal, generation includes the picture of the shared map area, and the first terminal is The target terminal of communication connection is not established with shared server;
    By point-to-point communication mode, the picture including the shared map area is sent to the first terminal.
  6. 6. according to the method described in claim 5, it is characterized in that, the method further includes:
    The shared data of the shared map area is obtained, the longitude and latitude that the shared data includes at least the location information is believed Breath, map scaling and map denotation size;
    By point-to-point communication mode, the shared data is sent to second terminal, so that the second terminal is in basis After the shared data generates the shared map area, the shared map area is shown, the second terminal is The target terminal of communication connection is established with the shared server.
  7. 7. the method according to any claim in claim 3 to 6, which is characterized in that described according to described shared Graph region, before carrying out position information share, the method further includes:
    Obtain the target terminal information of the location information;
    The target terminal information is uploaded to the shared server, so that the shared server is according to the target terminal Information is judged with the presence or absence of the first terminal in the target terminal, and will determine that result is back to the user terminal.
  8. 8. according to the method described in claim 1, it is characterized in that, described adjusted according to the map interface operates, to described Initial map area is adjusted, including:
    When map interface adjustment operation includes map zoom operations, the corresponding map contracting of the map zoom operations is obtained Put engineer's scale;
    According to the map scaling ruler, operation is zoomed in and out to the initial map area.
  9. 9. according to the method described in claim 1, it is characterized in that, described adjusted according to the map interface operates, to described Initial map area is adjusted, including:
    When map interface adjustment operation includes map moving operation, the corresponding attachable mechanical stage of the map moving operation is obtained Degree;
    According to the mobile scale, the initial map area is adjusted.
  10. A kind of 10. method of sharing position information, which is characterized in that the method includes:
    The shared data that user terminal is sent is received, the shared data includes at least the latitude and longitude information of location information, map Scaling and map denotation size;
    The shared data is forwarded to target terminal, so that the target terminal is generating map area according to the shared data Behind domain, the map area is shown at the displaying interface of the target terminal.
  11. 11. according to the method described in claim 10, it is characterized in that, the method further includes:
    Receive the target terminal information of the user terminal uploads;
    According to the target terminal information, judge to obtain judging result with the presence or absence of first terminal in the target terminal, it is described Terminal of the first terminal not establish communication connection with the shared server;
    The judging result is back to the user terminal, so that the user terminal is according to the judging result and gets Shared map area carry out position information share.
  12. 12. a kind of terminal, which is characterized in that the terminal includes:
    Position information acquisition module, in the map interface currently shown, obtaining location information to be shared, the position Any position information that information is user current location information or user specifies;
    Map area acquisition module for the correspondence according to location information and longitude and latitude degrees of data, determines the location information Longitude and latitude degrees of data;According to the latitude and longitude information of the location information, initial map area, the initial map area packet are obtained Include the location information;The initial map area is shown on the displaying interface of the user terminal;According to described Map interface adjustment operation, is adjusted the initial map area, obtains the shared map area, the initial map Region is more than the shared map area, and the shared map area includes the location information;
    Position information share module, for according to the shared map area, carrying out position information share.
  13. 13. terminal according to claim 12, which is characterized in that the map area adjustment unit, it is described for working as When the adjustment operation of figure interface includes user annotation addition operation, obtain the user annotation addition and operate corresponding operation trace; According to the operation trace, corresponding markup information is added in the initial map area.
  14. 14. terminal according to claim 12, which is characterized in that the position information share module, for working as target end When not including first terminal in end, obtain the shared data of the shared map area, the first terminal for not with shared clothes Business device establishes the target terminal of communication connection, and the shared data includes at least the latitude and longitude information of the location information, map Scaling and map denotation size;The shared data is sent to the shared server, so that the shared server After the shared data is received, the shared data is forwarded to the target terminal, by the target terminal in basis After the shared data generates the shared map area, the shared map area is shown.
  15. 15. terminal according to claim 12, which is characterized in that the position information share module, for working as target end When not including first terminal in end, obtain the shared data of the shared map area, the first terminal for not with shared clothes Business device establishes the target terminal of communication connection, and the shared data includes at least the latitude and longitude information of the location information, map Scaling and map denotation size;By point-to-point communication mode, the shared data is sent to the target terminal, So that the target terminal is according to the shared data after the shared map area is generated, by the shared map area into Row displaying.
  16. 16. terminal according to claim 12, which is characterized in that the position information share module, for working as target end When end includes first terminal, generation includes the picture of the shared map area, the first terminal be not with shared service Device establishes the target terminal of communication connection;By point-to-point communication mode, will be sent out including the picture of the shared map area It send to the first terminal.
  17. 17. terminal according to claim 16, which is characterized in that the position information share module is additionally operable to obtain institute The shared data of shared map area is stated, the shared data includes at least the latitude and longitude information of the location information, map contracting Put ratio and map denotation size;By point-to-point communication mode, the shared data is sent to second terminal, so that institute Second terminal is stated after the shared map area is generated according to the shared data, the shared map area is opened up Show, the second terminal is that the target terminal of communication connection is established with the shared server.
  18. 18. the terminal according to any claim in claim 14 to 17, which is characterized in that the terminal further includes:
    End message acquisition module, for obtaining the target terminal information of the location information;
    End message uploading module, for the target terminal information to be uploaded to the shared server, so that described shared Server is judged according to the target terminal information with the presence or absence of the first terminal in the target terminal, and will determine that result It is back to the user terminal.
  19. 19. terminal according to claim 12, which is characterized in that the map area adjustment unit, it is described for working as When the adjustment operation of figure interface includes map zoom operations, the corresponding map scaling ruler of the map zoom operations is obtained;Root According to the map scaling ruler, operation is zoomed in and out to the initial map area.
  20. 20. terminal according to claim 12, which is characterized in that the map area adjustment unit, it is described for working as When the adjustment operation of figure interface includes map moving operation, the corresponding mobile scale of the map moving operation is obtained;According to described Mobile scale, is adjusted the initial map area.
  21. 21. a kind of server, which is characterized in that the server includes:
    Shared data receiving module, for receiving the shared data of user terminal transmission, the shared data includes at least position Latitude and longitude information, map scaling and the map denotation size of information;
    Shared data sending module, for the shared data to be forwarded to target terminal, so that the target terminal is in basis After the shared data generation map area, the map area is shown at the displaying interface of the target terminal.
  22. 22. server according to claim 21, which is characterized in that the server further includes:
    End message receiving module, for receiving the target terminal information of the user terminal uploads;
    Terminal judgment module, for according to the target terminal information, judging in the target terminal with the presence or absence of first terminal, Obtain judging result, terminal of the first terminal not establish communication connection with the shared server;
    Judging result issues module, for the judging result to be back to the user terminal, so that the user terminal root Position information share is carried out according to the judging result and the shared map area got.
CN201410213543.1A 2014-05-20 2014-05-20 Method, terminal and the server of sharing position information Active CN104618854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410213543.1A CN104618854B (en) 2014-05-20 2014-05-20 Method, terminal and the server of sharing position information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410213543.1A CN104618854B (en) 2014-05-20 2014-05-20 Method, terminal and the server of sharing position information

Publications (2)

Publication Number Publication Date
CN104618854A CN104618854A (en) 2015-05-13
CN104618854B true CN104618854B (en) 2018-07-10

Family

ID=53153091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410213543.1A Active CN104618854B (en) 2014-05-20 2014-05-20 Method, terminal and the server of sharing position information

Country Status (1)

Country Link
CN (1) CN104618854B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472559A (en) * 2015-12-25 2016-04-06 重庆智韬信息技术中心 Method for acquiring positioning information data of calling terminal
CN107015246B (en) 2016-01-28 2021-03-30 华为技术有限公司 Navigation assistance method and terminal based on scene sharing
CN107102833B (en) 2016-02-22 2020-01-10 腾讯科技(深圳)有限公司 Line information interaction method and electronic equipment
CN106375320A (en) * 2016-09-06 2017-02-01 珠海市魅族科技有限公司 Geographic position information sharing method and apparatus
CN106603650B (en) * 2016-12-08 2020-08-14 宇龙计算机通信科技(深圳)有限公司 Method for sharing position information and terminal equipment
CN106708538B (en) 2017-01-23 2020-04-21 腾讯科技(深圳)有限公司 Interface display method and device
WO2019023884A1 (en) * 2017-07-31 2019-02-07 深圳传音通讯有限公司 Smart terminal-based merchant information sharing method and merchant information sharing system
CN108234764A (en) * 2017-12-29 2018-06-29 北京小米移动软件有限公司 Display methods, device and the terminal of terminal
CN108255455B (en) * 2018-02-05 2020-12-04 温州炘都工业设计有限公司 Data interaction method for multi-screen splicing signage
CN110519683B (en) * 2019-07-29 2020-12-08 同济大学 Group location sharing method based on Wi-Fi P2P technology
CN111198639A (en) * 2019-12-27 2020-05-26 深圳市优必选科技股份有限公司 A picture marking method, device, terminal and computer storage medium
CN114051100B (en) * 2022-01-13 2022-07-08 荣耀终端有限公司 Method, system and terminal equipment for sharing photographing information in real time
CN119271076A (en) * 2023-07-05 2025-01-07 腾讯科技(深圳)有限公司 Image area sharing method, device, equipment, storage medium and computer program product

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7450003B2 (en) * 2006-02-24 2008-11-11 Yahoo! Inc. User-defined private maps
US8571580B2 (en) * 2006-06-01 2013-10-29 Loopt Llc. Displaying the location of individuals on an interactive map display on a mobile communication device
CN101201253A (en) * 2006-12-13 2008-06-18 宏碁股份有限公司 Electronic device and method for sharing data by instant message
CN102264029A (en) * 2011-08-01 2011-11-30 中兴通讯股份有限公司 Terminal information sharing method and equipment
JP5276746B1 (en) * 2012-11-21 2013-08-28 オーシャンズ株式会社 Information sharing system using maps
CN103067588B (en) * 2012-12-27 2014-10-08 青岛英特沃克网络科技有限公司 System and method with which real-time map is capable of being displayed and shared in mobile terminal

Also Published As

Publication number Publication date
CN104618854A (en) 2015-05-13

Similar Documents

Publication Publication Date Title
CN104618854B (en) Method, terminal and the server of sharing position information
CN104468679B (en) Share the method, terminal and system in geographical position
CN105005457B (en) Geographical location methods of exhibiting and device
CN106101756B (en) Barrage display methods, barrage adding method, apparatus and system
CN103473494B (en) A kind of run the method for application, device and terminal unit
CN104426962B (en) Method, binding server, terminal and the system of multiple terminals binding
CN104519485B (en) Communication means, device and system between a kind of terminal
CN106454404B (en) A kind of methods, devices and systems playing live video
CN104902531B (en) Connect method, application authorization server, terminal and the router of network
CN104142868B (en) Establish the method and device of connection
CN103473092B (en) A kind of download the processing method of application, device and terminal unit
CN104679381B (en) Switch the method and device of chat window
CN106791892A (en) It is a kind of to take turns the live methods, devices and systems of wheat
CN104516624B (en) A kind of method and device inputting account information
CN106488296B (en) A kind of method and apparatus showing video barrage
CN108924364A (en) Message prompt method, mobile terminal and computer readable storage medium
WO2018120905A1 (en) Message reminding method for terminal, and terminal
CN105915997B (en) Control display methods and device
CN104122981B (en) Photographic method, camera arrangement and mobile terminal applied to mobile terminal
CN105306760B (en) The method and device that terminal is controlled
CN106504303B (en) A kind of method and apparatus playing frame animation
CN109728918A (en) Virtual objects sending method, virtual objects method of reseptance, device and storage medium
CN109684825A (en) A kind of right management method and terminal device
CN105303591B (en) Method, terminal and server for superimposing location information on jigsaw puzzle
CN110020386A (en) Application page sharing method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant