Methods, devices, equipment, media and products for transmitting location information
By acquiring and updating the location information of the terminal device in real time through the target device's positioning system, and sending it directly after detecting authorization information, the problem of complex acquisition of terminal device location information by message application devices is solved, transmission efficiency is improved, and the application of 5G messaging in group user service scenarios is supported.
Patent Information
- Application Number
- CN202411859882.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-12-13
AI Technical Summary
In existing technologies, the process of obtaining location information of terminal devices by messaging application devices is complex, resulting in low location information transmission efficiency and making it difficult to apply to location-based group user service scenarios such as emergency notifications, community services, and government services.
By pre-storing the location information corresponding to the preset terminal device identifier in the target device's positioning system, the location information of the terminal device is obtained and updated in real time. When a location acquisition request is received from a message application device, the real-time location information of the terminal device is sent directly after the authorization information is detected, thus simplifying the authorization process.
It improves the transmission efficiency of location information, supports the application of 5G messaging in location-based group user service scenarios, and enhances user experience and service efficiency.
Smart Images

Figure CN119729344B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of Internet communication technology, and in particular relates to a method, apparatus, device, medium and product for transmitting location information. Background Technology
[0002] With the continuous evolution of communication technology, the arrival of the 5G era has brought new convenience to messaging services. 5G messaging, as a comprehensive upgrade of the original basic SMS service by operators, supports individual users sending and receiving multimedia, location information, and more on 5G messaging terminal devices.
[0003] In existing technologies, when a messaging application device (such as a device including a chatbot application) needs to send or provide location-based messages or services, it must first send a location acquisition request to the terminal device. The terminal device then responds to the location acquisition request and obtains its own location information. Only after receiving authorization information input by the user can the messaging application device receive the location information sent by the terminal device and send messages or provide services. However, the process of the messaging application device obtaining the terminal device's location information is relatively complex, and the transmission efficiency of location information is low. Summary of the Invention
[0004] This application provides a method, apparatus, device, medium, and product for transmitting location information. Through a positioning system in a target device, the location information of a terminal device is acquired in real time and updated. Upon receiving a location acquisition request from a messaging application device, in response to the request, first authorization information corresponding to a first terminal device identifier is detected. If the first authorization information is detected, the location information corresponding to the first terminal device identifier is sent to the messaging application device. This method can send the real-time location information of the terminal device to the messaging application device without requiring separate user authorization, thus improving the efficiency of location information transmission.
[0005] In a first aspect, embodiments of this application provide a method for transmitting location information, applied to a target device, the target device including a positioning system, the positioning system pre-stores location information corresponding to a preset terminal device identifier, the preset terminal device identifier including a first terminal device identifier; the method includes:
[0006] The system receives a registration instruction sent by a terminal device. The registration instruction includes a target terminal device identifier and first location information. The registration instruction request is sent by the terminal device corresponding to the target terminal device identifier when it detects a change in the area information of the area it is in. The target terminal device identifier can be any one of the preset terminal device identifiers.
[0007] Update the pre-stored location information corresponding to the target terminal device identifier to the first location information;
[0008] Upon receiving a location acquisition request sent by a messaging application device, in response to the location acquisition request, the first authorization information corresponding to the first terminal device identifier is detected, and the location acquisition request includes the first terminal device identifier;
[0009] Upon detecting the first authorization information, obtain the location information corresponding to the first terminal device identifier;
[0010] Send the location information corresponding to the first terminal device identifier to the messaging application device.
[0011] In one possible implementation, after updating the location information corresponding to the pre-stored target terminal device identifier to the first location information, the method further includes:
[0012] Send the first response information to the terminal device corresponding to the target terminal device identifier.
[0013] In one possible implementation, after detecting the first authorization information corresponding to the first terminal device identifier, the method further includes:
[0014] If no first authorization information is detected, a first authorization acquisition request for the first authorization information is generated;
[0015] Send a first authorization request to the terminal device corresponding to the first terminal device identifier;
[0016] Receive the first authorization information sent by the terminal device corresponding to the first terminal device identifier.
[0017] In one possible implementation embodiment, it further includes:
[0018] The receiving application device sends a first area reach request, which includes first area information and a first information template identifier;
[0019] In response to the first area reach request, based on the location information corresponding to the preset terminal device identifier, the second terminal device identifier of the terminal device located in the first area is determined, where the first area is the area corresponding to the first area information;
[0020] The first information template is used to identify the corresponding information template to generate the first notification information;
[0021] Send the first notification information to the terminal device corresponding to the second terminal device identifier.
[0022] In one possible implementation, after sending the first notification information to the terminal device corresponding to the second terminal device identifier, the method further includes:
[0023] Receive the second response information sent by the terminal device corresponding to the second terminal device identifier;
[0024] Send a second response message to the messaging application device.
[0025] In one possible implementation embodiment, it further includes:
[0026] The receiving application device sends a second area reach request, which includes a target area identifier and a second information template identifier.
[0027] In response to the second region reach request, the second region information corresponding to the target region identifier is determined based on the relationship information between the preset region identifier and the preset region information;
[0028] Based on the location information corresponding to the preset terminal device identifier, the third terminal device identifier of the terminal device located in the second area is determined, and the second area is the area corresponding to the second area information;
[0029] The second information template is used to identify the corresponding information template to generate the second notification information;
[0030] Send a second notification message to the terminal device corresponding to the third terminal device identifier.
[0031] In one possible implementation, the target terminal device identifier includes a fourth terminal device identifier; after receiving the registration instruction sent by the terminal device, the method further includes:
[0032] If only one location is located in the third region between the location information corresponding to the fourth terminal device identifier and the location corresponding to the first location information, the second authorization information corresponding to the fourth terminal device identifier is detected.
[0033] Upon detecting the second authorization information, location monitoring information is sent to the messaging application device. The location monitoring information includes the fourth terminal device identifier and the first location information.
[0034] Receive the first event notification request sent by the message application device;
[0035] In response to the first event notification request, a third notification message is sent to the terminal device corresponding to the fourth terminal device identifier.
[0036] In one possible implementation, before receiving the registration instruction sent by the terminal device, the method further includes:
[0037] The receiving application device sends a first location monitoring subscription request, which includes third area information of the third area and fourth terminal device identifier.
[0038] In response to the first location monitoring subscription request, a second authorization acquisition request is generated to obtain the second authorization information;
[0039] Send a second authorization request to the terminal device corresponding to the fourth terminal device identifier;
[0040] Receive the second authorization information sent by the terminal device corresponding to the fourth terminal device identifier.
[0041] In one possible implementation embodiment, it further includes:
[0042] The receiving application device sends a second location monitoring subscription request, which includes information about the fourth region and time information for a preset time period.
[0043] Obtain historical location information corresponding to a preset terminal device identifier within a preset time period;
[0044] If only some of the locations corresponding to the historical location information corresponding to the fifth terminal device identifier are located in the fourth region, then a fourth notification message is sent to the terminal device corresponding to the fifth terminal device identifier.
[0045] In one possible implementation embodiment, if only a portion of the locations corresponding to the historical location information corresponding to the fifth terminal device identifier are located in the fourth region, after sending the fourth notification information to the terminal device corresponding to the fifth terminal device identifier, the method further includes:
[0046] Receive the third response information sent by the terminal device corresponding to the fifth terminal device identifier;
[0047] Send a third response message to the messaging application device.
[0048] Secondly, embodiments of this application provide a location information transmission device applied to a target device, the target device including a positioning system, the positioning system pre-stores location information corresponding to a preset terminal device identifier, the preset terminal device identifier including a first terminal device identifier; the device includes:
[0049] The receiving module is used to receive a registration instruction sent by a terminal device. The registration instruction includes a target terminal device identifier and first location information. The registration instruction request is sent by the terminal device corresponding to the target terminal device identifier when it detects a change in the area information of the area it is in. The target terminal device identifier is any one of the preset terminal device identifiers.
[0050] The update module is used to update the pre-stored location information corresponding to the target terminal device identifier to the first location information;
[0051] The detection module is used to detect the first authorization information corresponding to the first terminal device identifier in response to the location acquisition request when a location acquisition request is received from a message application device. The location acquisition request includes the first terminal device identifier.
[0052] The acquisition module is used to acquire the location information corresponding to the first terminal device identifier when the first authorization information is detected;
[0053] The sending module is used to send the location information corresponding to the first terminal device identifier to the messaging application device.
[0054] Thirdly, embodiments of this application provide an electronic device, the device comprising:
[0055] Processor and memory storing computer program instructions;
[0056] A method for transmitting location information that enables any of the above-mentioned features when a processor executes computer program instructions.
[0057] Fourthly, embodiments of this application provide a computer storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, a method for transmitting location information as described above is implemented.
[0058] Fifthly, embodiments of this application provide a computer program product, characterized in that, when the instructions in the computer program product are executed by the processor of an electronic device, the electronic device is able to execute any of the above-mentioned location information transmission methods.
[0059] This application discloses a method, apparatus, device, medium, and product for transmitting location information. The method is applied to a target device, which includes a positioning system. The positioning system pre-stores location information corresponding to a preset terminal device identifier, which includes a first terminal device identifier. The method includes: receiving a registration instruction sent by a terminal device, the registration instruction including a target terminal device identifier and the first location information. The registration instruction request is issued by the terminal device corresponding to the target terminal device identifier when it detects a change in the area information of its current location. The target terminal device identifier is any one of the preset terminal device identifiers. The method also includes: updating the pre-stored location information corresponding to the target terminal device identifier to the first location information; upon receiving a location acquisition request sent by a messaging application device, responding to the location acquisition request by detecting first authorization information corresponding to the first terminal device identifier, the location acquisition request including the first terminal device identifier; upon detecting the first authorization information, acquiring the location information corresponding to the first terminal device identifier; and sending the location information corresponding to the first terminal device identifier to the messaging application device.
[0060] In this way, the location information of the terminal device can be obtained in real time through the positioning system in the target device and the location information can be updated. When a location acquisition request is received from the messaging application device, the first authorization information corresponding to the first terminal device identifier is detected in response to the location acquisition request. If the first authorization information is detected, the location information corresponding to the first terminal device identifier is sent to the messaging application device. Real-time location information of the terminal device can be sent to the messaging application device without separate authorization from the user, which improves the transmission efficiency of location information. Attached Figure Description
[0061] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0062] Figure 1 This is a schematic flowchart of a location information transmission method provided in one embodiment of this application;
[0063] Figure 2 This is a flowchart illustrating a location information transmission method provided in another embodiment of this application;
[0064] Figure 3 This is a flowchart illustrating a location information transmission method according to another embodiment of this application;
[0065] Figure 4 This is a schematic flowchart of a location information transmission method provided in another embodiment of this application;
[0066] Figure 5 This is a schematic flowchart of a location information transmission method provided in another embodiment of this application;
[0067] Figure 6 This is a schematic flowchart of a location information transmission method provided in another embodiment of this application;
[0068] Figure 7 This is a schematic diagram illustrating an application scenario of the location information transmission method provided in another embodiment of this application;
[0069] Figure 8 This is a schematic diagram of the structure of a location information transmission device provided in another embodiment of this application;
[0070] Figure 9 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. Detailed Implementation
[0071] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0072] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0073] With the continuous evolution of communication technology, the arrival of the 5G era has brought new convenience to messaging services. 5G messaging, as a comprehensive upgrade of the original basic SMS service by operators, supports individual users sending and receiving multimedia, location information, and more on 5G messaging terminal devices.
[0074] In existing technologies, when a messaging application device (such as a device including a chatbot application) needs to send or provide location-based messages or services, it must first send a location acquisition request to the terminal device. The terminal device then responds to the location acquisition request and obtains its own location information. Only after receiving authorization information input by the user can the messaging application device receive the location information sent by the terminal device and send messages or provide services. However, the process of the messaging application device obtaining the terminal device's location information is relatively complex, and the transmission efficiency of location information is low.
[0075] Due to the lack of systematic, comprehensive, and real-time user location data, current 5G messaging is difficult to apply to location-based group user service scenarios, such as emergency notifications, community services, government services, and business travel information.
[0076] To address the problems of existing technologies, embodiments of this application provide a method, apparatus, device, medium, and product for transmitting location information. The location information transmission method provided in this application is applied to a target device, which includes a positioning system. The positioning system pre-stores location information corresponding to a preset terminal device identifier, which includes a first terminal device identifier. The positioning system in the target device acquires and updates the location information of the terminal device in real time. Upon receiving a location acquisition request from a messaging application device, in response to the request, it detects first authorization information corresponding to the first terminal device identifier. If the first authorization information is detected, the location information corresponding to the first terminal device identifier is sent to the messaging application device. This method can send the real-time location information of the terminal device to the messaging application device without requiring separate user authorization, thus improving the transmission efficiency of location information. Here, the positioning system refers to a 5G messaging real-time positioning system.
[0077] The location information transmission method provided in the embodiments of this application will be described below. Figure 1 A schematic flowchart of a location information transmission method provided in one embodiment of this application is shown.
[0078] like Figure 1 As shown, the location information transmission method provided in this application includes the following steps.
[0079] S110. Receive a registration instruction sent by a terminal device. The registration instruction includes a target terminal device identifier and first location information. The registration instruction request is sent by the terminal device corresponding to the target terminal device identifier when it detects a change in the area information of the area it is in. The target terminal device identifier is any one of the preset terminal device identifiers.
[0080] Here, the registration command is the REGISTER command. It's important to note that REGISTER is a request message type used in various communication protocols and network service scenarios to indicate to a server or other management entity that a user (or device) wishes to register. This request typically contains relevant information about the user or device, with the aim of establishing a valid identity record in the system so that they can subsequently use related services or resources.
[0081] Specifically, the terminal device is equipped with a location awareness module and a 5G messaging module. When the location awareness module detects a change in the tracking area of the base station connected to the terminal device, i.e., a change in the Tracking Area Code (TAC) / Location Area Code (LAC), it actively triggers a Session Initiation Protocol (SIP) registration command, sending the current location information, i.e., the primary location information, including at least the terminal device's TAC / LAC, latitude and longitude information, and Cell ID (Cell Identity), to the 5G messaging module. The 5G messaging module then initiates a REGISTER registration command, adding parameters to the Access Network Information (P-Access-Network-info) header field, including the terminal device's TAC / LAC, latitude and longitude information, and Cell ID, registering the terminal device's primary location information to the 5G messaging area 5GMC. The 5GMC adds a real-time location information transparent transmission interface, which transmits the first location information of the terminal device in the SIM registration information (including the target terminal device identifier, TAC / LAC, latitude and longitude information, and CellID) to the 5G message real-time positioning system.
[0082] It's important to note that the Base Station Tracking Area (TSA) is a crucial concept in mobile communication networks, used for location management and paging. In LTE and 5G networks, a TSA is a geographical area comprised of multiple base station cells, used for the location management of a terminal device (UE). When a UE moves within the TSA, the network tracks and manages its location through the TSA, thereby reducing frequent location updates and signaling overhead.
[0083] S120. Update the location information corresponding to the pre-stored target terminal device identifier to the first location information.
[0084] Here, the pre-stored location information corresponding to the target terminal device identifier is the location information received by the positioning system when the area information of the area where the target terminal device was last located changed.
[0085] In some embodiments, the 5G message real-time positioning system includes a location acquisition module, which updates the pre-stored location information corresponding to the target terminal device identifier to the first location information, so as to realize the real-time updating of the location information of the terminal device.
[0086] S130. Upon receiving a location acquisition request sent by a message application device, in response to the location acquisition request, detect the first authorization information corresponding to the first terminal device identifier, wherein the location acquisition request includes the first terminal device identifier.
[0087] In some embodiments, the messaging application device can obtain the current location of the terminal device through a 5G messaging real-time positioning system. The messaging application device sends a location acquisition request to the target device, the location acquisition request carrying parameters such as a first terminal device identifier. Here, the location acquisition request can be a one-time or periodic interface request.
[0088] In some embodiments, the 5G messaging real-time location system further includes a capability opening module and an authorization management module. When the capability opening module receives a location acquisition request from a messaging application device, in response to the location acquisition request, the capability opening module requests first authorization information corresponding to a first terminal device identifier from the authorization management module. The authorization management module determines whether the first terminal device identifier in the request is authorized.
[0089] Here, authorization information is recorded in the database through the authorization management module.
[0090] S140. If the first authorization information is detected, obtain the location information corresponding to the first terminal device identifier.
[0091] Here, the first authorization information is the authorization information corresponding to the first terminal device identifier.
[0092] In some embodiments, the 5G message real-time location system further includes a real-time location module. If the authorization management module determines that the first terminal device identifier in the request has been authorized, i.e., it detects the first authorization information from the database, the authorization management module returns the first authorization information to the capability opening module. Based on the first authorization information, the capability opening module initiates a device current location request to the real-time location module, and the real-time location module returns the location information corresponding to the first terminal device identifier. The location information returned by the real-time location module is the latest location information of the terminal device, i.e., the last received location information. After the location acquisition module updates the location information, it synchronizes it to the real-time location module.
[0093] S150: Send the location information corresponding to the first terminal device identifier to the messaging application device.
[0094] In some embodiments, the location information corresponding to the first terminal device identifier is returned to the messaging application device through the capability opening module.
[0095] In this way, the location information of the terminal device can be obtained in real time through the positioning system in the target device and the location information can be updated. When a location acquisition request is received from the messaging application device, the first authorization information corresponding to the first terminal device identifier is detected in response to the location acquisition request. If the first authorization information is detected, the location information corresponding to the first terminal device identifier is sent to the messaging application device. Real-time location information of the terminal device can be sent to the messaging application device without separate authorization from the user, which improves the transmission efficiency of location information.
[0096] Based on this, in some embodiments, after S120 described above, the method may further include:
[0097] Send the first response information to the terminal device corresponding to the target terminal device identifier.
[0098] Here, the first response information is pre-set.
[0099] In some embodiments, the first response information indicates that the 5G message real-time positioning system has synchronized the location of the terminal device corresponding to the target terminal device identifier.
[0100] In some embodiments, if the location update fails, a prompt message is sent to the terminal device corresponding to the target terminal device identifier, indicating that the location update of the terminal device corresponding to the target terminal device identifier has failed, so that the terminal device corresponding to the target terminal device identifier can send the registration instruction again.
[0101] In this way, after synchronizing the location of the terminal device corresponding to the target terminal device identifier, a first response message is sent to the terminal device corresponding to the target terminal device identifier to notify the terminal device corresponding to the target terminal device identifier that the 5G message real-time positioning system has received the latest location.
[0102] Based on this, in some embodiments, such as Figure 2 As shown, corresponding to S140 above, after S130 above, the method may further include:
[0103] S141. If no first authorization information is detected, generate a first authorization acquisition request for the first authorization information;
[0104] S142. Send a first authorization acquisition request to the terminal device corresponding to the first terminal device identifier;
[0105] S143. Receive the first authorization information sent by the terminal device corresponding to the first terminal device identifier.
[0106] Specifically, the target device also includes the 5G messaging service system. The authorization management module generates a first authorization request for the first authorization information. This request is triggered by the authorization management module through the location service Chatbot and flows through the regional Maap and 5GMC to the terminal device corresponding to the first terminal device identifier. Upon receiving the first authorization request, the terminal device confirms authorization by having the user click the 5G message button or reply to the message. A message receipt containing the first authorization information then travels through the regional Maap and 5GMC to the 5G messaging service system, which then transmits the first authorization information to the authorization management module of the 5G messaging real-time location system.
[0107] In some embodiments, the authorization management module records the authorization status to the database and returns the authorization status to the capability opening module.
[0108] In this way, even without authorization information from the terminal device, a first authorization request can be sent to the terminal device corresponding to the first terminal device identifier to obtain authorization information and provide real-time location services for the messaging application device.
[0109] Based on this, in some embodiments, such as Figure 3 As shown, the method may also include the following steps.
[0110] S210, Receive a first area reach request sent by the message application device, the first area reach request including first area information and first information template identifier.
[0111] Here, the first region information includes a list of region latitude and longitude coordinates. Requests to reach the first region can be one-time or periodic API requests.
[0112] In some embodiments, a first regional outreach request is received from a messaging application device via a 5G messaging service system. The first regional outreach request is a regional population message outreach request.
[0113] S220. In response to the first area reach request, based on the location information corresponding to the preset terminal device identifier, determine the second terminal device identifier of the terminal device located in the first area, wherein the first area is the area corresponding to the first area information.
[0114] In some embodiments, the 5G messaging service system invokes the 5G messaging real-time location system to request a second terminal device identifier from the capability opening module of terminal devices located within a first area. The 5G messaging real-time location system also includes a regional population location module. The capability opening module of the 5G messaging real-time location system obtains the second terminal device identifiers of terminal devices located within the first area from the regional population location module. Based on the regional latitude and longitude list in the first area information, the regional population location module returns the filtered second terminal device identifiers to the capability opening module. The 5G messaging real-time location system then returns the second terminal device identifiers to the 5G messaging service system.
[0115] S230. Using the first information template identifier, generate the first notification information.
[0116] Here, the information template corresponding to the first information template identifier is pre-set.
[0117] As an example, the message template is "You have arrived at XXX", where XXX is the area identifier.
[0118] S240: Send the first notification information to the terminal device corresponding to the second terminal device identifier.
[0119] Here, the first notification information is pre-set and may include the identifier of the area corresponding to the first area information, such as its name.
[0120] In some embodiments, the 5G messaging service system sends a group message based on the information template corresponding to the second terminal device identifier and the first information template identifier, and sends the first notification message to the terminal device corresponding to the second terminal device identifier through the region (Maap, 5GMC).
[0121] In this way, when the terminal device arrives at the target area, the target device can also notify the terminal device to remind the user of the area they are in, thus improving the user experience.
[0122] Based on this, in some embodiments, after S240 described above, the method may further include:
[0123] Receive the second response information sent by the terminal device corresponding to the second terminal device identifier;
[0124] Send a second response message to the messaging application device.
[0125] Here, the second response information is pre-set.
[0126] In some embodiments, the first response information indicates that the terminal device corresponding to the second terminal device identifier has received the first notification information.
[0127] In some embodiments, if no second response information is received from the terminal device corresponding to the second terminal device identifier within a preset time period, the first notification information is sent to the terminal device corresponding to the second terminal device identifier again.
[0128] In this way, by using the second response information sent by the terminal device corresponding to the second terminal device identifier, it can be determined whether the terminal device corresponding to the second terminal device identifier has received the first notification information, so as to ensure the normal operation of the service and improve the user experience.
[0129] Based on this, in some embodiments, the method may further include:
[0130] The receiving application device sends a second area reach request, which includes a target area identifier and a second information template identifier.
[0131] In response to the second region reach request, the second region information corresponding to the target region identifier is determined based on the relationship information between the preset region identifier and the preset region information;
[0132] Based on the location information corresponding to the preset terminal device identifier, the third terminal device identifier of the terminal device located in the second area is determined, and the second area is the area corresponding to the second area information;
[0133] The second information template is used to identify the corresponding information template to generate the second notification information;
[0134] Send a second notification message to the terminal device corresponding to the third terminal device identifier.
[0135] Here, the target area identifier can be an administrative region code. Preset area identifiers include the target area identifier. The second information template identifier is pre-defined and can be the same as or different from the first information template identifier.
[0136] In some embodiments, the 5G messaging service system invokes the 5G messaging real-time location system to determine the second area information corresponding to the target area identifier based on the relationship information between the preset area identifier and preset area information. The system then requests the third terminal device identifier of the terminal devices located within the second area from the capability opening module. The capability opening module obtains the third terminal device identifier of the terminal devices located within the second area from the area population location module. Based on the area latitude and longitude list in the second area information, the area population location module returns the filtered third terminal device identifiers to the capability opening module. The 5G messaging real-time location system then returns the third terminal device identifiers to the 5G messaging service system.
[0137] In some embodiments, the 5G messaging service system sends the second notification information to the terminal device corresponding to the third terminal device identifier based on the information template corresponding to the third terminal device identifier and the second information template identifier, through the region (Maap, 5GMC).
[0138] In this way, regional information can be determined based on the target area identifier. When the terminal device arrives at the target area, the target device can also notify the terminal device to remind the user of the area. The 5G message real-time location system provides regional population message triggering service to improve user experience.
[0139] Therefore, in some embodiments, the target terminal device identifier includes a fourth terminal device identifier; such as Figure 4 As shown, after S110 above, the method may further include the following steps.
[0140] S111. If only one of the locations corresponding to the location information of the fourth terminal device identifier and the location corresponding to the first location information is located in the third area, the second authorization information corresponding to the fourth terminal device identifier is detected.
[0141] In some embodiments, the 5G message real-time positioning system further includes a positioning monitoring subscription module. When a user's location changes, the positioning monitoring subscription module detects whether only one of the locations corresponding to the fourth terminal device identifier and the first location information is located in the third region. If only one of the locations corresponding to the fourth terminal device identifier and the first location information is located in the third region, a specified user roaming in / out event is triggered, at which point the second authorization information corresponding to the fourth terminal device identifier is detected.
[0142] S112. Upon detecting the second authorization information, send location monitoring information to the messaging application device. The location monitoring information includes the fourth terminal device identifier and the first location information.
[0143] In some embodiments, upon detecting the second authorization information, the location monitoring subscription module triggers an event and alerts the capability opening module, which then transmits the fourth terminal device identifier and the first location information to the messaging application device.
[0144] S113, Receive the first event reach request sent by the message application device.
[0145] In some embodiments, after receiving location monitoring information sent by the 5G messaging real-time positioning system, the messaging application device initiates a first event reach request to the 5G messaging service system.
[0146] S114. In response to the first event reach request, send a third notification message to the terminal device corresponding to the fourth terminal device identifier.
[0147] Here, the third notification information is pre-set. The third notification information includes the area identifier of the third area and the direction of change.
[0148] In this way, after authorization by the terminal device, the target device can monitor the location of the terminal device in real time and send a timely notification when it reaches the target area to remind the user of the area and improve the user experience.
[0149] Based on this, in some embodiments, such as Figure 5 As shown, prior to S110 above, the method may further include:
[0150] S101. Receive a first location monitoring subscription request sent by the message application device. The first location monitoring subscription request includes the third area information of the third area and the fourth terminal device identifier.
[0151] S102. In response to the first location monitoring subscription request, generate a second authorization acquisition request for the second authorization information;
[0152] S103. Send a second authorization acquisition request to the terminal device corresponding to the fourth terminal device identifier;
[0153] S104. Receive the second authorization information sent by the terminal device corresponding to the fourth terminal device identifier.
[0154] Here, the identifier for the fourth terminal device is pre-defined. The first location monitoring subscription request can be a one-time or periodic interface request.
[0155] Specifically, the first location monitoring subscription request corresponds to a specified user's roaming in / out area event. The capability opening module initiates an authorization process for the specified user's roaming in / out area event. The authorization management module generates a second authorization acquisition request for the second authorization information. The authorization management module triggers the second authorization acquisition request to the 5G messaging service system via the location service Chatbot. The second authorization acquisition request stream passes through the regional Maap and 5GMC to the terminal device corresponding to the fourth terminal device identifier. Upon receiving the second authorization acquisition request, the terminal device corresponding to the fourth terminal device identifier confirms authorization by the user clicking the 5G message button / replying to the message. The message receipt, including the second authorization information, passes through the regional (Maap, 5GMC) to the 5G messaging service system, which then transparently transmits the second authorization information to the authorization management module of the 5G messaging real-time location system.
[0156] In some embodiments, the authorization management module records authorization information to the database.
[0157] In some embodiments, after authorization, the capability opening module initiates a monitoring subscription request to the location monitoring subscription module; for specific user roaming in / out of the roaming area event, it directly initiates a monitoring subscription request to the location monitoring subscription module. Upon receiving the monitoring subscription request, the location monitoring subscription module starts event monitoring and returns response information to the capability opening module and the messaging application device.
[0158] The second authorization request includes information about the third region.
[0159] In this way, only after the terminal device is authorized can the changes in the terminal device's location be detected and notification information be sent to the terminal device, thus ensuring the security of the terminal device.
[0160] Based on this, in some embodiments, such as Figure 6 As shown, the method may further include:
[0161] S160, Receive a second location monitoring subscription request sent by the message application device. The second location monitoring subscription request includes the fourth area information of the fourth area and the time information of the preset time period.
[0162] S170. Obtain the historical location information corresponding to the preset terminal device identifier within a preset time period;
[0163] S180. If only some of the locations corresponding to the historical location information corresponding to the fifth terminal device identifier are located in the fourth region, send the fourth notification information to the terminal device corresponding to the fifth terminal device identifier.
[0164] Here, the information for the fourth region and the time information for the preset time period are pre-set.
[0165] Specifically, the location monitoring subscription module detects the location information of terminal devices within a preset time period based on the set user location change cycle (daily / monthly / yearly / specified time). When only some locations corresponding to the historical location information of the fifth terminal device identifier are located in the fourth region, triggering a population roaming-in / roaming-out event, the 5G messaging service system's message delivery process is initiated. A notification message is generated using the information template corresponding to the preset information template identifier and sent to the corresponding terminal device.
[0166] In this way, by using the time information of a preset time period, the historical location information of the terminal device in the historical time period can also be detected. If only some of the locations corresponding to the historical location information of the fifth terminal device identifier are located in the fourth area, a fourth notification message is sent to the terminal device corresponding to the fifth terminal device identifier to prompt the user to enter / exit the target area, thereby improving the user experience.
[0167] Based on this, in some embodiments, after S180 described above, the method may further include:
[0168] Receive the third response information sent by the terminal device corresponding to the fifth terminal device identifier;
[0169] Send a third response message to the messaging application device.
[0170] Here, the third response information is pre-set.
[0171] In some embodiments, the third response information indicates that the terminal device corresponding to the fifth terminal device identifier has entered or left the target area.
[0172] In this way, by using the third response information sent by the terminal device corresponding to the fifth terminal device identifier, it can be determined whether the terminal device corresponding to the fifth terminal device identifier has received the fourth notification information, so as to ensure the normal operation of the service and improve the user experience.
[0173] In the embodiments provided in this application, a 5G messaging real-time positioning system is constructed to provide location services for messaging application devices. Based on the location awareness module in the 5G messaging terminal device, the 5G messaging real-time positioning system acquires the terminal device's base station information and latitude and longitude information. When the terminal device's base station information changes, it actively triggers location information acquisition according to a predetermined strategy and transmits it to the 5G messaging real-time positioning system, thereby forming a user real-time location information database. The 5G messaging real-time positioning system provides user location services to messaging application devices and the 5G messaging service system. A specific application scenario diagram is shown below. Figure 7 As shown, it includes a terminal device 310, a target device 320, and a messaging application device 330. The terminal device 310 includes a location awareness module 311 and a 5G messaging module 312. The target device 320 includes a positioning system (5G messaging real-time positioning system) 321 and a 5G messaging service system 322; the positioning system (5G messaging real-time positioning system) 321 specifically includes a location acquisition module 3211, a capability opening module 3212, an authorization management module 3213, a real-time positioning module 3214, a regional population location module 3215, and a location monitoring subscription module 3216.
[0174] Here, the functions of each device, system, and module are as follows:
[0175] The 5G messaging real-time location system 321 includes a location acquisition module 3211, a capability opening module 3212, an authorization management module 3213, a real-time location module 3214, a regional population location module 3215, and a location monitoring subscription module 3216. It is used to maintain the authorization relationship between terminal devices and chatbot applications, and to provide location query interfaces to authorized chatbot applications. The 5G messaging real-time location system 321 may also include a data processing module for secondary processing of location information. The data processing module can map user location information to multi-level administrative regions such as province, city, district / county, street / town, and community for storage; it updates and stores the latest location area of the terminal in real time according to the time of location collection; and based on big data technology, it performs statistical analysis on the user's historical location data to generate a user location profile.
[0176] Location acquisition module 3211: Receives the raw location information of the terminal device transmitted by 5GMC, extracts the terminal device identifier, current time, and its corresponding tracking area, cell information, and latitude and longitude information, and transmits the extracted information to the data processing module for further processing. The geographic location coordinate system is GCJ-02, and the terminal device identifier is uniformly MSISDN (E.164). The terminal device identifier can be a user number.
[0177] Capability Opening Module 3212: Provides a terminal device location query interface to the chatbot application, receives requests from the chatbot application, queries authorization information, and triggers the authorization management module 3213 if there is no authorization or the authorization is not valid; provides a location subscription interface to the chatbot application, receives event notifications from the location monitoring subscription module 3216, and pushes pre-stored 5G messages to the corresponding terminal device through the 5G messaging service system when the subscribed event occurs.
[0178] Authorization Management Module 3213: This module triggers location authorization to the 5G Messaging service system via the location service chatbot application, obtains the user's authorization information, and stores this information in the database based on the user's authorization behavior. Additionally, when the 5G Messaging service is enabled on the terminal device, a user location authorization clause is added to the user's privacy policy, explicitly agreeing to authorize the terminal device's location to provide more services.
[0179] Real-time positioning module 3214: Provides real-time location services for chatbot applications. Chatbot applications can send a request for the current user's location to the 5G messaging real-time positioning system. After user authorization, the system returns the current user's geographic location information, providing one-time and periodic real-time positioning.
[0180] Regional Population Location Module 3215: Provides regional population location services for chatbot applications. Chatbot applications can initiate regional (administrative region or regional latitude and longitude list) user location requests to the 5G message real-time location system. The 5G message real-time location system sends 5G messages to regional populations and can provide one-time and periodic message sending services.
[0181] Location monitoring subscription module 3216: Provides location subscription services for chatbot applications, including two types: area-based crowd entry / exit events and specified user entry / exit area events. Area-based crowd entry / exit events refer to the movement of people entering or leaving a specified area, provided within a specified day / month / year and time range. When a subscribed event occurs, the system queries the specified area, monitors personnel entry / exit, and triggers an event notification if it occurs. Specified user entry / exit area events refer to the movement of specified personnel into or out of a specified area. The system monitors user location changes, and when a match is found in an event subscribed to by the chatbot application, an event notification is triggered.
[0182] 5G Messaging Service System 322: Create a unified authorization chatbot application to provide functions for 5G messaging service delivery, user authorization message template triggering, and receipt transmission.
[0183] Location awareness module 311: Used to read the base station cell information and latitude and longitude information of the terminal device system. Based on changes in the TAC / LAC information of the base station tracking area, the location awareness module actively triggers a SIP registration command to upload the location information to the 5GMC. The 5GMC mainly implements message conversion, routing, and configuration functions, transparently transmitting the user's geographical location information carried by the terminal's configuration request to the 5G message real-time positioning system.
[0184] It should be noted that the location information transmission method provided in this application embodiment can be executed by a target device or a control module in the target device for executing the location information transmission method.
[0185] 5G messaging, as a comprehensive upgrade of basic SMS services by operators in the 5G era, supports individuals sending and receiving multimedia and location information on 5G messaging terminals. However, the current location information available and applicable has limitations and shortcomings:
[0186] 1. When a messaging application device (including a chatbot application device) needs the user's location, it sends a card with a button for authorized location access. The terminal device then calls a third-party map application to obtain the geographic location information and sends it to the chatbot application after the user receives, reads, and clicks the button. For the chatbot application, obtaining location information depends on the user's active authorization and uplink transmission, lacking real-time capability and data comprehensiveness.
[0187] 2. 5G messaging systems lack complete and systematic user location data, making it impossible to provide richer location-based services, such as location-based emergency notifications, community services, government services, and business travel information.
[0188] The advantages of this embodiment are as follows:
[0189] 1. No changes are needed to the user workflow, and users do not need to actively upload location messages in the chatbot application.
[0190] 2. Based on the interaction parameters between the 5G messaging terminal and 5G messaging-related network elements, geographical location information is added to realize user positioning, that is, the user's location will be updated in real time when using the chatbot service.
[0191] 3. Through the location awareness module, the user base station can actively update its location after the tracking area changes. This reduces the power consumption of the terminal device and improves its performance, while also providing users with near real-time location data.
[0192] 4. A real-time user location system has been implemented, and the user's location will be stored in the target device, which is conducive to the secondary application and analysis of the user's location.
[0193] 5. Implemented a chatbot-based authorization method for users, which improves user experience while protecting user privacy, eliminating the need to locate and request authorization every time.
[0194] In the embodiments provided in this application, the location of the terminal device is uploaded to the target device based on the 5G messaging terminal device and network elements. The location information is then processed by the positioning system and then provided to third-party applications with location-based messaging service capabilities. This solves the problem that the current 5G messaging system lacks systematic, comprehensive, and near real-time user location data, has a single application scenario, and cannot provide location-based group user service scenarios.
[0195] In the embodiments provided in this application, on the one hand, new business models and application scenarios can be provided for the 5G messaging ecosystem, enriching the application of 5G messaging in multiple industries; on the other hand, by obtaining the geographical location information of 5G messages, it can be made available to third-party applications with user authorization, enabling the 5G messaging ecosystem to integrate and develop with other ecosystems; in addition, through big data analysis, the location information of 5G messages can be mined to provide 5G messaging developers or third-party applications with services such as daily active areas, trajectories, location fences, transportation, heat maps of hotspot areas, population movement in and out of the area, and population profiles.
[0196] Based on the location information transmission method provided in the above embodiments, this application also provides specific implementations of the location information transmission device. Please refer to the following embodiments.
[0197] See Figure 8 The location information transmission device 400 provided in this application embodiment is applied to a target device, the target device including a positioning system, the positioning system pre-stores location information corresponding to a preset terminal device identifier, the preset terminal device identifier including a first terminal device identifier; the device 400 includes:
[0198] The receiving module 410 is used to receive a registration instruction sent by a terminal device. The registration instruction includes a target terminal device identifier and first location information. The registration instruction request is sent by the terminal device corresponding to the target terminal device identifier when it detects a change in the area information of the area it is in. The target terminal device identifier is any one of the preset terminal device identifiers.
[0199] The update module 420 is used to update the location information corresponding to the pre-stored target terminal device identifier to the first location information;
[0200] The detection module 430 is used to detect the first authorization information corresponding to the first terminal device identifier in response to the location acquisition request when a location acquisition request is received from the message application device. The location acquisition request includes the first terminal device identifier.
[0201] The acquisition module 440 is used to acquire the location information corresponding to the first terminal device identifier when the first authorization information is detected;
[0202] The sending module 450 is used to send the location information corresponding to the first terminal device identifier to the messaging application device.
[0203] Based on this, in some embodiments, the device 400 may further include:
[0204] The sending module 450 is further configured to send first response information to the terminal device corresponding to the target terminal device identifier after updating the pre-stored location information corresponding to the target terminal device identifier to the first location information.
[0205] Based on this, in some embodiments, the device 400 may further include:
[0206] The generation module is used to generate a first authorization acquisition request for the first authorization information if no first authorization information is detected after detecting the first authorization information corresponding to the first terminal device identifier.
[0207] The sending module 450 is also used to send a first authorization acquisition request to the terminal device corresponding to the first terminal device identifier;
[0208] The receiving module 410 is also used to receive the first authorization information sent by the terminal device corresponding to the first terminal device identifier.
[0209] Based on this, in some embodiments, the device 400 may further include:
[0210] The receiving module 410 is also used to receive a first area reach request sent by the messaging application device. The first area reach request includes first area information and a first information template identifier.
[0211] The determination module is used to respond to the first area reach request and determine the second terminal device identifier of the terminal device located in the first area based on the location information corresponding to the preset terminal device identifier. The first area is the area corresponding to the first area information.
[0212] The generation module is used to generate the first notification information by using the first information template identifier to identify the corresponding information template.
[0213] The sending module 450 is also used to send first notification information to the terminal device corresponding to the second terminal device identifier.
[0214] Based on this, in some embodiments, the device 400 may further include:
[0215] The receiving module 410 is further configured to receive a second response information sent by the terminal device corresponding to the second terminal device identifier after sending the first notification information to the terminal device corresponding to the second terminal device identifier;
[0216] The sending module 450 is also used to send a second response message to the messaging application device.
[0217] Based on this, in some embodiments, the device 400 may further include:
[0218] The receiving module 410 is also used to receive a second area reach request sent by the messaging application device. The second area reach request includes a target area identifier and a second information template identifier.
[0219] The determination module is used to respond to the second area reach request and determine the second area information corresponding to the target area identifier based on the relationship information between the preset area identifier and the preset area information.
[0220] The determining module is also used to determine the third terminal device identifier of the terminal device located in the second area based on the location information corresponding to the preset terminal device identifier, wherein the second area is the area corresponding to the second area information;
[0221] The generation module is used to generate a second notification message by using the second information template identifier to identify the corresponding information template.
[0222] The sending module 450 is also used to send a second notification message to the terminal device corresponding to the third terminal device identifier.
[0223] Based on this, in some embodiments, the target terminal device identifier includes a fourth terminal device identifier; the device 400 may further include:
[0224] The detection module 430 is also used to detect the second authorization information corresponding to the fourth terminal device identifier after receiving the registration instruction sent by the terminal device, in the case that only one of the locations corresponding to the location information corresponding to the fourth terminal device identifier and the location corresponding to the first location information is located in the third area;
[0225] The sending module 450 is also used to send location monitoring information to the messaging application device when the second authorization information is detected. The location monitoring information includes the fourth terminal device identifier and the first location information.
[0226] The receiving module 410 is also used to receive a first event reach request sent by the messaging application device;
[0227] The sending module 450 is also used to send a third notification message to the terminal device corresponding to the fourth terminal device identifier in response to the first event reach request.
[0228] Based on this, in some embodiments, the device 400 may further include:
[0229] The receiving module 410 is also configured to receive a first location monitoring subscription request sent by the message application device before receiving the registration instruction sent by the terminal device. The first location monitoring subscription request includes third area information of the third area and fourth terminal device identifier.
[0230] The generation module is used to generate a second authorization acquisition request for second authorization information in response to a first location monitoring subscription request;
[0231] The sending module 450 is also used to send a second authorization acquisition request to the terminal device corresponding to the fourth terminal device identifier;
[0232] The receiving module 410 is also used to receive the second authorization information sent by the terminal device corresponding to the fourth terminal device identifier.
[0233] Based on this, in some embodiments, the device 400 may further include:
[0234] The receiving module 410 is also used to receive a second location monitoring subscription request sent by the message application device. The second location monitoring subscription request includes the fourth area information of the fourth area and the time information of the preset time period.
[0235] The acquisition module 440 is also used to acquire historical location information corresponding to the preset terminal device identifier within a preset time period;
[0236] The sending module 450 is also used to send fourth notification information to the terminal device corresponding to the fifth terminal device identifier when only part of the location corresponding to the historical location information corresponding to the fifth terminal device identifier is located in the fourth region.
[0237] Based on this, in some embodiments, the device 400 may further include:
[0238] The receiving module 410 is also configured to receive the third response information sent by the terminal device corresponding to the fifth terminal device identifier after sending the fourth notification information to the terminal device corresponding to the fifth terminal device identifier, when only part of the location is located in the fourth region in the historical location information corresponding to the fifth terminal device identifier.
[0239] The sending module 450 is also used to send third response information to the messaging application device.
[0240] Each module of the location information transmission device provided in this application embodiment can realize the functions of each step of the location information transmission method provided above, and can achieve its corresponding technical effects. For the sake of brevity, it will not be described in detail here.
[0241] Based on the same inventive concept, embodiments of this application also provide an electronic device.
[0242] Figure 9 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.
[0243] An electronic device may include a processor 501 and a memory 502 storing computer program instructions.
[0244] Specifically, the processor 501 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0245] Memory 502 may include mass storage for data or instructions. For example, and not limitingly, memory 502 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 502 may include removable or non-removable (or fixed) media. Where appropriate, memory 502 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 502 is non-volatile solid-state memory.
[0246] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this disclosure.
[0247] The processor 501 reads and executes computer program instructions stored in the memory 502 to implement any of the location information transmission methods in the above embodiments.
[0248] In one example, the electronic device may also include a communication interface 503 and a bus 510. Wherein, as... Figure 9 As shown, the processor 501, memory 502, and communication interface 503 are connected through bus 510 and complete communication with each other.
[0249] The communication interface 503 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0250] Bus 510 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Linear Predictive Coding (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (Peripheral Component Interconnect-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VESA Local Bus, VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 510 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application contemplates any suitable bus or interconnection. The electronic device can execute the location information transmission method described in the embodiments of the present invention, thereby realizing the location information transmission method described above.
[0251] Furthermore, in conjunction with the location information transmission methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the location information transmission methods in the above embodiments.
[0252] This application also provides a computer program product, wherein the instructions in the computer program product, when executed by the processor of an electronic device, cause the electronic device to perform various processes implementing any of the above-described embodiments of the location information transmission method.
[0253] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0254] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (ROM), flash memory, erasable read-only memory (EROM), floppy disks, compact disc read-only memory (CD-ROM), optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0255] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0256] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0257] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A method for transmitting location information, characterized in that, The method is applied to a target device, the target device including a positioning system, the positioning system pre-stores location information corresponding to a preset terminal device identifier, the preset terminal device identifier including a first terminal device identifier; the method includes: The system receives a registration instruction sent by a terminal device. The registration instruction includes a target terminal device identifier and first location information. The registration instruction request is issued by the terminal device corresponding to the target terminal device identifier when it detects a change in the area information of its location. The target terminal device identifier is any one of the preset terminal device identifiers. Update the pre-stored location information corresponding to the target terminal device identifier to the first location information; Upon receiving a location acquisition request from a messaging application device, in response to the location acquisition request, the system detects the first authorization information corresponding to the first terminal device identifier, wherein the location acquisition request includes the first terminal device identifier. Upon detecting the first authorization information, obtain the location information corresponding to the first terminal device identifier; Send the location information corresponding to the first terminal device identifier to the messaging application device; The target terminal device identifier includes a fourth terminal device identifier; after receiving the registration instruction sent by the terminal device, the method further includes: If only one location is located in the third region among the location information corresponding to the fourth terminal device identifier and the location corresponding to the first location information, the second authorization information corresponding to the fourth terminal device identifier is detected. Upon detecting the second authorization information, location monitoring information is sent to the messaging application device, the location monitoring information including the fourth terminal device identifier and the first location information; Receive the first event reach request sent by the message application device; In response to the first event notification request, a third notification message is sent to the terminal device corresponding to the fourth terminal device identifier; The method further includes: Receive a second location monitoring subscription request sent by the message application device, the second location monitoring subscription request including fourth region information of the fourth region and time information of a preset time period; Obtain the historical location information corresponding to the preset terminal device identifier within the preset time period; If only a portion of the locations corresponding to the historical location information corresponding to the fifth terminal device identifier are located in the fourth region, a fourth notification message is sent to the terminal device corresponding to the fifth terminal device identifier.
2. The method for transmitting location information according to claim 1, characterized in that, After updating the pre-stored location information corresponding to the target terminal device identifier to the first location information, the method further includes: Send a first response message to the terminal device corresponding to the target terminal device identifier.
3. The method for transmitting location information according to claim 1, characterized in that, After detecting the first authorization information corresponding to the first terminal device identifier, the method further includes: If the first authorization information is not detected, a first authorization acquisition request for the first authorization information is generated; Send the first authorization acquisition request to the terminal device corresponding to the first terminal device identifier; Receive the first authorization information sent by the terminal device corresponding to the first terminal device identifier.
4. The method for transmitting location information according to claim 1, characterized in that, Also includes: Receive a first area reach request sent by the message application device, wherein the first area reach request includes first area information and a first information template identifier; In response to the first area reach request, based on the location information corresponding to the preset terminal device identifier, a second terminal device identifier of the terminal device located in the first area is determined, wherein the first area is the area corresponding to the first area information; The first notification message is generated by using the information template corresponding to the first information template identifier. The first notification information is sent to the terminal device corresponding to the second terminal device identifier.
5. The method for transmitting location information according to claim 4, characterized in that, After sending the first notification information to the terminal device corresponding to the second terminal device identifier, the method further includes: Receive the second response information sent by the terminal device corresponding to the second terminal device identifier; Send the second response information to the messaging application device.
6. The method for transmitting location information according to claim 1, characterized in that, Also includes: Receive a second area reach request sent by the message application device, the second area reach request including a target area identifier and a second information template identifier; In response to the second region access request, the second region information corresponding to the target region identifier is determined based on the relationship information between the preset region identifier and the preset region information; Based on the location information corresponding to the preset terminal device identifier, the third terminal device identifier of the terminal device located in the second area is determined, and the second area is the area corresponding to the second area information; The second notification message is generated using the information template corresponding to the second information template identifier. The second notification information is sent to the terminal device corresponding to the third terminal device identifier.
7. The method for transmitting location information according to claim 1, characterized in that, Before receiving the registration instruction sent by the terminal device, the method further includes: Receive a first location monitoring subscription request sent by the message application device, wherein the first location monitoring subscription request includes third area information of the third area and the identifier of the fourth terminal device; In response to the first location monitoring subscription request, a second authorization acquisition request is generated to obtain the second authorization information. Send the second authorization acquisition request to the terminal device corresponding to the fourth terminal device identifier; Receive the second authorization information sent by the terminal device corresponding to the fourth terminal device identifier.
8. The method for transmitting location information according to claim 1, characterized in that, If only a portion of the locations corresponding to the historical location information corresponding to the fifth terminal device identifier are located in the fourth region, after sending the fourth notification information to the terminal device corresponding to the fifth terminal device identifier, the method further includes: Receive the third response information sent by the terminal device corresponding to the fifth terminal device identifier; The third response information is sent to the messaging application device.
9. A location information transmission device, characterized in that, Applied to a target device, the target device including a positioning system, the positioning system pre-stores location information corresponding to a preset terminal device identifier, the preset terminal device identifier including a first terminal device identifier; the device includes: The receiving module is used to receive a registration instruction sent by a terminal device. The registration instruction includes a target terminal device identifier and first location information. The registration instruction request is sent by the terminal device corresponding to the target terminal device identifier when it detects a change in the area information of the area it is in. The target terminal device identifier is any one of the preset terminal device identifiers. The update module is used to update the pre-stored location information corresponding to the target terminal device identifier to the first location information; The detection module is configured to, upon receiving a location acquisition request sent by a messaging application device, detect first authorization information corresponding to the first terminal device identifier in response to the location acquisition request, wherein the location acquisition request includes the first terminal device identifier; The acquisition module is used to acquire the location information corresponding to the first terminal device identifier when the first authorization information is detected; The sending module is used to send the location information corresponding to the first terminal device identifier to the message application device; The target terminal device identifier includes a fourth terminal device identifier; the device further includes: The detection module is further configured to, after receiving the registration instruction sent by the terminal device, detect the second authorization information corresponding to the fourth terminal device identifier if only one of the locations corresponding to the location information corresponding to the fourth terminal device identifier and the location corresponding to the first location information is located in the third region. The sending module is further configured to send location monitoring information to the messaging application device when the second authorization information is detected, the location monitoring information including the fourth terminal device identifier and the first location information; The receiving module is also used to receive a first event reach request sent by the messaging application device; The sending module is further configured to, in response to the first event arrival request, send a third notification message to the terminal device corresponding to the fourth terminal device identifier; The device further includes: The receiving module is further configured to receive a second location monitoring subscription request sent by the message application device, wherein the second location monitoring subscription request includes fourth region information of the fourth region and time information of a preset time period; The acquisition module is further configured to acquire historical location information corresponding to the preset terminal device identifier within the preset time period; The sending module is further configured to send a fourth notification message to the terminal device corresponding to the fifth terminal device identifier when only a portion of the locations corresponding to the historical location information corresponding to the fifth terminal device identifier are located in the fourth region.
10. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the location information transmission method as described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the method for transmitting location information as described in any one of claims 1-8.
12. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device is able to perform the location information transmission method as described in any one of claims 1-8.
Citation Information
Patent Citations
Method for sharing geographical position between mobile terminals, presence server and mobile terminal
CN102595310A
Taxi taking system with mobile phone
CN103268699A