Movatterモバイル変換


[0]ホーム

URL:


CN102595310A - Method for sharing geographical position between mobile terminals, presence server and mobile terminal - Google Patents

Method for sharing geographical position between mobile terminals, presence server and mobile terminal
Download PDF

Info

Publication number
CN102595310A
CN102595310ACN2012100176940ACN201210017694ACN102595310ACN 102595310 ACN102595310 ACN 102595310ACN 2012100176940 ACN2012100176940 ACN 2012100176940ACN 201210017694 ACN201210017694 ACN 201210017694ACN 102595310 ACN102595310 ACN 102595310A
Authority
CN
China
Prior art keywords
location information
terminal
presence server
geographic location
mobile terminal
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.)
Pending
Application number
CN2012100176940A
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co LtdfiledCriticalChina United Network Communications Group Co Ltd
Priority to CN2012100176940ApriorityCriticalpatent/CN102595310A/en
Publication of CN102595310ApublicationCriticalpatent/CN102595310A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明提供一种移动终端间共享地理位置的方法、共享服务器及移动终端,方法包括:呈现服务器接收移动终端上报的地理位置信息,并进行更新;所述呈现服务器在授权列表中查找所述移动终端授权的好友终端;所述呈现服务器将更新后的地理位置信息下发给所述好友终端,以触发所述好友终端进行好友位置信息的本地更新。根据本发明的移动终端间共享地理位置的方法、共享服务器及移动终端,使移动终端只需要向呈现服务器上报一次更新的地理位置信息,再由呈现服务器向各好友终端发送更新后的地理位置信息,即可使各好友终端获取到该移动终端的当前地理位置信息,节省了大量人力和财力。

Figure 201210017694

The present invention provides a method for sharing geographic location between mobile terminals, a sharing server and a mobile terminal. The method includes: the presence server receives and updates the geographical location information reported by the mobile terminal; the presence server searches the authorization list for the mobile A friend terminal authorized by the terminal; the presence server sends the updated geographic location information to the friend terminal, so as to trigger the friend terminal to locally update the friend location information. According to the method for sharing geographic location among mobile terminals, sharing server and mobile terminal of the present invention, the mobile terminal only needs to report the updated geographic location information to the presence server once, and then the presence server sends the updated geographic location information to each friend terminal , that is, each friend terminal can obtain the current geographic location information of the mobile terminal, which saves a lot of manpower and financial resources.

Figure 201210017694

Description

Translated fromChinese
移动终端间共享地理位置的方法、呈现服务器及移动终端Method for sharing geographic location between mobile terminals, presence server and mobile terminal

技术领域technical field

本发明涉及通信技术,尤其涉及一种移动终端间共享地理位置的方法、呈现服务器及移动终端。The present invention relates to communication technology, in particular to a method for sharing geographic locations between mobile terminals, a presence server and a mobile terminal.

背景技术Background technique

现有技术中,经常需要定位移动终端,例如需要根据移动终端的位置推送信息。In the prior art, it is often necessary to locate a mobile terminal, for example, it is necessary to push information according to the location of the mobile terminal.

移动终端定位是通过特定的定位技术来获取移动终端的用户的位置信息,例如经纬度坐标。目前普遍采用的定位技术有两种,一种是基于GPS(Global Positioning System,全球定位系统)的定位,另一种是基于基站的定位。基于GPS的定位方式是利用移动终端上的GPS定位模块将自己的位置信号发送到定位后台来实现终端定位。基站定位则是利用基站对终端的距离的测算来确定移动终端的位置。Mobile terminal positioning is to obtain the location information of the user of the mobile terminal, such as latitude and longitude coordinates, through a specific positioning technology. There are two kinds of positioning technologies commonly used at present, one is positioning based on GPS (Global Positioning System, Global Positioning System), and the other is positioning based on base stations. The positioning method based on GPS is to use the GPS positioning module on the mobile terminal to send its own position signal to the positioning background to realize terminal positioning. The base station positioning is to determine the position of the mobile terminal by using the base station to calculate the distance of the terminal.

当移动终端的地理位置信息发生变化时,想要获得该移动终端当前地理位置信息的其它询问用户只能通过向使用该移动终端的被询问用户以询问的方式获取被询问用户的当前地理位置信息,这样,该被询问用户接收到询问请求时,需要分别以发送信息或者打电话的形式告知各询问用户自己当前的地理位置信息,这会给被询问用户造成很大的不便,而且浪费了大量的人力和财力。When the geographic location information of the mobile terminal changes, other inquiring users who want to obtain the current geographic location information of the mobile terminal can only obtain the current geographic location information of the inquired user by asking the inquired user who uses the mobile terminal. In this way, when the inquired user receives the inquiry request, he needs to inform each inquiring user of his current geographic location information in the form of sending a message or making a phone call, which will cause great inconvenience to the inquired user and waste a lot of time. human and financial resources.

发明内容Contents of the invention

本发明提供一种移动终端间共享地理位置的方法、呈现服务器及移动终端,用于避免移动终端更改地理位置信息后需要分别向需要获取其地理位置信息的终端发送地理位置信息,从而浪费了大量人力和财力的缺陷。The present invention provides a method for sharing geographical location among mobile terminals, a presence server and a mobile terminal, which are used to prevent the mobile terminal from sending geographical location information to terminals that need to obtain the geographical location information after changing the geographical location information, thereby wasting a lot of Deficiencies in human and financial resources.

本发明提供一方面一种移动终端间共享地理位置的方法,包括:The present invention provides, on the one hand, a method for sharing geographic locations between mobile terminals, including:

呈现服务器接收移动终端上报的地理位置信息,并进行更新;The presence server receives and updates the geographic location information reported by the mobile terminal;

所述呈现服务器在授权列表中查找所述移动终端授权的好友终端;The presence server looks up the friend terminal authorized by the mobile terminal in the authorization list;

所述呈现服务器将更新后的地理位置信息下发给所述好友终端,以触发所述好友终端进行好友位置信息的本地更新。The presence server sends the updated geographic location information to the buddy terminal, so as to trigger the buddy terminal to locally update the buddy location information.

如上所述的移动终端间共享地理位置的方法,优选地,还包括:The method for sharing geographic location between mobile terminals as described above, preferably, further includes:

所述呈现服务器接收移动终端发送的授权指示命令,并根据所述授权指示命令在所述移动终端的授权列表中添加、变更或删除好友终端。The presence server receives the authorization indication command sent by the mobile terminal, and adds, changes or deletes the buddy terminal in the authorization list of the mobile terminal according to the authorization indication command.

如上所述的移动终端间共享地理位置的方法,优选地,呈现服务器接收移动终端上报的地理位置信息包括:In the method for sharing geographic location between mobile terminals as described above, preferably, the presence server receiving the geographic location information reported by the mobile terminal includes:

呈现服务器接收移动终端发送的状态发布消息,并从所述状态发布消息的位置字段中提取所述地理位置信息。The presence server receives the status publishing message sent by the mobile terminal, and extracts the geographic location information from the location field of the status publishing message.

如上所述的移动终端间共享地理位置的方法,优选地,所述呈现服务器将更新后的地理位置信息下发给所述好友终端包括:In the above-mentioned method for sharing geographic locations between mobile terminals, preferably, the presence server sending the updated geographic location information to the friend terminal includes:

所述呈现服务器将更新后的地理位置信息添加到状态通知消息中,并将所述状态通知消息下发给所述好友终端。The presence server adds the updated geographic location information to the status notification message, and sends the status notification message to the buddy terminal.

本发明另一方面提供一种移动终端间共享地理位置的方法,包括:Another aspect of the present invention provides a method for sharing geographic locations between mobile terminals, including:

移动终端向呈现服务器上报自身的地理位置信息;The mobile terminal reports its geographic location information to the presence server;

所述移动终端接收呈现服务器下发的其他移动终端的地理位置信息;The mobile terminal receives geographic location information of other mobile terminals issued by the presence server;

所述移动终端按照地址簿中的好友终端标识,将下发的地理位置信息对应添加到本地存储器中;The mobile terminal correspondingly adds the issued geographic location information to the local memory according to the friend terminal identifier in the address book;

当所述移动终端接收到好友查询命令时,按照好友查询命令中的好友终端标识在本地存储器中调取对应的地理位置信息。When the mobile terminal receives the friend query command, it retrieves the corresponding geographic location information in the local memory according to the friend terminal identifier in the friend query command.

如上所述的移动终端间共享地理位置的方法,优选地,移动终端向呈现服务器上报自身的地理位置信息包括:In the above-mentioned method for sharing geographic location between mobile terminals, preferably, the mobile terminal reporting its own geographic location information to the presence server includes:

移动终端将自身的地理位置信息添加到状态发布消息中,向呈现服务器上报。The mobile terminal adds its own geographic location information to the status publishing message, and reports it to the presence server.

如上所述的移动终端间共享地理位置的方法,优选地,所述移动终端接收呈现服务器下发的其他移动终端的地理位置信息包括:In the above-mentioned method for sharing geographic location between mobile terminals, preferably, the mobile terminal receiving the geographic location information of other mobile terminals delivered by the presence server includes:

所述移动终端接收呈现服务器下发的状态通知消息,并从所述状态通知消息中解析获取其他移动终端的地理位置信息。The mobile terminal receives the status notification message delivered by the presence server, and parses the status notification message to obtain the geographic location information of other mobile terminals.

本发明又一方面提供一种呈现服务器,包括:Another aspect of the present invention provides a presence server, including:

位置更新模块,用于接收移动终端上报的地理位置信息,并进行更新;The location update module is used to receive the geographic location information reported by the mobile terminal and update it;

好友查询模块,用于在授权列表中查找所述移动终端授权的好友终端;A friend query module, configured to search for a friend terminal authorized by the mobile terminal in the authorization list;

状态推送模块,用于将更新后的地理位置信息下发给所述好友终端,以触发所述好友终端进行好友位置信息的本地更新。The status push module is configured to send the updated geographic location information to the friend terminal, so as to trigger the friend terminal to locally update the friend location information.

如上所述的共享服务器,优选地,还包括:The shared server as described above, preferably, also includes:

授权接收模块,用于接收移动终端发送的授权指示命令,并根据所述授权指示命令在所述移动终端的授权列表中添加、变更或删除好友终端。The authorization receiving module is configured to receive the authorization indication command sent by the mobile terminal, and add, change or delete the buddy terminal in the authorization list of the mobile terminal according to the authorization indication command.

本发明再一方面提供一种移动终端,优选地,包括:Another aspect of the present invention provides a mobile terminal, preferably, including:

位置上报模块,用于向呈现服务器上报自身的地理位置信息;a location reporting module, configured to report its own geographic location information to the presentation server;

信息接收模块,用于接收呈现服务器下发的其他移动终端的地理位置信息;An information receiving module, configured to receive geographic location information of other mobile terminals issued by the presence server;

位置添加模块,用于按照地址簿中的好友终端标识,将下发的地理位置信息对应添加到本地存储器中;The location adding module is used to correspondingly add the issued geographic location information to the local memory according to the friend terminal ID in the address book;

位置呈现模块,用于当接收到好友查询命令时,按照好友查询命令中的好友终端标识在本地存储器中调取对应的地理位置信息。The location presenting module is configured to retrieve corresponding geographic location information in the local memory according to the buddy terminal identifier in the buddy query command when the buddy query command is received.

根据本发明的移动终端间共享地理位置的方法、呈现服务器及移动终端,使移动终端只需要向呈现服务器上报一次更新的地理位置信息,再由呈现服务器向各好友终端发送更新后的地理位置信息,即可使各好友终端获取到该移动终端的当前地理位置信息,节省了大量人力和财力。According to the method for sharing geographic location between mobile terminals, the presence server and the mobile terminal of the present invention, the mobile terminal only needs to report the updated geographic location information to the presence server once, and then the presence server sends the updated geographic location information to each friend terminal , that is, each friend terminal can obtain the current geographic location information of the mobile terminal, which saves a lot of manpower and financial resources.

附图说明Description of drawings

图1为根据本发明一实施例的移动终端间共享地理位置信息的方法流程图;FIG. 1 is a flowchart of a method for sharing geographic location information between mobile terminals according to an embodiment of the present invention;

图2为根据本发明另一实施例的移动终端间共享地理位置信息的方法流程图;FIG. 2 is a flowchart of a method for sharing geographic location information between mobile terminals according to another embodiment of the present invention;

图3为根据本发明又一实施例的共享服务器的结构示意图;FIG. 3 is a schematic structural diagram of a shared server according to another embodiment of the present invention;

图4为根据本发明再一实施例的移动终端的结构示意图。Fig. 4 is a schematic structural diagram of a mobile terminal according to yet another embodiment of the present invention.

具体实施方式Detailed ways

实施例一Embodiment one

本实施例提供一种移动终端间共享地理位置信息的方法。该方法适用的网络架构包括呈现服务器和移动终端,呈现服务器接收移动终端上报的地理位置信息并进行更新,然后将更新后的地理位置信息下发给好友终端。该好友终端可以是更改地理位置信息的移动终端授权的好友列表中的移动终端,也可以是该更改地理位置信息的移动终端的通讯录里面的好友终端,需要指出的是,好友终端列表已经预先设置,可由共享服务器查询。This embodiment provides a method for sharing geographic location information between mobile terminals. The applicable network architecture of the method includes a presence server and a mobile terminal. The presence server receives and updates the geographic location information reported by the mobile terminal, and then sends the updated geographic location information to the friend terminal. The buddy terminal can be a mobile terminal in the buddy list authorized by the mobile terminal that changes the geographic location information, or a buddy terminal in the address book of the mobile terminal that changes the geographic location information. It should be pointed out that the buddy terminal list has been preset Setting, which can be queried by the shared server.

如图1所示,为根据本实施例的移动终端间共享地理位置的方法的流程示意图。该方法包括:As shown in FIG. 1 , it is a schematic flowchart of a method for sharing geographic locations between mobile terminals according to this embodiment. The method includes:

步骤101,呈现服务器接收移动终端上报的地理位置信息,并进行更新。Instep 101, the presence server receives and updates the geographic location information reported by the mobile terminal.

移动终端获取地理位置信息的方式可以是现有技术中的以GPS或者基站的方式获取。移动终端上报地理位置信息可以有很多种方式,本实施例中不做限定。例如以周期性上报的方式,例如可以为每分钟上报一次或者每小时上报一次,周期的时间可以根据实际需要自行设定;或者是每当移动终端的当前地理位置信息发生变化时就向呈现服务器进行上报。该呈现服务器具体可以为一PC(personal computer,个人计算机)。The manner in which the mobile terminal obtains the geographic location information may be the acquisition by means of GPS or a base station in the prior art. There are many ways for the mobile terminal to report the geographic location information, which are not limited in this embodiment. For example, in the form of periodic reporting, such as reporting once per minute or once per hour, the periodic time can be set according to actual needs; or whenever the current geographic location information of the mobile terminal changes, it will report to the presentation server Make an escalation. Specifically, the presence server may be a PC (personal computer, personal computer).

步骤102,呈现服务器在授权列表中查找移动终端授权的好友终端。Step 102, the presence server searches the authorization list for friend terminals authorized by the mobile terminal.

可以预先设置授权列表,该授权列表即为能够接收移动终端的地理位置信息的用户。授权列表可以由一系列的电话号码组成。该授权列表可以预先存储在呈现服务器的存储器中,或者是单独设置一个存储器进行存储,呈现服务器在需要查询该授权列表时,从该单独设置的存储器上进行查询。授权列表中的所有移动终端均为该上报了地理位置信息的好友终端。An authorization list can be set in advance, and the authorization list is users who can receive the geographic location information of the mobile terminal. An authorized list can consist of a list of phone numbers. The authorization list may be pre-stored in the memory of the presence server, or may be stored in a separate memory, and the presence server may query the authorization list from the separately provided memory when it needs to query the authorization list. All mobile terminals in the authorization list are friend terminals that have reported the geographic location information.

步骤103,呈现服务器将更新后的地理位置信息下发给好友终端,以触发好友终端进行好友位置信息的本地更新。Step 103, the presence server sends the updated geographic location information to the friend terminal, so as to trigger the friend terminal to update the friend location information locally.

当呈现服务器发现移动终端更新了地理位置信息,则将该更新的地理位置信息下发给好友终端。特别地,当移动终端以周期性方式对地理位置信息进行更新时,可能该地理位置信息没有变化,此时,呈现服务器可以比较更新后的地理位置信息和更新前地地理位置信息,当发现地理位置信息并未发生改变时,可以暂时先不向好友终端发送,直至识别到地理位置信息发生改变时再向好友终端进行发送。即,在呈现服务器接收移动终端上报的地理位置信息之后,且在呈现服务器将更新后的地理位置信息下发给好友终端之前,呈现服务器比较更新后的地理位置信息与更新前的地理位置信息是否一致,当不一致时,呈现服务器执行将更新后的地理位置信息下发给好友终端的操作。When the presence server finds that the location information of the mobile terminal has been updated, it sends the updated location information to the friend terminal. In particular, when the mobile terminal updates the geographic location information in a periodic manner, the geographic location information may not change. At this time, the presence server can compare the updated geographic location information with the pre-updated geographic location information. When the location information has not changed, it may temporarily not send to the friend terminal until it is recognized that the location information has changed before sending to the friend terminal. That is, after the presence server receives the geographic location information reported by the mobile terminal and before the presence server sends the updated geographic location information to the friend terminal, the presence server compares whether the updated geographic location information and the pre-updated geographic location information are Consistent, when inconsistent, the presence server executes the operation of sending the updated geographic location information to the friend terminal.

好友终端对好友位置信息进行本地更新,即对该更新了地理位置信息的移动终端的地理位置信息进行本地更新。好友终端显示地理位置信息的方式有很多种,例如好友终端以修改文本的方式进行更新,或者在好友终端中的信息列表中以高亮的方式显示该移动终端更新了地理位置信息。具体地,可以在好友终端打开电子地图时,直接在电子地图上以特殊方式标记出来。The buddy terminal locally updates the buddy location information, that is, locally updates the geographic location information of the mobile terminal whose geographic location information has been updated. There are many ways for the buddy terminal to display the geographic location information, for example, the buddy terminal is updated by modifying the text, or the information list in the buddy terminal is highlighted to show that the mobile terminal has updated the geographic location information. Specifically, when the friend terminal opens the electronic map, it can be directly marked on the electronic map in a special way.

根据本实施例的移动终端间共享地理位置信息的方法,移动终端通过向呈现服务器上报地理位置信息,再由呈现服务器向好友终端发送更新后的地理位置信息,也就是说,移动终端只需要完成一次更新地理位置信息的操作,好友终端就可以获取到该移动终端更新后的地理位置信息,对于移动终端非常便利,节省了大量的人力和财力。According to the method for sharing geographic location information between mobile terminals in this embodiment, the mobile terminal reports the geographic location information to the presence server, and then the presence server sends the updated geographic location information to the friend terminal, that is to say, the mobile terminal only needs to complete With one operation of updating the geographic location information, the friend terminal can obtain the updated geographic location information of the mobile terminal, which is very convenient for the mobile terminal and saves a lot of manpower and financial resources.

实施例二Embodiment two

本实施例对实施例一的移动终端间共享地理位置的方法做进一步说明。This embodiment further describes the method for sharing geographic locations among mobile terminals in Embodiment 1.

本实施例移动终端间共享地理位置的方法还包括:呈现服务器接收移动终端发送的授权指示命令,并根据授权指示命令在移动终端的授权列表中添加、变更或删除好友终端。其它步骤均与实施例一中的一致,在此不再赘述。The method for sharing the geographic location between mobile terminals in this embodiment further includes: the presence server receives the authorization indication command sent by the mobile terminal, and adds, changes or deletes the friend terminal in the authorization list of the mobile terminal according to the authorization indication command. Other steps are consistent with those in Embodiment 1, and will not be repeated here.

在实际应用中,经常会出现好友终端变更电话号码的情况,或者说是根据实际情况想要避免某些好友终端的打扰而不想让该好友终端知道自己的当前地理位置信息。这样,根据本实施例的移动终端间共享地理位置的方法,移动终端的用户可以根据实际需要向呈现服务器发送授权指示命令,以在授权列表中添加、变更或删除好友终端。In practical applications, it often happens that a friend terminal changes its phone number, or it is intended to avoid disturbance from some friend terminals according to the actual situation and does not want the friend terminal to know its current geographic location information. In this way, according to the method for sharing geographic locations between mobile terminals in this embodiment, the user of the mobile terminal can send an authorization instruction command to the presence server according to actual needs, so as to add, change or delete friend terminals in the authorization list.

实施例三Embodiment Three

本实施例对上述实施例的移动终端间共享地理位置的方法做进一步说明。This embodiment further describes the method for sharing geographical locations between mobile terminals in the above embodiments.

本实施例中的呈现服务器接收移动终端上报的地理位置信息具体包括:呈现服务器接收移动终端发送的状态发布消息,并从状态发布消息的位置字段中提取地理位置信息。In this embodiment, the presence server receiving the geographic location information reported by the mobile terminal specifically includes: the presence server receives the status publishing message sent by the mobile terminal, and extracts the geographic location information from the location field of the status publishing message.

好友终端可以设置增强型地址簿,该增强型地址簿可以显示好友的在线状态、地理位置等信息,而且这些信息都是动态变化的,类似于聊天工具QQ、MSN等的地址簿。相应地,状态发布消息中可以包含很多信息,例如头像、状态说明等信息,还可以包括地理位置信息。该地理位置信息可以通过扩展添加的字段来传送该地理位置信息,扩展添加的字段可以如下所示:The friend terminal can be provided with an enhanced address book, which can display information such as the online status and geographic location of the friend, and these information are all dynamically changed, similar to the address books of the chat tools QQ, MSN, etc. Correspondingly, the status release message may contain a lot of information, such as profile picture, status description and other information, and may also include geographic location information. The geographic location information can be transmitted by extending the added field, and the extended added field can be as follows:

<op:geoinfo><op:geoinfo>

<op:basic>longitude:dd.ddddd;latitude:dd.ddddd</op:basic><op:basic>longitude:dd.ddddd; latitude:dd.ddddd</op:basic>

</op:geoinfo></op:geoinfo>

该字段中的geoinfo代表地理位置信息,longitude代表经度,dd.ddddd代表经度值,latitude代表纬度,dd.ddddd代表纬度值。The geoinfo in this field represents geographic location information, longitude represents longitude, dd.ddddd represents longitude value, latitude represents latitude, and dd.ddddd represents latitude value.

还可以通过添加参数的形式在状态发布消息中加入地理位置信息,例如加入参数longitude:dd.ddddd;latitude:dd.ddddd,该参数中的longitude代表经度,dd.ddddd代表经度值,latitude代表纬度,dd.ddddd代表纬度值。Geographic location information can also be added to the status release message by adding parameters, such as adding parameters longitude: dd.ddddd; latitude: dd.ddddd, where longitude in this parameter represents longitude, dd.ddddd represents longitude value, and latitude represents latitude , dd.ddddd represents the latitude value.

可选地,呈现服务器将更新后的地理位置信息下发给好友终端可包括:呈现服务器将更新后的地理位置信息添加到状态通知消息中,并将状态通知消息下发给好友终端。好友终端可以通过修改上述增强型地址簿的方式对地理位置进行更新。Optionally, sending the updated geographic location information to the buddy terminal by the presence server may include: adding the updated geographic location information to the status notification message by the presence server, and sending the status notification message to the buddy terminal. The friend terminal can update the geographic location by modifying the above-mentioned enhanced address book.

根据本实施例的移动终端间共享地理位置的方法,通过将移动终端地理位置信息添加到状态发布消息中,并向呈现服务器发布,呈现服务器接收该状态发布消息,从中提取地理位置信息,然后将该地理位置信息添加到状态消息中,并将状态通知消息下发到各好友终端。According to the method for sharing geographic location between mobile terminals in this embodiment, the geographic location information of the mobile terminal is added to the status release message and released to the presence server, and the presence server receives the status release message, extracts the geographic location information from it, and then sends the The geographic location information is added to the status message, and the status notification message is sent to each friend terminal.

实施例四Embodiment Four

本实施例提供一种移动终端间共享地理位置的方法。This embodiment provides a method for sharing geographic locations between mobile terminals.

如图2所谓,为根据本实施例的移动终端间共享地理位置的方法的流程示意图。该方法包括:As shown in FIG. 2 , it is a schematic flowchart of a method for sharing geographic locations among mobile terminals according to this embodiment. The method includes:

步骤201,移动终端向呈现服务器上报自身的地理位置信息。Instep 201, the mobile terminal reports its geographic location information to the presence server.

移动终端上报地理位置信息可以有多种方式,例如每隔预设周期进行上报一次,假设每隔10分钟上报一次,或者当发现自身的地理位置信息发生改变时,向呈现服务器上报自身的地理位置信息。There are many ways for a mobile terminal to report geographic location information, for example, to report once every preset period, assuming that it reports once every 10 minutes, or to report its own geographic location to the presence server when it finds that its own geographic location information has changed information.

步骤202,移动终端接收呈现服务器下发的其他移动终端的地理位置信息。Instep 202, the mobile terminal receives geographic location information of other mobile terminals delivered by the presence server.

步骤203,移动终端按照地址簿中的好友终端标识,将下发的地理位置信息对应添加到本地存储器中。Instep 203, the mobile terminal correspondingly adds the issued geographic location information into the local memory according to the friend terminal identifiers in the address book.

好友终端标识可以包括好友终端的电话号码和/或好友终端的名称。移动终端将更新的地理位置信息以文本的方式存储在对应的本地存储器中,以便当需要查询该好友终端的地理位置信息时,能够通过本地存储器进行查询。The buddy terminal identifier may include the buddy terminal's phone number and/or the name of the buddy terminal. The mobile terminal stores the updated geographic location information in the corresponding local storage in the form of text, so that when it is necessary to query the geographic location information of the friend terminal, the query can be performed through the local storage.

步骤204,当移动终端接收到好友查询命令时,按照好友查询命令中的好友终端标识在本地存储器中调取对应的地理位置信息。Step 204, when the mobile terminal receives the friend query command, it retrieves the corresponding geographic location information from the local storage according to the friend terminal identifier in the friend query command.

根据本实施例的移动终端间共享地理位置的方法,当移动终端的地理位置信息变更时,移动终端向呈现服务器上报自身的地理位置信息,以通过呈现服务器向各好友终端发送,以及接收其他终端的地理位置信息,当需要进行查询时能够直接从本地存储器中直接读取,从而避免了传统技术中需要分别向各好友终端发送更新后的地理位置信息而浪费了大量人力和财力的缺陷。According to the method for sharing geographic location between mobile terminals in this embodiment, when the geographic location information of the mobile terminal changes, the mobile terminal reports its own geographic location information to the presence server, so as to send it to each friend terminal through the presence server, and receive it from other terminals. The geographic location information can be directly read from the local storage when a query is required, thereby avoiding the defect of wasting a lot of manpower and financial resources in the traditional technology that needs to send updated geographic location information to each friend terminal respectively.

实施例五Embodiment five

本实施例对实施例四的移动终端间共享地理位置的方法做进一步改进。This embodiment further improves the method for sharing geographic locations among mobile terminals in Embodiment 4.

具体地,移动终端向呈现服务器上报自身的地理位置信息包括:移动终端将自身的地理位置信息添加到状态发布消息中,向呈现服务器上报。Specifically, reporting the geographic location information of the mobile terminal to the presence server includes: adding the geographic location information of the mobile terminal to the status publishing message, and reporting the geographic location information to the presence server.

移动终端可以设置增强型地址簿,该增强型地址簿可以显示好友的在线状态、地理位置等信息,而且这些信息都是动态变化的,类似于聊天工具QQ、MSN等的地址簿。状态发布消息中可以包含很多信息,例如头像、状态说明等信息,还可以包括地理位置信息。该地理位置信息可以通过扩展添加的字段来传送该地理位置信息,扩展添加的字段可以如下所示:The mobile terminal can be provided with an enhanced address book, which can display information such as the online status and geographic location of friends, and these information are all dynamically changing, similar to the address books of chat tools such as QQ and MSN. The status release message may contain a lot of information, such as profile picture, status description and other information, and may also include geographic location information. The geographic location information can be transmitted by extending the added field, and the extended added field can be as follows:

<op:geoinfo><op:geoinfo>

<op:basic>longitude:dd.ddddd;latitude:dd.ddddd</op:basic><op:basic>longitude:dd.ddddd; latitude:dd.ddddd</op:basic>

</op:geoinfo></op:geoinfo>

该字段中的geoinfo代表地理位置信息,longitude代表经度,dd.ddddd代表经度值,latitude代表纬度,dd.ddddd代表纬度值。The geoinfo in this field represents geographic location information, longitude represents longitude, dd.ddddd represents longitude value, latitude represents latitude, and dd.ddddd represents latitude value.

可选地,移动终端接收呈现服务器下发的其他移动终端的地理位置信息包括:Optionally, the mobile terminal receiving the geographic location information of other mobile terminals delivered by the presence server includes:

移动终端接收呈现服务器下发的状态通知消息,并从状态通知消息中解析获取其他移动终端的地理位置信息。移动终端可以通过修改上述增强型地址簿的方式对地理位置进行更新。The mobile terminal receives the status notification message delivered by the presence server, and parses the status notification message to obtain geographic location information of other mobile terminals. The mobile terminal can update the geographic location by modifying the enhanced address book.

根据本实施例的移动终端间共享地理位置的方法,通过将移动终端地理位置信息添加到状态发布消息中,并向呈现服务器发布,呈现服务器接收该状态发布消息,从中提取地理位置信息,然后将该地理位置信息添加到状态消息中,并将状态通知消息下发到各好友终端。According to the method for sharing geographic location between mobile terminals in this embodiment, the geographic location information of the mobile terminal is added to the status release message and released to the presence server, and the presence server receives the status release message, extracts the geographic location information from it, and then sends the The geographic location information is added to the status message, and the status notification message is sent to each friend terminal.

实施例七Embodiment seven

本实施例提供一种呈现服务器。该呈现服务器用于执行上述实施例的移动终端间共享地理位置的方法。This embodiment provides a presence server. The presence server is used to implement the method for sharing geographic location between mobile terminals in the above embodiment.

如图3所示,为根据本实施例的呈现服务器的结构示意图。该呈现服务器300包括位置更新模块301、好友查询模块302和状态推送模块303。As shown in FIG. 3 , it is a schematic structural diagram of the presence server according to this embodiment. Thepresence server 300 includes alocation update module 301 , afriend query module 302 and astatus push module 303 .

其中,位置更新模块301用于接收移动终端310上报的地理位置信息,并进行更新;好友查询模块302与位置更新模块301连接,用于在授权列表中查找移动终端310授权的好友终端320;状态推送模块303分别与位置更新模块301和好友查询模块302连接,用于将更新后的地理位置信息下发给好友终端320,以触发好友终端320进行好友位置信息的本地更新。Wherein, thelocation update module 301 is used to receive the geographic location information reported by themobile terminal 310, and update it; thefriend query module 302 is connected with thelocation update module 301, and is used to search thefriend terminal 320 authorized by themobile terminal 310 in the authorized list; Thepush module 303 is respectively connected with thelocation update module 301 and thefriend query module 302, and is used for sending the updated geographic location information to thefriend terminal 320, so as to trigger thefriend terminal 320 to update the friend location information locally.

上述授权列表可以设置在好友查询模块302中,也可以单独存储在其它装置内,当需要查询好友授权列表时,由好友查询模块302进行查询。本实施例中以好友授权列表设置在好友查询模块302中进行说明。The above-mentioned authorization list can be set in thefriend query module 302, or can be stored separately in other devices. When the friend authorization list needs to be queried, thefriend query module 302 can perform the query. In this embodiment, the friend authorization list is set in thefriend query module 302 for illustration.

根据本实施例的呈现服务器300,移动终端310通过上报地理位置信息,再由该呈现服务器300向好友终端320发送更新后的地理位置信息,也就是说,移动终端310只需要完成一次更新地理位置信息的操作,好友终端320就可以获取到该移动终端310更新后的地理位置信息,对于移动终端310非常便利,节省了大量的人力和物力。According to thepresence server 300 of this embodiment, themobile terminal 310 reports the geographic location information, and then thepresence server 300 sends the updated geographic location information to thefriend terminal 320, that is, themobile terminal 310 only needs to update the geographic location once. Information operation, thebuddy terminal 320 can obtain the updated geographic location information of themobile terminal 310, which is very convenient for themobile terminal 310 and saves a lot of manpower and material resources.

可选地,该呈现服务器300还包括授权接收模块304,该授权接收模块304用于接收移动终端310发送的授权指示命令,并根据授权指示命令在移动终端310的授权列表中添加、变更或删除好友终端,授权接收模块304将变更结果发送到好友查询模块302。这样,移动终端310可以根据实际需要自行设定能够接收自身的当前地理位置信息的好友终端。Optionally, thepresence server 300 further includes anauthorization receiving module 304, which is configured to receive an authorization indication command sent by themobile terminal 310, and add, change or delete the authorization list in themobile terminal 310 according to the authorization indication command For the friend terminal, theauthorization receiving module 304 sends the change result to thefriend query module 302 . In this way, themobile terminal 310 can set a friend terminal capable of receiving its own current geographic location information according to actual needs.

实施例八Embodiment Eight

本实施例提供一种移动终端,该移动终端用于执行上述移动终端间共享地理位置的方法。This embodiment provides a mobile terminal, which is used to execute the above method for sharing geographic location between mobile terminals.

如图4所示,为根据本实施例的移动终端的结构示意图。该移动终端400包括位置上报模块401、位置接收模块402、位置添加模块403和位置呈现模块404。As shown in FIG. 4 , it is a schematic structural diagram of a mobile terminal according to this embodiment. The mobile terminal 400 includes a location reporting module 401 , a location receiving module 402 , a location adding module 403 and a location presentation module 404 .

其中,位置上报模块401用于向呈现服务器410上报自身的地理位置信息;信息接收模块402用于接收呈现服务器410下发的其他移动终端的地理位置信息;位置添加模块403与信息接收模块402连接,用于按照地址簿中的好友终端标识,将下发的地理位置信息对应添加到本地存储器中;位置呈现模块403用于当接收到好友查询命令时,按照好友查询命令中的好友终端标识在本地存储器中调取对应的地理位置信息。Wherein, the location reporting module 401 is used to report the geographic location information of itself to the presence server 410; the information receiving module 402 is used to receive the geographic location information of other mobile terminals issued by the presence server 410; the location adding module 403 is connected to the information receiving module 402 , used to correspondingly add the issued geographic location information to the local memory according to the friend terminal ID in the address book; the position presenting module 403 is used to, when receiving the friend query command, place the location information according to the friend terminal ID in the friend query command The corresponding geographic location information is retrieved from the local storage.

根据本实施例的移动终端400,当移动终端的地理位置信息变更时,通过该移动终端400向呈现服务器410上报自身的地理位置信息,以通过呈现服务器410向各好友终端发送,以及接收其他终端的地理位置信息,当需要进行查询时能够直接从本地存储器中直接读取,从而避免了传统技术中需要分别向各好友终端发送更新后的地理位置信息而浪费了大量人力和财力的缺陷。According to the mobile terminal 400 of this embodiment, when the geographic location information of the mobile terminal changes, the mobile terminal 400 reports its own geographic location information to the presence server 410, so as to send to each friend terminal through the presence server 410, and receive other terminals The geographic location information can be directly read from the local storage when a query is required, thereby avoiding the defect of wasting a lot of manpower and financial resources in the traditional technology that needs to send updated geographic location information to each friend terminal respectively.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (10)

CN2012100176940A2012-01-192012-01-19Method for sharing geographical position between mobile terminals, presence server and mobile terminalPendingCN102595310A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2012100176940ACN102595310A (en)2012-01-192012-01-19Method for sharing geographical position between mobile terminals, presence server and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2012100176940ACN102595310A (en)2012-01-192012-01-19Method for sharing geographical position between mobile terminals, presence server and mobile terminal

Publications (1)

Publication NumberPublication Date
CN102595310Atrue CN102595310A (en)2012-07-18

Family

ID=46483433

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2012100176940APendingCN102595310A (en)2012-01-192012-01-19Method for sharing geographical position between mobile terminals, presence server and mobile terminal

Country Status (1)

CountryLink
CN (1)CN102595310A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102857410A (en)*2012-09-122013-01-02腾讯科技(深圳)有限公司Method and device for notification of instant messaging information
CN103024670A (en)*2012-12-172013-04-03深圳市诺威达科技有限公司Position sharing method and system
CN103278823A (en)*2013-04-242013-09-04深圳北斗位途信息科技有限公司Position sharing method and ground processing device based on Beidou satellite
CN103747140A (en)*2014-01-082014-04-23惠州Tcl移动通信有限公司Method and system of obtaining motion information of friends under same motion mode
CN103888535A (en)*2014-03-252014-06-25天脉聚源(北京)传媒科技有限公司Position information processing method and system based on wechat platform
CN104426972A (en)*2013-09-022015-03-18腾讯科技(深圳)有限公司Terminal position sharing method and device
CN104811423A (en)*2014-01-242015-07-29腾讯科技(深圳)有限公司Position information sharing method and position information sharing device
CN105390012A (en)*2015-11-062016-03-09郭少方Vehicle positioning system and method
CN105472726A (en)*2014-08-292016-04-06小米科技有限责任公司Position determination method and device
CN105490923A (en)*2015-12-222016-04-13重庆智韬信息技术中心Method for realizing position security monitoring by use of social tool
CN105634928A (en)*2016-02-162016-06-01北京小米移动软件有限公司Social reminding method and device based on wearable device
CN105871826A (en)*2016-03-282016-08-17乐视控股(北京)有限公司Method and device for sharing geographic position between terminals
CN106131779A (en)*2016-06-152016-11-16乐视控股(北京)有限公司Fellow searching method and device
CN106209567A (en)*2015-04-292016-12-07阿里巴巴集团控股有限公司The method and device of user state information is provided
WO2017201714A1 (en)*2016-05-262017-11-30华为技术有限公司Method, device and system for sharing position information
CN108628962A (en)*2018-04-172018-10-09四川斐讯信息技术有限公司A kind of method and system for searching Intelligent target terminal
CN109982269A (en)*2019-02-192019-07-05安徽智融景和科技有限公司Information sharing amalgamation media delivery system
CN111625729A (en)*2020-06-022020-09-04即时匹配(上海)网络科技有限公司Method and system for automatically recommending friends based on position information
CN119729344A (en)*2024-12-132025-03-28中移互联网有限公司Method, device, equipment, medium and product for transmitting position information

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101646126A (en)*2009-08-282010-02-10宇龙计算机通信科技(深圳)有限公司Service and mobile terminals, and position sharing method and system based on mobile packets
CN101720055A (en)*2009-11-182010-06-02华为终端有限公司Method and mobile terminal for prompting geographical position of contact person
CN101742639A (en)*2008-11-252010-06-16中国联合网络通信集团有限公司Method and system for sharing multi-terminal position
CN101848428A (en)*2009-03-282010-09-29华为技术有限公司Method and device for providing position information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101742639A (en)*2008-11-252010-06-16中国联合网络通信集团有限公司Method and system for sharing multi-terminal position
CN101848428A (en)*2009-03-282010-09-29华为技术有限公司Method and device for providing position information
CN101646126A (en)*2009-08-282010-02-10宇龙计算机通信科技(深圳)有限公司Service and mobile terminals, and position sharing method and system based on mobile packets
CN101720055A (en)*2009-11-182010-06-02华为终端有限公司Method and mobile terminal for prompting geographical position of contact person

Cited By (25)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102857410A (en)*2012-09-122013-01-02腾讯科技(深圳)有限公司Method and device for notification of instant messaging information
CN102857410B (en)*2012-09-122016-03-02腾讯科技(深圳)有限公司A kind of instant communication information Notification Method and device
CN103024670A (en)*2012-12-172013-04-03深圳市诺威达科技有限公司Position sharing method and system
CN103278823A (en)*2013-04-242013-09-04深圳北斗位途信息科技有限公司Position sharing method and ground processing device based on Beidou satellite
CN103278823B (en)*2013-04-242014-12-17深圳北斗位途信息科技有限公司Position sharing method and ground processing device based on Beidou satellite
CN104426972A (en)*2013-09-022015-03-18腾讯科技(深圳)有限公司Terminal position sharing method and device
CN103747140B (en)*2014-01-082017-03-29惠州Tcl移动通信有限公司A kind of method and system for obtaining good friend's movable information under same movement pattern
CN103747140A (en)*2014-01-082014-04-23惠州Tcl移动通信有限公司Method and system of obtaining motion information of friends under same motion mode
CN104811423B (en)*2014-01-242019-03-01腾讯科技(深圳)有限公司The sharing method and device of location information
CN104811423A (en)*2014-01-242015-07-29腾讯科技(深圳)有限公司Position information sharing method and position information sharing device
CN103888535A (en)*2014-03-252014-06-25天脉聚源(北京)传媒科技有限公司Position information processing method and system based on wechat platform
CN105472726A (en)*2014-08-292016-04-06小米科技有限责任公司Position determination method and device
CN105472726B (en)*2014-08-292020-06-02北京小米移动软件有限公司Position determination method and device
CN106209567A (en)*2015-04-292016-12-07阿里巴巴集团控股有限公司The method and device of user state information is provided
CN105390012A (en)*2015-11-062016-03-09郭少方Vehicle positioning system and method
CN105490923A (en)*2015-12-222016-04-13重庆智韬信息技术中心Method for realizing position security monitoring by use of social tool
CN105634928A (en)*2016-02-162016-06-01北京小米移动软件有限公司Social reminding method and device based on wearable device
CN105634928B (en)*2016-02-162018-12-25北京小米移动软件有限公司Social based reminding method and device based on wearable device
CN105871826A (en)*2016-03-282016-08-17乐视控股(北京)有限公司Method and device for sharing geographic position between terminals
WO2017201714A1 (en)*2016-05-262017-11-30华为技术有限公司Method, device and system for sharing position information
CN106131779A (en)*2016-06-152016-11-16乐视控股(北京)有限公司Fellow searching method and device
CN108628962A (en)*2018-04-172018-10-09四川斐讯信息技术有限公司A kind of method and system for searching Intelligent target terminal
CN109982269A (en)*2019-02-192019-07-05安徽智融景和科技有限公司Information sharing amalgamation media delivery system
CN111625729A (en)*2020-06-022020-09-04即时匹配(上海)网络科技有限公司Method and system for automatically recommending friends based on position information
CN119729344A (en)*2024-12-132025-03-28中移互联网有限公司Method, device, equipment, medium and product for transmitting position information

Similar Documents

PublicationPublication DateTitle
CN102595310A (en)Method for sharing geographical position between mobile terminals, presence server and mobile terminal
US8694019B2 (en)Method and devices for facilitating the location of a mobile electronic device
KR101820198B1 (en)Service processing method and apparatus based on location information
CN102546656B (en)Method, system and device for finding user in social network
US20170164156A1 (en)Systems and methods for locating a tracking device
EP2345263A1 (en)A method of triggering location based events in a user equipment
CN103458354A (en)Position-based group generation method, device and system
CN107534837A (en)Location-based based reminding method, instruction equipment, alert device and mobile terminal
WO2011120247A1 (en)Mobile terminal, application server, method and system for application-pushing
WO2013075583A1 (en)Method, device and storage medium for adding friends
US10574806B2 (en)Mobile terminal, method and device for adding and sharing contact
JP2016194797A (en)Terminal device, information processing method, and program
KR101045822B1 (en) Electronic business card processing method using a mobile terminal, the system and the computer-readable recording medium recording the program
CN103167401A (en)Method and system for building user relationship based on mobile internet
KR20140020332A (en)Method and system for acquiring user content
US20150099545A1 (en)Location information-based communication apparatus and method, and location information-based communication application apparatus
JP2016126564A (en)Method and system for preventing improper use of electronic ticket
KR20130127730A (en)Method and system for providing shop information service having real time listing
CN107079262B (en)Interaction method based on geographic position information, cloud server, playing device and system
JP5548814B1 (en) Safety confirmation system
US20210251027A1 (en)Peer to peer communication system
CN102081676A (en)Mobile wireless network based map analytic method by virtue of remote server
CN104050194A (en)Method, equipment and system for searching target
CN104280027A (en)Multi-user map display method, device and system
CN101572853A (en)Real-time communication module capable of positioning contact person and method thereof

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C12Rejection of a patent application after its publication
RJ01Rejection of invention patent application after publication

Application publication date:20120718


[8]ページ先頭

©2009-2025 Movatter.jp