WO2015135326A1 - Method and terminal for sharing positioning information - Google Patents

Method and terminal for sharing positioning information Download PDF

Info

Publication number
WO2015135326A1
WO2015135326A1 PCT/CN2014/090060 CN2014090060W WO2015135326A1 WO 2015135326 A1 WO2015135326 A1 WO 2015135326A1 CN 2014090060 W CN2014090060 W CN 2014090060W WO 2015135326 A1 WO2015135326 A1 WO 2015135326A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
information
positioning
target
location
Prior art date
Application number
PCT/CN2014/090060
Other languages
French (fr)
Chinese (zh)
Inventor
董明杰
黄康敏
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015135326A1 publication Critical patent/WO2015135326A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • Embodiments of the present invention relate to the field of communications, and more particularly to a method and terminal for sharing positioning information.
  • the mobile positioning technology refers to a technology or service for acquiring the positioning information of the terminal (for example, latitude and longitude coordinates) by using the positioning technology, and marking the position of the positioned object on the electronic map.
  • the mobile positioning technology for locating other people refers to that the terminal can not only obtain its own positioning information, but also obtain positioning information of other terminals.
  • the existing positioning technology for locating other people and the positioning technology for sharing multi-person positioning information are complicated and inconvenient to implement, and real-time location information sharing between users is not direct, and the privacy of the positioned terminal is not well considered. , the security level is lower.
  • the embodiment of the invention provides a method and a terminal for sharing positioning information, which can share the positioning information, effectively protect the security and privacy of the positioned terminal, and effectively improve the user experience.
  • a method for sharing location information comprising:
  • the first terminal acquires positioning information of at least two target terminals
  • the first terminal sends the positioning information of the shared target terminal to the first target terminal of the at least two target terminals.
  • the acquiring, by the first terminal, location information of the at least two target terminals includes:
  • the first terminal sends a positioning request message to the at least two target terminals, where the positioning request message includes positioning time request information or positioning location request information for positioning the at least two target terminals by the first terminal;
  • a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate positioning time response information or positioning location response information determined by the at least two target terminals according to the positioning request message;
  • the positioning authorization condition includes positioning time information jointly determined by the positioning time request information and the positioning time response information, or Positioning location information jointly determined by the location request information and the location location response information;
  • the first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition.
  • the determining, by the first terminal, the shared target terminal in the at least two target terminals includes:
  • the first terminal sends a first request message for requesting sharing location information to the at least two target terminals;
  • the first terminal determines, according to the first response message, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
  • the first terminal The first target terminal of the two target terminals sends the location information of the shared target terminal, including:
  • the first terminal separately sends the positioning information of the shared target terminal to each of the at least two target terminals.
  • the first terminal The first target terminal of the two target terminals sends the location information of the shared target terminal, including:
  • the first terminal sends the location information of the shared target terminal to the first target terminal, where the first target terminal is a target terminal other than the shared target terminal of the at least two target terminals.
  • the method further includes:
  • the first terminal sends a second request message for requesting to join the positioning group to the at least two target terminals;
  • the first terminal receives a second response message sent by the at least two target terminals to indicate that the user is authorized to join the positioning group.
  • the first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
  • the first terminal sends the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
  • the first terminal The first target terminal of the two target terminals sends the location information of the shared target terminal, including:
  • the first target terminal of the at least two target terminals sends the positioning information of the shared target terminal, where the sharing condition includes sharing time information and/or Share location information.
  • the method further includes:
  • the first terminal sends the location information of the first terminal to the at least two target terminals, where the location information is geographic location information or map identification location information, where the location identifier information is a location that matches the geographic location information and the map information. information.
  • the first terminal obtains according to the positioning authorization condition
  • the positioning information of the at least two target terminals includes:
  • the first terminal receives geographical location information that is sent by the at least two target terminals according to the positioning authorization condition.
  • the method further includes:
  • the first terminal sends a third request message including the geographic location information to the server, where the request message is used to request map identification location information corresponding to the geographic location information, where the map identification location information is that the geographic location information matches the map information Post position information;
  • the first terminal determines, according to the third response message, map identification location information of the at least two target terminals.
  • the method further includes:
  • the first terminal matches the geographical location information according to the local map information, and determines map identification location information of the at least two target terminals.
  • the first terminal is configured according to the positioning authorization condition, Obtaining location information of the at least two target terminals, including:
  • the first terminal according to the positioning authorization condition, Obtaining location information of the at least two target terminals, including:
  • the first terminal sends a fourth request message including the identifier information of the at least two target terminals to the server, where the request message is used to request map identification location information of the at least two target terminals;
  • the first terminal acquires map identification location information of the at least two target terminals according to the fourth response message.
  • the second aspect provides a method for sharing location information, the method comprising:
  • the target terminal receives the positioning request message sent by the first terminal, where the positioning request message includes positioning time request information or positioning location request information for the first terminal to locate the target terminal;
  • the target terminal Determining, by the target terminal, the target terminal to allow the first terminal to a positioning authorization condition for performing positioning, where the positioning authorization condition includes positioning time information determined according to the positioning time request information, or positioning position information determined according to the positioning position information;
  • the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition
  • the target terminal receives the positioning information of the shared target terminal sent by the first terminal, and the shared target terminal is a target terminal that agrees to share the positioning information.
  • the method further includes:
  • the target terminal When the target terminal determines to agree to share the location information, the target terminal sends a first response message indicating that the shared location information is agreed to be sent to the first terminal.
  • the method further includes:
  • the target terminal receives the positioning information of the shared target terminal that is sent by the first terminal, and includes:
  • the target terminal receives the positioning information of the shared target terminal in the positioning group.
  • the shared target terminal does not include the target terminal.
  • the target terminal receives the The location request message further includes identifier information of the first terminal;
  • the target terminal determines, according to the location request message, a location authorization condition that the target terminal allows the first terminal to locate, including:
  • the target terminal When determining that the local preset identifier information includes the identifier information included in the location request message, the target terminal determines the location time request information or the location location request information in the location request message as the location authorization condition.
  • the target terminal root And determining, according to the positioning request message, a positioning authorization condition that the target terminal allows the first terminal to locate, including:
  • the method further includes:
  • the user instruction is used to indicate a location authorization condition authorized by the user
  • a positioning authorization condition authorized by the user as a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal
  • the method further includes:
  • the target terminal is configured according to the positioning The authorization condition, the location information of the target terminal is sent to the first terminal, including:
  • the target terminal determines location identifier information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information;
  • the target terminal sends the map identifier location information to the first terminal according to the location authorization condition, so that the first terminal locates the target terminal.
  • the target terminal determines, by the target terminal, map identification location information, including:
  • the target terminal sends a request message including the geographic location information of the target terminal to the server, where the request message is used to request the server to send the map identification location information that matches the geographical location information with the server map information;
  • the target terminal determines the map identification location information of the target terminal according to the response message.
  • the target terminal determines the location information of the target location of the target terminal, including: the target terminal matches according to the local map information The geographic location information of the target terminal determines the map identification location information of the target terminal.
  • the target terminal sends a response message including the geographic location information of the target terminal to the server, so that the server sends the map identification location information that matches the geographical location information and the server map information to the first terminal, so as to facilitate the first A terminal locates the target terminal.
  • the third aspect provides a terminal, where the terminal includes:
  • An obtaining module configured to acquire positioning information of at least two target terminals
  • a determining module configured to determine a shared target terminal in the at least two target terminals, where the shared target terminal is a target terminal that agrees to share the positioning information
  • a sending module configured to send the positioning information of the shared target terminal determined by the determining module to the first target terminal of the at least two target terminals.
  • the acquiring module includes:
  • a first sending unit configured to send a positioning request message to the at least two target terminals, where the positioning request message includes positioning time request information or positioning location request information for positioning the at least two target terminals by the first terminal;
  • a first receiving unit configured to receive a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate a positioning time response determined by the at least two target terminals according to the positioning request message sent by the first sending unit Information or location location response information;
  • a first determining unit configured to determine, according to the positioning response message received by the first receiving unit, a positioning authorization condition of the at least two target terminals, where the positioning authorization condition includes the positioning time request information and the positioning time response information Determine the positioning time information, or please go through the positioning position Finding location location information jointly determined by the information and the location location response information;
  • an obtaining unit configured to acquire positioning information of the at least two target terminals according to the positioning authorization condition determined by the first determining unit.
  • the determining module includes:
  • a second sending unit configured to send, to the at least two target terminals, a first request message for requesting shared location information
  • a second receiving unit configured to receive a first response message sent by the second target terminal of the at least two target terminals
  • the second determining unit is configured to determine, according to the first response message received by the second receiving unit, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
  • the sending module is specifically configured to: The positioning information of the shared target terminal is respectively sent to each of the at least two target terminals.
  • the sending module is specifically configured to: And transmitting the positioning information of the shared target terminal to the first target terminal, where the first target terminal is a target terminal other than the shared target terminal among the at least two target terminals.
  • the terminal further includes:
  • the sending module is further configured to send, to the at least two target terminals, a second request message for requesting to join the positioning group;
  • the terminal also includes:
  • a receiving module configured to receive a second response message sent by the at least two target terminals to indicate that the user is authorized to join the positioning group
  • the sending module is configured to send the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
  • the sending module is specifically configured to: When confirming that the sharing condition indicated by the user instruction or the local policy is satisfied, to the at least two The first target terminal in the target terminal sends the positioning information of the shared target terminal, and the sharing condition includes shared time information and/or shared location information.
  • the sending module is further configured to: The location information of the first terminal is sent to the at least two target terminals, where the location information is geographic location information or map identification location information, where the location identifier information is location information that matches the geographic location information and the map information.
  • the acquiring unit is specifically configured to receive the at least two Geographical location information sent by the target terminal according to the positioning authorization condition.
  • the first sending unit is further configured to send, to the server, a third request message that includes the geographic location information acquired by the acquiring unit, where the request message is used to request map identification location information corresponding to the geographic location information, where the map identification location
  • the information is location information after the geographical location information matches the map information
  • the first receiving unit is further configured to receive a third response message sent by the server, where the response message includes the map identification location information;
  • the first determining unit is further configured to determine map identification location information of the at least two target terminals according to the third response message received by the first receiving unit.
  • the first determining unit is further configured to: determine, according to the local map information, the geographical location information acquired by the acquiring unit, determine the at least The map of the two target terminals identifies the location information.
  • the acquiring unit is specifically configured to receive the at least The map identification location information of the at least two target terminals sent by the two target terminals according to the positioning authorization condition, where the map identification location information is location information after the geographical location information of the at least two target terminals matches the map information.
  • the acquiring unit includes:
  • the sending subunit is configured to send, to the server, a fourth request message including the identifier information of the at least two target terminals, where the request message is used to request a map identifier location letter of the at least two target terminals interest;
  • the receiving subunit is configured to receive a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographical location information of the at least two target terminals is matched with the server map information;
  • the obtaining subunit is configured to acquire map identification location information of the at least two target terminals according to the fourth response message received by the receiving subunit.
  • a terminal comprising:
  • a receiving module configured to receive a positioning request message sent by the first terminal, where the positioning request message includes positioning time request information or positioning location request information for the first terminal to locate the target terminal;
  • a determining module configured to determine, according to the positioning request message received by the receiving module, a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal, where the positioning authorization condition includes positioning time information determined according to the positioning time request information Or positioning position information determined according to the positioning position information;
  • a sending module configured to send, according to the positioning authorization condition determined by the determining module, location information of the target terminal to the first terminal;
  • the receiving module is further configured to receive the positioning information of the shared target terminal sent by the first terminal, where the shared target terminal is a target terminal that agrees to share the positioning information.
  • the terminal further includes:
  • the receiving module is further configured to receive, by the first terminal, a first request message for requesting sharing of positioning information
  • the sending module is further configured to: when determining to agree to share the positioning information, send, to the first terminal, a first response message for instructing to agree to share the location information.
  • the receiving module is further configured to receive, by the first terminal, a request for joining the positioning The second request message of the group;
  • the sending module is further configured to send, to the first terminal, a second response message for instructing to join the positioning group;
  • the receiving module is specifically configured to receive positioning information of the shared target terminal in the positioning group.
  • the third aspect of the fourth aspect In a possible implementation manner, the positioning information of the target terminal that is received by the receiving module does not include the positioning information of the target terminal.
  • the receiving module receives the The location request message further includes identification information of the first terminal;
  • the determining module is specifically configured to: when determining that the local preset identifier information includes the identifier information included in the location request message, determining the location time request information or the location location request information in the location request message as the location authorization condition.
  • the determining module includes:
  • a first sending unit configured to present, to the user, request information for indicating the positioning request message
  • a first receiving unit configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition determined by the user according to the positioning request message;
  • the first determining unit is configured to determine, according to the user instruction received by the first receiving unit, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
  • the determining module further includes:
  • the second sending unit is configured to present, to the user, request information for indicating the positioning authorization condition
  • the second receiving unit is configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition authorized by the user;
  • the second determining unit is configured to determine, according to the user instruction received by the second receiving unit, a positioning authorization condition authorized by the user, as a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
  • the sending module is further configured to send a location response message to the first terminal, where the location response message includes a location authorization condition authorized by the second determining unit.
  • the sending module is further configured to send a location response message to the first terminal, where the location is The response message includes the location authorization condition determined by the determining module.
  • the sending module package include:
  • a third determining unit configured to determine map identification location information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information;
  • the third sending unit is configured to send the map identification location information to the first terminal according to the positioning authorization condition determined by the determining module, so that the first terminal locates the target terminal.
  • the third determining unit includes:
  • a sending subunit configured to send, to the server, a request message that includes geographic location information of the target terminal, where the request message is used to request the server to send map identification location information that matches the geographic location information with the server map information;
  • a receiving subunit configured to receive a response message sent by the server, where the response message includes the map identification location information
  • Determining a subunit configured to determine map identification location information of the target terminal according to the response message received by the receiving subunit.
  • the third determining unit is configured to: determine, according to the local map information, location information of the target terminal, determine The map of the target terminal identifies location information.
  • the sending module includes:
  • a third receiving unit configured to receive a request message that is sent by the server and includes the identifier information of the target terminal
  • a fourth sending unit configured to send, to the server, a response message including the geographic location information of the target terminal, so that the server sends, to the first terminal, map identification location information that matches the geographic location information and the server map information, So that the first terminal locates the target terminal.
  • the method and the terminal for sharing the positioning information in the embodiment of the present invention determine the sharing target terminal of the plurality of target terminals that agrees to share the positioning information by acquiring the positioning information of the plurality of target terminals, and the sharing target terminal
  • the positioning information is sent to the plurality of target terminals, and the privacy of the located terminal can be effectively protected while sharing the positioning information, and the security level of the shared positioning information can be improved, and the user experience satisfaction can be improved.
  • FIG. 1 is a schematic diagram showing a structural diagram of a communication system of an application scenario of an embodiment of the present invention.
  • FIG. 2 is a system architecture diagram of a terminal according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method for sharing positioning information according to an embodiment of the present invention.
  • FIG. 4 is another schematic flowchart of a method for sharing positioning information according to an embodiment of the present invention.
  • FIG. 5 is still another schematic flowchart of a method for sharing positioning information according to an embodiment of the present invention.
  • FIG. 6(a), FIG. 6(b) and FIG. 6(c) respectively show schematic flow charts of three methods for acquiring positioning information according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a method for sharing positioning information according to another embodiment of the present invention.
  • FIG. 8 shows a schematic block diagram of a terminal of an embodiment of the present invention.
  • FIG. 9 shows a schematic block diagram of another terminal of an embodiment of the present invention.
  • FIG. 10 is a schematic block diagram of a terminal according to another embodiment of the present invention.
  • FIG. 11 is a schematic block diagram of another terminal according to another embodiment of the present invention.
  • FIG. 1 shows a mobile communication network architecture diagram, which supports a terminal to perform data interaction or voice call simultaneously with multiple terminals.
  • the terminal 1 and the terminal 2 in FIG. 1 can be connected to the Internet of the back end through a wired or wireless access network, and perform voice or data communication through the associated network.
  • the access network may be in a wired manner (such as the access mode 1 of the terminal 1 in FIG. 1), such as an Asymmetric Digital Subscriber Line (ADSL), or a wireless mode (as shown in FIG. 1).
  • ADSL Asymmetric Digital Subscriber Line
  • the access mode 2) of the terminal 2 is, for example, a radio access network (Radio Access Network, hereinafter referred to as "RAN"), and specifically, for example, a wireless local area network (Wireless Local Area Networks, hereinafter referred to as "WLAN").
  • RAN Radio Access Network
  • WLAN Wireless Local Area Networks
  • the back-end Internet in the mobile communication network architecture can provide positioning, navigation, search and other services for the terminal.
  • UMTS Universal Mobile Telecommunication System
  • GSM Global System of Mobile communication
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access Wireless
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • FIG. 2 is a system structural diagram of a typical terminal having a positioning function according to an embodiment of the present invention.
  • the terminal includes a communication module, a positioning module, an I/O interface module, a sensor module, a storage module, and a processor module, and the modules are connected through a bus interface and communicate with each other to complete multiple functions on the terminal.
  • the communication module enables the terminal to establish a communication connection with other terminals through cellular, WLAN or other communication means.
  • the positioning module can locate the current geographical location information of the terminal by means of GPS, base station or WLAN positioning.
  • the I/O interface module can receive input from the touch screen of the terminal or the voice or the keyboard.
  • the sensor module can collect a variety of data required by different applications.
  • the gyro module can assist the positioning module to further improve the accuracy.
  • the storage module stores a plurality of application software running on the mobile phone, such as WeChat for social communication, assistant application for scheduling, Google map for positioning, Gouda navigation for navigation, and the like.
  • the method for sharing positioning information in the embodiment of the present invention may be a type of application service stored on a memory.
  • the processor module is configured to parse, process, and calculate all data on the mobile phone, in particular, stored communication operation instructions on the memory.
  • the first terminal, the target terminal, the shared target terminal, and the terminal (Terminal) in the embodiment of the present invention may also be referred to as a user equipment (User Equipment, referred to as "UE"), and a mobile station (Mobile Station, Referred to as “MS” or mobile terminal (Mobile Terminal).
  • the terminal may be provided with any terminal having the positioning function shown in FIG. 2, and may be, for example, a smart mobile phone (or "cellular” phone), a computer with a smart mobile terminal, or a portable, pocket-sized device.
  • Any mobile device with positioning function such as a hand-held, wearable, computer built-in or vehicle, for example, a camera with a positioning function, or any mobile terminal with positioning requirements.
  • FIG. 3 illustrates a method 100 of sharing location information according to an embodiment of the present invention, such as by A terminal performs, as shown in FIG. 3, the method 100 includes:
  • the first terminal acquires positioning information of at least two target terminals.
  • the first terminal determines a shared target terminal of the at least two target terminals, where the shared target terminal is a target terminal that agrees to share the positioning information.
  • the first terminal sends the positioning information of the shared target terminal to the first target terminal of the at least two target terminals.
  • the first terminal acquires the location information of the at least two target terminals, and the location information may be the location information of the at least two target terminals or the location information of the map identifier, which is not limited in this embodiment of the present invention.
  • the method for sharing the location information in the embodiment of the present invention by acquiring the location information of the plurality of target terminals, determining the shared target terminal that agrees to share the location information among the plurality of target terminals, and transmitting the location information of the shared target terminal to the The plurality of target terminals can effectively protect the privacy of the located terminal while sharing the positioning information, can improve the security level of the shared positioning information, and can improve the user experience satisfaction.
  • the shared target terminal may be one or more target terminals of the at least two target terminals that agree to share their own location information; the first target terminal may be any one or more of the at least two target terminals.
  • the terminal is not limited in this embodiment of the present invention.
  • the terminal that initiates multi-person positioning is expressed by the “first terminal”, and the expression does not limit the technical solution of the present invention; in addition, at least two target terminals may also be referred to as multiple
  • the locating terminal for the convenience of the description, uses the “target terminal” to represent the located terminal, and the expression does not limit the technical solution of the present invention.
  • the first terminal acquires the positioning information of the at least two target terminals, and specifically, may obtain the positioning of the at least two target terminals under the positioning authorization condition negotiated by the first terminal and the at least two target terminals. information.
  • the acquiring, by the first terminal, the positioning information S110 of the at least two target terminals includes:
  • the first terminal sends a location request message to the at least two target terminals, where the positioning is requested.
  • the request message includes positioning time request information or positioning location request information for positioning the at least two target terminals by the first terminal;
  • the first terminal receives a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate positioning time response information or positioning location response information determined by the at least two target terminals according to the positioning request message.
  • the first terminal determines, according to the positioning response message, a positioning authorization condition of the at least two target terminals, where the positioning authorization condition includes positioning time information jointly determined by the positioning time request information and the positioning time response information, or The positioning location information jointly determined by the positioning location request information and the positioning location response information;
  • the first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition.
  • the first terminal acquires the positioning information of the at least two target terminals, where the first terminal acquires the positioning information of each of the at least two target terminals, and correspondingly, in S111, the first Transmitting, by the terminal, the location request message to the at least two target terminals, respectively, sending the location request message to each of the at least two target terminals; and in S112, the first terminal receiving the at least two target terminals
  • the positioning response message is a positioning response message that is received by each of the at least two target terminals respectively.
  • the first terminal determines, according to the positioning response message, a positioning authorization condition of the at least two target terminals, where
  • the terminal B and the terminal C are two target terminals of the at least two target terminals, that is, according to the positioning response message of the terminal B, determining the positioning authorization condition for the first terminal to locate the terminal B, according to the positioning response of the terminal C.
  • a message determining a location authorization condition for positioning the terminal C in S114, the first terminal obtains the location authorization condition according to the location
  • the location information of the at least two target terminal in particular, for example, according to the authorization conditions of the positioning of the terminal B, the terminal B acquires the positioning information.
  • FIG. 5 shows a specific process of the terminal A and the terminal B negotiating the positioning authorization condition.
  • the terminal A sends a location request message to the terminal B, where the location request message includes location time request information or location location request information.
  • the terminal B determines, according to the received location request message, that the consent is to be located, and determines according to the location request message.
  • the positioning time response information or the positioning location response information may be determined by directly determining the positioning time request information as the positioning time response information, or determining the modified positioning time request information as the positioning time response information, and correspondingly, The location location request information or the modified location location request information may be determined
  • the terminal B sends a location request response message to the terminal A, where the location request response message is used to indicate that the consent is located, and includes the positioning time response information or the location location response information determined according to the location request message.
  • the terminal A determines, according to the positioning request response message, a positioning authorization condition for the terminal A to locate the terminal B, where the positioning authorization condition includes positioning time information or positioning location information.
  • the location request message sent by the terminal A may further include the identifier information of the terminal A or the terminal B, for example, the user name, the phone number, etc. of the terminal B or the terminal A, or the terminal B or the terminal A. Device type information, etc.
  • the location authorization information may be the location time information, or the location location information, or may be the location time information and the location location information, where the location time information may be, for example, a specific time period or a specific time point, and the location location.
  • the information may specifically be positioning starting point position information, positioning ending point position information or specific landmark information.
  • the terminal A locates the terminal B at 14:00, it may also be located from the initial positioning time to 14:00, or may be positioned from 14:00 until the end of the positioning process. It should be understood that the implementation process The locating strategy is specifically configured by the system, and may be temporarily configured by the user. For example, when the positioning authorization condition is 30 minutes, the terminal A starts to locate the terminal B from the initial positioning time, and continues for 30 minutes. It should be understood that the positioning time information may also be a plurality of time periods or time points that are not continuous.
  • the location authorization request is the location location information
  • the terminal that initiates the location locates the location terminal in the area indicated by the location location information, and specifically, the terminal A locates the terminal B as an example.
  • the terminal A When the location authorization status is the location location information of the terminal, the terminal A starts to locate the current position of the terminal B until the end of the terminal position; for example, the location authorization condition is the location start location information, and the terminal A starts from the location start point.
  • the location B always locates the terminal B.
  • the location authorization information includes the location location information and the location time information, specifically, the terminal A locates the terminal B as an example.
  • the location authorization condition is the location start location information and one hour, and the terminal A obtains the location. The location indicated by the start location information starts to locate the terminal B, And the positioning lasts for 1 hour.
  • the location authorization condition determines a specific time range and a geographical range in which the location-initiating terminal locates the located terminal, and the location authorization condition is that the terminal that initiated the positioning negotiates with the located terminal to determine the location.
  • the terminal locates the located terminal, it can also fully protect the privacy of the positioned terminal, and can effectively improve the user experience.
  • the first terminal may determine the positioning authorization condition for positioning the at least two target terminals by sending a positioning request message to the at least two target terminals, and may also receive at least two by passively receiving the method.
  • the positioning request sent by the target terminal for requesting the positioning thereof is used to determine the positioning authorization condition for positioning the at least two target terminals, which is not limited in this embodiment of the present invention.
  • the first terminal acquires location information of the at least two target terminals according to the location authorization condition.
  • the location information may be directly requested to the at least two target terminals, or may be requested by the network side server.
  • the positioning information of the at least two target terminals is not limited in this embodiment of the present invention.
  • the location information may be geographic location information of the located terminal, or may be map identification location information after the geographic location information matches the map information.
  • the location information of the at least two target terminals may be geographic location information or map identification location information of at least two target terminals, wherein the geographic location information indicates actual physical location information of the located terminal, for example, may be GPS location information ( Longitude, latitude, altitude); the map identification location information is the location information that matches the geographic location information to the map coordinate system, and the map coordinate system may be a two-dimensional map coordinate system or a three-dimensional map coordinate system.
  • the map coordinate system is expressed as map information, and the present invention is not limited in any way.
  • the positioning information may also be position information that matches the geographical location information to other coordinate systems, such as a three-dimensional geodetic coordinate system or the like.
  • the first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition, including:
  • the first terminal receives geographical location information that is sent by the at least two target terminals according to the positioning authorization condition.
  • the terminal B is taken as one of the at least two target terminals, and the first terminal is recorded as the terminal A.
  • the terminal A and the terminal B have negotiated the terminal.
  • a locating authorization condition of the positioning terminal B (specific negotiation procedure is shown in FIG. 5).
  • the terminal A sends a location request message to the terminal B.
  • the terminal B transmits the geographical location information including the terminal B to the terminal A.
  • Location response message in S2513, terminal A is based on the bit The response message is obtained, and the location information of the terminal B, that is, the geographical location information is obtained.
  • step S2511 may be absent, that is, the terminal B may report its own geographical location information to the terminal A actively before receiving the location request message of the terminal A.
  • the first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition, including:
  • the terminal B is taken as one of the at least two target terminals, and the first terminal is recorded as the terminal A.
  • the terminal A and the terminal B have negotiated the terminal.
  • a positioning authorization condition of the positioning terminal B (specific negotiation procedure is shown in FIG. 5).
  • terminal A sends a location request message to terminal B.
  • terminal B determines a corresponding map identifier according to its own geographical location information. Location information; in S2523, the terminal B sends a location response message including the location information of the location identification of the terminal B to the terminal A; in S2524, the terminal A acquires the location information of the terminal B, that is, the location of the map identification, according to the location response message. information.
  • step S2521 may also be absent, that is, after the terminal B agrees to be located, the terminal B may actively report its own map identification location information to the terminal A.
  • the terminal A may match the geographical location information to the map identification location information on the electronic map to display the positioning information of the terminal B on the local map in real time.
  • the method further includes:
  • the first terminal sends a third request message including the geographic location information to the server, where the request message is used to request map identification location information corresponding to the geographic location information, where the map identification location information is that the geographic location information matches the map information Post position information;
  • the first terminal determines, according to the third response message, map identification location information of the at least two target terminals.
  • the method further includes:
  • the first terminal matches the geographical location information according to the local map information, and determines map identification location information of the at least two target terminals.
  • the first terminal may also request location information of the at least two target terminals from the network side server.
  • the first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition, including:
  • the first terminal sends a fourth request message including the identifier information of the at least two target terminals to the server, where the request message is used to request map identification location information of the at least two target terminals;
  • the first terminal acquires map identification location information of the at least two target terminals according to the fourth response message.
  • the terminal B is taken as one of the at least two target terminals, and the first terminal is recorded as the terminal A.
  • the terminal A and the terminal B have negotiated the terminal.
  • the locating authorization condition of the locating terminal B (the specific negotiation process is as shown in FIG. 5).
  • the terminal A sends a request message including the identification information of the terminal B to the server according to the positioning authorization condition, to request the terminal B.
  • the map identification information in S2532, the server sends a request message for requesting geographic location information to the terminal B; in S2533, the terminal B reports a response message including its own geographical location information to the server; in S2534, the server passes the map identification information.
  • the server sends a response message including the location identification information of the terminal B to the terminal A; in S2536, the terminal A responds according to the server.
  • the message acquires the location information of the terminal B, that is, the map identification location information.
  • FIG. 5 and FIG. 6(a) to FIG. 6(c) schematically show the process of locating a located terminal.
  • the first terminal in the embodiment of the present invention acquires the location of at least two target terminals.
  • the information that is, the process of respectively acquiring each of the at least two target terminals, may employ the flow shown in FIG. 5 and FIGS. 6(a) to 6(c).
  • the positioning terminal acquires the positioning information of the positioned terminal under the positioning authorization condition negotiated with the positioned terminal, and fully protects the positioned terminal while achieving multi-person positioning. Privacy can effectively improve user experience satisfaction.
  • the positioning information may be presented to the user. Specifically, the positioning information may be displayed on the electronic map or may be in the form of text on the UI interface. Presented to the user, or played to the user in the form of voice, this The embodiment of the invention is not limited thereto.
  • the first terminal may also present its own positioning information when presenting the positioning information of the at least two target terminals.
  • the positioning terminal performs positioning on the positioned terminal according to the positioning authorization condition determined by the positioning terminal and the positioned terminal, and can effectively locate the user while realizing the positioning.
  • the privacy of the terminal effectively improves the user experience.
  • the first terminal determines a shared target terminal of the at least two target terminals, and the shared target terminal is a target terminal that agrees to share the own positioning information.
  • the shared target terminal that agrees to share the location information among the at least two target terminals may be confirmed by sending a request message requesting the shared positioning information to the at least two target terminals.
  • the first terminal determines the shared target terminal in the at least two target terminals, including:
  • the first terminal sends a first request message for requesting sharing location information to the at least two target terminals;
  • the first terminal determines, according to the first response message, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
  • the shared target terminal may be one or more target terminals of the at least two target terminals that agree to share the positioning information.
  • the first terminal may also determine, by the subscription information or the identification information of the at least two target terminals, the target terminal that agrees to share the location information, that is, the shared target terminal.
  • the subscription information of the terminal C indicates that the location information is agreed to be shared with any person, and the first terminal can determine that the terminal C is the shared target terminal by parsing the subscription information of the terminal C, and does not need to send a related request message to the terminal C.
  • the method for sharing location information in the embodiment of the present invention is to share the location information of the location information by sharing the location information on the premise that the location terminal agrees to share the location information, and can protect the shared terminal while implementing the shared location information.
  • the security and privacy can effectively improve user experience satisfaction.
  • the first terminal sends the positioning information of the shared target terminal to the first target terminal of the at least two target terminals.
  • the first target terminal may be at least two target terminals. Any one of them or for multiple target terminals.
  • the first terminal may separately send the positioning information of the shared target terminal to each of the at least two target terminals, so as to share the positioning information of the shared target terminal in the at least two target terminals that are located;
  • the at least two target terminals may be requested to be added to a temporary positioning group, and the positioning information of the shared target terminal is sent to the positioning group, so that the background server distributes the positioning information of the shared target terminal to the positioning group.
  • Each target terminal within.
  • the first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
  • the first terminal separately sends the positioning information of the shared target terminal to each of the at least two target terminals.
  • the first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
  • the first terminal sends the location information of the shared target terminal to the first target terminal, where the first target terminal is a target terminal other than the shared target terminal of the at least two target terminals.
  • At least two target terminals are terminals B, C, D, E, and F, wherein only B is a shared target terminal, and the first terminal may send the location information group of the shared target terminal B to the terminals B, C, and D.
  • E and F may also not send its own positioning information to the terminal B, and only transmit the positioning information of the shared target terminal B to the terminals C, D, E and F.
  • the method further includes:
  • the first terminal sends a second request message for requesting to join the positioning group to the at least two target terminals;
  • the first terminal receives a second response message sent by the at least two target terminals to indicate that the user is authorized to join the positioning group.
  • the first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
  • the first terminal sends the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
  • At least two target terminals are terminals B, C, D, E, and F
  • the first terminal sends a request for joining the positioning group to the terminals B, C, D, E, and F, respectively, and receives the terminal B, After the C, D, E, and F agree to join the response of the positioning group, the first terminal may send the positioning information of the shared target terminal in the positioning group, so that the terminals B, C, D, E, and F are obtained. Share the location information of the target terminal.
  • the first terminal only sends the positioning information of the shared target terminal to the positioning group once, and the message distribution operation of the backend server is performed, so that the members in the positioning group, that is, the terminals B, C, D, E, and F can be
  • the specific means for obtaining the location information of the shared target terminal is the prior art, and is not described here for brevity.
  • the positioning request message sent by the first terminal to the at least two target terminals, the first request message for requesting the shared positioning information, and the second request message for requesting to join the positioning group. can be combined into one request message.
  • at least two target terminals are terminals B, C, D, E, and F.
  • the first terminal sends a request message for establishing a temporary positioning group to the terminals B, C, D, E, and F, respectively, the request message.
  • the terminals B, C, D, E, and F agree to locate (or agree to join the temporary positioning group), but only the terminals B and D agree to share the positioning information, and the first terminal acquires the terminals B, C, D, E and After the positioning information of the F, the positioning information of the terminals B and D is sent in the public page of the temporary positioning group, and the members in the temporary positioning group, that is, the terminals B, C, D, E, and F, and the first terminal share The positioning information of terminals B and D.
  • the first terminal may also send its own positioning information in the public page of the temporary positioning group.
  • the method further includes:
  • the first terminal sends the location information of the first terminal to the at least two target terminals, where the location information is geographic location information or map identification location information, where the location identifier information is a location that matches the geographic location information and the map information. information.
  • the method for sharing the positioning information in the embodiment of the present invention after determining that the positioned terminal agrees to share the positioning information, shares the positioning information of the positioned terminal with multiple people, and can effectively protect the shared positioning information
  • the privacy of the located terminal can effectively improve user experience satisfaction.
  • the first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
  • the first target terminal of the at least two target terminals sends the positioning information of the shared target terminal, where the sharing condition includes sharing time information and/or Share location information.
  • the first terminal may determine the sharing condition by using a local policy or a shared operation instruction input by the user, for example, performing shared positioning information between 3:00 and 5:00. Or stop sharing the operation instruction after the at least two target terminals have reached the destination.
  • a sharing button may be set on the first terminal, for example, “share positioning information in the positioning group” and “location sharing setting”, and assume that the first terminal displays the positioning information of the shared target terminal on the electronic map page.
  • sharing the positioning information of the shared target terminal displayed on the current map page to the members in the positioning group (at least two target terminals) directly click “Share the positioning information in the positioning group”
  • the terminal application receives the instruction, and sends the positioning information of the shared target terminal in the current page to the members in the group, so that each member terminal (at least two target terminals) can receive the positioning information of the shared target terminal.
  • the user can complete the sharing condition by first setting the “positioning sharing setting”. Presets of time information and/or shared location information, for example, the sharing condition is set to be continuously shared within a certain period of time, and information such as the period of the shared transmission may be further set, or may be set until all members in the group are located. The sharing within the group is stopped when the destination is reached. In addition, the sharing condition may default to the positioning authorization condition at the time of positioning.
  • the method for sharing the location information in the embodiment of the present invention by acquiring the location information of the plurality of target terminals, determining the shared target terminal that agrees to share the location information among the plurality of target terminals, and transmitting the location information of the shared target terminal to the The plurality of target terminals can effectively protect the privacy of the located terminal while sharing the positioning information, can improve the security level of the shared positioning information, and can improve the user experience satisfaction.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • FIG. 7 illustrates a method 200 for sharing location information according to an embodiment of the present invention, which may be performed, for example, by a target terminal.
  • the method 200 includes:
  • the target terminal receives a location request message sent by the first terminal, where the location request message packet is sent.
  • the target terminal determines, according to the positioning request message, a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal, where the positioning authorization condition includes positioning time information determined according to the positioning time request information, or according to the positioning. Positioning location information determined by the location information;
  • the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition.
  • the target terminal receives the positioning information of the shared target terminal sent by the first terminal, where the shared target terminal is a target terminal that agrees to share the positioning information.
  • the targeted target terminal sends the positioning information to the first terminal box according to the positioning authorization condition jointly determined by the first terminal that is located and the target terminal that is located. At the same time, the positioning information of the shared target terminal can also be obtained.
  • the method for sharing the location information sends the location information to the terminal that initiated the location according to the location authorization condition jointly determined by the location-initiating terminal and the location terminal, and can effectively protect the located location while being positioned by others.
  • the privacy of the terminal can improve the security of being positioned by others and improve the user experience satisfaction.
  • the positioning authorization information includes positioning time information or positioning location information, and the positioning time information may be one or more time points, or may be one or more time segments, or other time information, that is, the positioning time information indicates the positioning time.
  • the location location information may be location start location information, or location termination location information or other location information, that is, the location location information indicates the location range of the location.
  • the target terminal is the terminal B
  • the first terminal is the terminal A.
  • FIG. 5 shows a specific process of the terminal A and the terminal B negotiating the location authorization condition.
  • the terminal A sends a location request message to the terminal B.
  • the positioning request message includes positioning time request information or positioning location request information.
  • the terminal B determines that the positioning is agreed according to the received positioning request message, and determines the positioning time response information or the positioning location response information according to the positioning request message.
  • the positioning time request information may be directly determined as the positioning time response information, or the modified positioning time request information may be determined as the positioning time response information, and correspondingly, the positioning location request information may be modified or modified.
  • the location location request information is determined as the location location response information; in S23, the terminal B sends a location request response message to the terminal A, the location request response message is used to indicate that the consent is located, and includes a positioning time response determined according to the location request message. Information or location In S24, the terminal A determines, according to the positioning request response message, the positioning authorization condition for the terminal A to locate the terminal B, where the positioning authorization condition includes positioning time information or positioning location information.
  • the location request message sent by the terminal A may further include the identifier information of the terminal A or the terminal B, for example, the user name, the phone number, etc. of the terminal B or the terminal A, or the terminal B or the terminal A. Device type information, etc.
  • the terminal B determines, according to the received positioning request message, whether to agree to the positioning, and the positioning authorization condition when the positioning is agreed. Specifically, the terminal B can match the positioning request information included in the positioning request message by using the local preset positioning condition. Determining the positioning authorization condition, and presenting the positioning authorization condition to the user, and finally confirming the positioning authorization condition by the user; and directly reflecting the positioning request information to the user, completely relying on the user instruction to determine the positioning authorization condition; Setting a high-priority user identification information list, such as a whitelist, the terminal B can automatically match the identification information of the terminal A that initiated the positioning request and the high-priority user identification information list, and the high-priority user identification information list includes the terminal. At time A, the confirmation message allowing the location tracking can be directly replied without the user's instruction.
  • the procedure and method for determining the location authorization condition by the terminal B according to the location request message will be described in detail below.
  • the target terminal determines, according to the location request message, a location authorization condition that the target terminal allows the first terminal to locate, including:
  • the target terminal determines the location request information included in the location request message as the location authorization condition, or the modified location request information determines the location authorization condition.
  • the target terminal may determine the location authorization condition according to the local preset positioning condition, and the local preset location condition may be some thick line security policy, for example, simply allowing to be located, not being located, or allowed within a certain period of time. Is located, or is allowed to be located at a certain point in time, or is allowed to be located within a certain geographical area, etc.; or may be some indication information, for example, when the positioning request information satisfies a specific condition, allowing for a specific time range Or the geographical scope is positioned.
  • the positioning authorization condition may be determined directly according to the positioning request information, or may be determined according to a specific setting of the local preset positioning condition, and the positioning request information is determined to be a positioning authorization condition.
  • the local preset positioning condition may be pre-configured by the target terminal system, or may be set by the user anytime and anywhere.
  • the specific content of the local preset positioning condition is not limited, as long as the local preset positioning is adopted.
  • the condition can determine the positioning authorization condition.
  • the location request message received by the target terminal further includes identifier information of the first terminal
  • the target terminal determines, according to the location request message, a location authorization condition that the target terminal allows the first terminal to locate, including:
  • the target terminal When determining that the local preset identifier information includes the identifier information included in the location request message, the target terminal determines the location time request information or the location location request information in the location request message as the location authorization condition.
  • the local preset identifier information may be a locally stored contact address book of the target terminal, or may be a trusted location contact list set in advance to the target terminal, or may be a terminal type, and may also be used to identify other terminal attributes. Set information. Specifically, for example, the local preset identifier information is a locally stored trusted location contact list of the target terminal, and when it is determined that the user name of the terminal that initiated the location request is located in the trusted location contact list, the The positioning request of the located terminal is initiated, and the positioning time request information or the positioning location request information indicated by the positioning request message may be directly used as the positioning authorization condition.
  • the target terminal after determining the positioning authorization condition according to the local preset positioning condition, the target terminal also needs to present the positioning authorization condition or the indication information indicating the positioning authorization condition to the user of the target terminal, and finally confirm according to the user instruction. Whether to allow the positioning request of the terminal that initiated the positioning, and the positioning authorization condition when the positioning is allowed.
  • the method further includes:
  • the user instruction is used to indicate a location authorization condition authorized by the user
  • a positioning authorization condition authorized by the user as a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal
  • the method further includes:
  • the local preset identifier information of the target terminal may also be a high-priority positioning user identifier information, such as a “location whitelist”.
  • a location whitelist When determining that the user who initiated the positioning request is in the “positioning whitelist”, the positioning may be directly performed.
  • Request information as a location authorization condition and can directly initiate a location
  • the terminal sends a location request response message, and the location request response message indicates a location authorization condition.
  • the target terminal may directly feed back the location request response message to the terminal that initiated the location without relying on the user instruction.
  • the target terminal can also set the low-level user identification information locally, for example, the “location blacklist”. When determining the identification information of the terminal that initiates the positioning in the “location blacklist”, the positioning request of the terminal that initiated the positioning is directly rejected.
  • the target terminal determines the positioning authorization condition according to the local preset positioning condition or the local preset identification information, and then presents the positioning authorization condition to the user, and determines the positioning authorization condition authorized by the user according to the user instruction, and may completely depend on the user.
  • UI input feedback
  • the target terminal determines, according to the location request message, a location authorization condition that the target terminal allows the first terminal to locate, including:
  • the specific presentation manner may be a voice broadcast, for example, the user is in the process of driving, or the user uses a wearable device such as a smart watch, and the presentation manner may also be a user interface (User Surface, referred to as “UI”).
  • UI User Surface
  • the user can directly notify the user, and the system program of the target terminal can be based on the local policy and the acquired information, and the method is specifically determined to be presented to the user.
  • the target terminal may also present the user with suggestions on how to modify the positioning request information.
  • the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition. Specifically, the location information of the target terminal or the map identifier information may be reported to the first terminal according to the location authorization condition. .
  • the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition, including:
  • the target terminal determines location identifier information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information;
  • the target terminal sends the map identifier location information to the first terminal according to the location authorization condition, so that the first terminal locates the target terminal.
  • the target terminal determines location identifier information of the target terminal, including:
  • the target terminal sends a request message including the geographic location information of the target terminal to the server, where the request message is used to request the server to send the map identification location information that matches the geographical location information with the server map information;
  • the target terminal determines the map identification location information of the target terminal according to the response message.
  • the target terminal determines location identifier information of the target terminal, including: the target terminal matches geographical location information of the target terminal according to local map information, and determines the map identifier of the target terminal. location information.
  • the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition, including:
  • the target terminal sends a response message including the geographic location information of the target terminal to the server, so that the server sends the map identification location information that matches the geographical location information and the server map information to the first terminal, so as to facilitate the first A terminal locates the target terminal.
  • the first terminal is the terminal A and the target terminal is the terminal B, as shown in FIG. 6(a) to FIG. 6(c).
  • the terminal A transmits a location request message to the terminal B; in S2512, the terminal B transmits the geographical location information of the terminal B to the terminal A; in S2513, the terminal A acquires the geographical location of the terminal B. Location information to locate it.
  • the step S2511 may be absent, that is, the terminal B may report its own geographical location information to the terminal A actively before receiving the location request message of the terminal A.
  • terminal A transmits a location request message to terminal B; in S2522, terminal B determines corresponding map identification location information according to its own geographical location information; in S2523, terminal B proceeds to terminal A transmits the map identification location information of the terminal B, and in S2524, the terminal A acquires the map identification location information of the terminal B to locate it.
  • step S2521 may also be absent, that is, after the terminal B agrees to be located, the terminal B may actively report its own map identification location information to the terminal A.
  • terminal A sends a packet to the server according to the positioning authorization condition.
  • a request message including the identification information of the terminal B for requesting the map identification information of the terminal B in S2532, the server sends a request message for requesting the geographical location information to the terminal B; in S2533, the terminal B reports the report to the server.
  • the response message of the own geographical location information in S2534, the server matches the geographical location information of the terminal B by the map identification information, and determines the map identification location information of the terminal B; in S2535, the server sends the map identification location including the terminal B to the terminal A.
  • the response message of the information in S2536, the terminal A acquires the map identification location information of the terminal B according to the response message sent by the server to locate the information.
  • the method for sharing the location information sends the location information to the terminal that initiated the location according to the location authorization condition jointly determined by the location-initiating terminal and the location terminal, and can effectively protect the located location while being positioned by others.
  • the privacy of the terminal can improve the security of being positioned by others and improve the user experience satisfaction.
  • the target terminal receives the positioning information of the shared target terminal sent by the first terminal, and the shared target terminal is a target terminal that agrees to share the positioning information.
  • the target terminal can receive the positioning information of the shared target terminal sent by the first terminal according to the positioning authorization condition, and can obtain the positioning information of the shared target terminal sent by the first terminal, and realize that the target terminal locates the other party, wherein the shared target terminal is the consent.
  • a terminal that shares its own location information can receive the positioning information of the shared target terminal sent by the first terminal according to the positioning authorization condition, and can obtain the positioning information of the shared target terminal sent by the first terminal, and realize that the target terminal locates the other party, wherein the shared target terminal is the consent.
  • the method further includes:
  • the target terminal When the target terminal determines to agree to share the location information, the target terminal sends a first response message indicating that the shared location information is agreed to be sent to the first terminal.
  • the first terminal may send the first request message for requesting the shared location information to the first terminal.
  • a first response message indicating consent to share location information.
  • the first terminal may send a first response message indicating that the location information is not agreed to be shared, or may not send any response message, and the default indicates that the shared location is not agreed. information.
  • the location information of the shared target terminal that is sent by the first terminal that is received by the target terminal may further include the location information of the target terminal, The location information of the target terminal itself may not be sent to the target terminal by the processing of the first terminal.
  • the shared target terminal does not include the target terminal.
  • the first terminal can acquire location information of the terminals B, C, D, E, and F, where B and C are shared target terminals, and the first terminal can send the location information group of the shared target terminals B and C to the Terminals B, C, D, E, and F; optionally, when the location information is shared with the terminal B, only the location information of the terminal C can be sent. Similarly, when the location information is shared with the terminal C, only the terminal B can be sent. Location information. For example, when the target terminal is the terminal B, the location information of the shared target terminal that is sent by the first terminal may include the location information of the target terminal, or may not include the location information of the target terminal.
  • the method for sharing the positioning information in the embodiment of the present invention shares the positioning information of the positioned terminal to other terminals under the premise that the positioned terminal agrees to share the location information, and can effectively maintain the privacy of the positioned terminal. And security can improve user experience satisfaction.
  • the method further includes:
  • the target terminal receives the positioning information of the shared target terminal that is sent by the first terminal, and includes:
  • the target terminal receives the positioning information of the shared target terminal in the positioning group.
  • the target terminal is the terminal B, and the first terminal sends a request for joining the positioning group to the terminals B, C, D, E, and F, respectively, and receives the consent of the terminals B, C, D, E, and F.
  • a response to the locating group is added.
  • the first terminal, the terminals B, C, D, E, and F belong to a positioning group, and when the first terminal sends the positioning information of the shared target terminal in the positioning group, All the members in the positioning group can obtain the positioning information of the shared target terminal, that is, the target terminal can receive the positioning information of the shared target terminal in the positioning group.
  • the first terminal only sends the positioning information of the shared target terminal to the positioning group once, and the message distribution operation of the backend server is performed, so that the members in the positioning group, that is, the terminals B, C, D, E, and F can be
  • the specific means for obtaining the location information of the shared target terminal is the prior art, and is not described here for brevity.
  • the method for sharing the location information sends the location information to the terminal that initiated the location according to the location authorization condition jointly determined by the location-initiating terminal and the location terminal, and can effectively protect the located location while being positioned by others.
  • the privacy of the terminal can improve the positioning by others Security can improve user experience satisfaction.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the embodiment of the present invention only uses the first terminal as the initiating positioning terminal and the target terminal as the positioning terminal as an example.
  • the embodiment of the present invention is not limited thereto, and any terminal may serve as a terminal for initiating positioning. Can be used as a terminal to be located.
  • a method for sharing positioning information according to an embodiment of the present invention is described in detail above with reference to FIG. 1 to FIG. 7.
  • a terminal according to an embodiment of the present invention will be described in detail below with reference to FIG. 8 and FIG.
  • FIG. 8 shows a schematic block diagram of a terminal 300 according to an embodiment of the present invention. As shown in FIG. 8, the terminal 300 includes:
  • the obtaining module 310 is configured to acquire positioning information of at least two target terminals
  • a determining module 320 configured to determine a shared target terminal of the at least two target terminals, where the shared target terminal is a target terminal that agrees to share positioning information;
  • the sending module 330 is configured to send the positioning information of the shared target terminal determined by the determining module to the first target terminal of the at least two target terminals.
  • the terminal 300 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
  • the obtaining module includes:
  • a first sending unit configured to send a positioning request message to the at least two target terminals, where the positioning request message includes positioning time request information or positioning location request information for positioning the at least two target terminals by the first terminal;
  • a first receiving unit configured to receive a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate a positioning time response determined by the at least two target terminals according to the positioning request message sent by the first sending unit Information or location location response information;
  • a first determining unit configured to determine, according to the positioning response message received by the first receiving unit, a positioning authorization condition of the at least two target terminals, where the positioning authorization condition includes the positioning time request information and the positioning time response information The determined positioning time information, or the positioning location information determined by the positioning location request information and the positioning location response information;
  • an obtaining unit configured to acquire positioning information of the at least two target terminals according to the positioning authorization condition determined by the first determining unit.
  • the determining module includes:
  • a second sending unit configured to send, to the at least two target terminals, a first request message for requesting shared location information
  • a second receiving unit configured to receive a first response message sent by the second target terminal of the at least two target terminals
  • the second determining unit is configured to determine, according to the first response message received by the second receiving unit, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
  • the sending module is specifically configured to send the positioning information of the shared target terminal to each of the at least two target terminals.
  • the sending module is specifically configured to send the positioning information of the shared target terminal to the first target terminal, where the first target terminal is the shared target of the at least two target terminals. Target terminal outside the terminal.
  • the terminal further includes:
  • the sending module is further configured to send, to the at least two target terminals, a second request message for requesting to join the positioning group;
  • the terminal also includes:
  • a receiving module configured to receive a second response message sent by the at least two target terminals to indicate that the user is authorized to join the positioning group
  • the sending module is configured to send the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
  • the sending module is specifically configured to: when the confirmation that the sharing condition indicated by the user instruction or the local policy is met, send the shared target terminal to the first target terminal of the at least two target terminals.
  • Positioning information including sharing time information and/or sharing location information.
  • the sending module is further configured to send the positioning information of the first terminal to the at least two target terminals, where the positioning information is geographic location information or map identification location information, and the map identifier is The location information is location information after the geographic location information matches the map information.
  • the acquiring unit is specifically configured to receive the at least two items.
  • the first sending unit is further configured to send, to the server, a third request message that includes the geographic location information acquired by the acquiring unit, where the request message is used to request the geographic location information
  • the map identification location information is location information after the geographic location information and the map information are matched;
  • the first receiving unit is further configured to receive a third response message sent by the server, where the response message includes the map identification location information;
  • the first determining unit is further configured to determine map identification location information of the at least two target terminals according to the third response message received by the first receiving unit.
  • the first determining unit is further configured to: determine, according to the local map information, the geographic location information acquired by the acquiring unit, and determine map identification location information of the at least two target terminals.
  • the acquiring unit is configured to receive, by the at least two target terminals, location identifier information of the at least two target terminals that are sent according to the positioning authorization condition, where the map identification location information is Location information of the at least two target terminals that match the map information.
  • the obtaining unit includes:
  • the sending subunit is configured to send, to the server, a fourth request message that includes the identifier information of the at least two target terminals, where the request message is used to request map identification location information of the at least two target terminals;
  • the receiving subunit is configured to receive a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographical location information of the at least two target terminals is matched with the server map information;
  • the obtaining subunit is configured to acquire map identification location information of the at least two target terminals according to the fourth response message received by the receiving subunit.
  • the terminal 300 may correspond to the first terminal in the method for sharing positioning information in the embodiment of the present invention, and the foregoing operations and other operations or functions of the respective modules in the terminal 300 are respectively implemented to implement FIG. 3 to The corresponding processes of the respective methods in FIG. 7 are not described herein again for the sake of brevity.
  • the terminal 300 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the terminal that is being located, and can be implemented by the terminal.
  • the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the terminal that is being located, and can be implemented by the terminal.
  • the terminal 300 according to an embodiment of the present invention is described in detail above with reference to FIG. 8, and another terminal 400 according to an embodiment of the present invention will be described in detail below with reference to FIG.
  • FIG. 9 shows a schematic block diagram of a terminal 400 according to an embodiment of the present invention.
  • the terminal 400 includes:
  • the receiving module 410 is configured to receive a positioning request message sent by the first terminal, where the positioning request message includes positioning time request information or positioning location request information for the first terminal to locate the target terminal;
  • the determining module 420 is configured to determine, according to the positioning request message received by the receiving module, a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal, where the positioning authorization condition includes a positioning time determined according to the positioning time request information.
  • the sending module 430 is configured to send, according to the positioning authorization condition determined by the determining module, location information of the target terminal to the first terminal;
  • the receiving module 410 is further configured to receive the positioning information of the shared target terminal sent by the first terminal, where the shared target terminal is a target terminal that agrees to share the positioning information.
  • the terminal 400 of the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
  • the terminal further includes:
  • the receiving module is further configured to receive, by the first terminal, a first request message for requesting sharing of positioning information
  • the sending module is further configured to: when determining to agree to share the positioning information, send, to the first terminal, a first response message for instructing to agree to share the location information.
  • the receiving module is further configured to receive, by the first terminal, a second request message for requesting to join the positioning group.
  • the sending module is further configured to send, to the first terminal, a second response message for instructing to join the positioning group;
  • the receiving module is specifically configured to receive, in the positioning group, a location letter of the shared target terminal. interest.
  • the positioning information of the target terminal that is received by the receiving module does not include the positioning information of the target terminal.
  • the location request message received by the receiving module further includes identifier information of the first terminal
  • the determining module is specifically configured to: when determining that the local preset identifier information includes the identifier information included in the location request message, determining the location time request information or the location location request information in the location request message as the location authorization condition.
  • the determining module includes:
  • a first sending unit configured to present, to the user, request information for indicating the positioning request message
  • a first receiving unit configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition determined by the user according to the positioning request message;
  • the first determining unit is configured to determine, according to the user instruction received by the first receiving unit, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
  • the determining module further includes:
  • the second sending unit is configured to present, to the user, request information for indicating the positioning authorization condition
  • the second receiving unit is configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition authorized by the user;
  • the second determining unit is configured to determine, according to the user instruction received by the second receiving unit, a positioning authorization condition authorized by the user, as a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
  • the sending module is further configured to send a location response message to the first terminal, where the location response message includes a location authorization condition authorized by the second determining unit.
  • the sending module is further configured to send a location response message to the first terminal, where the location response message includes the location authorization condition determined by the determining module.
  • the sending module includes:
  • a third determining unit configured to determine map identification location information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information;
  • the third sending unit is configured to send the map identification location information to the first terminal according to the positioning authorization condition determined by the determining module, so that the first terminal locates the target terminal.
  • the third determining unit includes:
  • a sending subunit configured to send, to the server, a request message that includes geographic location information of the target terminal, where the request message is used to request the server to send map identification location information that matches the geographic location information with the server map information;
  • a receiving subunit configured to receive a response message sent by the server, where the response message includes the map identification location information
  • Determining a subunit configured to determine map identification location information of the target terminal according to the response message received by the receiving subunit.
  • the third determining unit is configured to: determine, according to the local map information, the geographic location information of the target terminal, and determine the map identification location information of the target terminal.
  • the sending module includes:
  • a third receiving unit configured to receive a request message that is sent by the server and includes the identifier information of the target terminal
  • a fourth sending unit configured to send, to the server, a response message including the geographic location information of the target terminal, so that the server sends, to the first terminal, map identification location information that matches the geographic location information and the server map information, So that the first terminal locates the target terminal.
  • the terminal 400 according to the embodiment of the present invention may correspond to any target terminal in at least two target terminals in the method 100 for sharing positioning information according to the embodiment of the present invention, and the target terminal in the method 200 of sharing positioning information,
  • the foregoing and other operations or functions of the modules in the terminal 400 are respectively implemented in order to implement the corresponding processes of the respective methods in FIG. 3 to FIG. 7.
  • no further details are provided herein.
  • the terminal 400 of the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
  • an embodiment of the present invention further provides a terminal 500, which includes a processor 510, a memory 520, a bus system 530, a receiver 540, and a transmitter 550.
  • the processor 510, the memory 520, the receiver 540 and the transmitter 550 are connected by a bus system 530 for storing instructions for executing instructions stored in the memory 520 to control the receiver 540 to receive.
  • Signal and control transmitter 550 to send a signal.
  • the processor 510 is configured to: acquire positioning information of at least two target terminals; and determine a shared target terminal in the at least two target terminals, where the shared target terminal is a target terminal that agrees to share positioning information; and the transmitter 550 And sending, to the first target terminal of the at least two target terminals, positioning information of the shared target terminal determined by the determining module.
  • the terminal 500 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the terminal that is being located, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
  • the processor 510 may be a central processing unit (“CPU"), and the processor 510 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 520 can include read only memory and random access memory and provides instructions and data to the processor 510. A portion of the memory 520 may also include a non-volatile random access memory. For example, the memory 520 can also store information of the device type.
  • the bus system 530 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 530 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 510 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 520, and the processor 510 reads the information in the memory 520 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the transmitter 550 is configured to send a positioning request message to the at least two target terminals, where the positioning request message includes positioning time request information that the first terminal locates the at least two target terminals or Positioning the location request information; the receiver 540 is configured to receive the location response message sent by the at least two target terminals, where the location response message is used to indicate that the at least two target terminals are determined according to the location request message sent by the transmitter 550.
  • the processor 510 is configured to determine, according to the positioning response message received by the receiver 540, a positioning authorization condition of the at least two target terminals, where the positioning authorization condition includes the positioning time request information and the positioning The positioning time information jointly determined by the time response information, or the positioning location information determined by the positioning location request information and the positioning location response information, and the positioning information of the at least two target terminals according to the positioning authorization condition.
  • the transmitter 550 is configured to send, to the at least two target terminals, a first request message for requesting shared location information, where the receiver 540 is configured to receive the at least two target terminals.
  • the first response message sent by the second target terminal; the processor 510 is configured to determine, according to the first response message, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
  • the transmitter 540 is specifically configured to separately send positioning information of the shared target terminal to each of the at least two target terminals.
  • the transmitter 540 is configured to send, to the first target terminal, location information of the shared target terminal, where the first target terminal is the shared target terminal of the at least two target terminals. Target terminal outside.
  • the transmitter 550 is further configured to send, to the at least two target terminals, a second request message for requesting to join the positioning group.
  • the receiver 540 is configured to receive a second response message that is sent by the at least two target terminals to indicate that the user is authorized to join the positioning group.
  • the transmitter 550 is specifically configured to send the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
  • the transmitter 550 is specifically configured to: when it is confirmed that the sharing condition indicated by the user instruction or the local policy is met, send the shared target terminal to the first target terminal of the at least two target terminals.
  • Positioning information including sharing time information and/or sharing location information.
  • the transmitter 550 is further configured to send, to the at least two target terminals, location information of the first terminal, where the location information is geographic location information or map identification location information, where the map identifier location The information is location information after the geographical location information matches the map information.
  • the processor 510 is specifically configured to receive geographic location information that is sent by the at least two target terminals according to the positioning authorization condition.
  • the transmitter 550 is further configured to send, to the server, a third request message that includes the geographic location information acquired by the acquiring unit, where the request message is used to request a map corresponding to the geographic location information. Identifying location information, where the location identifier information is location information after the geographic location information matches the map information;
  • the receiver 540 is further configured to receive a third response message sent by the server, where the response message includes the map identification location information;
  • the processor 510 is further configured to determine, according to the third response message, map identification location information of the at least two target terminals.
  • the processor 510 is further configured to: determine the map identification location information of the at least two target terminals by matching the geographic location information according to the local map information.
  • the processor 510 is configured to receive, by the at least two target terminals, map identification location information of the at least two target terminals, where the map identification location information is Location information of at least two target terminals that match the map information.
  • the transmitter 550 is configured to send, to the server, a fourth request message that includes the identifier information of the at least two target terminals, where the request message is used to request the map identifier of the at least two target terminals. location information;
  • the receiver 540 is configured to receive a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographic location information of the at least two target terminals is matched with the server map information.
  • the processor 510 is configured to acquire map identification location information of the at least two target terminals according to the fourth response message.
  • the terminal 500 according to the embodiment of the present invention may correspond to the first terminal of the method for sharing positioning information according to the embodiment of the present invention, and may also correspond to the terminal 300 according to the embodiment of the present invention, and each module in the terminal 500
  • the above and other operations or functions are respectively implemented in order to implement the corresponding processes of the respective methods in FIG. 3 to FIG. 7.
  • no further details are provided herein.
  • the terminal 500 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the terminal that is being located, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
  • an embodiment of the present invention further provides a terminal 600, where the terminal 600 includes The processor 610, the memory 620, the bus system 630, the receiver 640, and the transmitter 650.
  • the processor 610, the memory 620, the receiver 640, and the transmitter 650 are connected by a bus system 630.
  • the memory 620 is configured to store instructions for executing the instructions stored in the memory 620 to control the receiver 640 to receive. Signal and control transmitter 650 to send a signal.
  • the receiver 640 is configured to receive a positioning request message sent by the first terminal, where the positioning request message includes positioning time request information or positioning location request information for the first terminal to locate the target terminal, where the processor 610 is configured to: Determining, according to the positioning request message, a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal, where the positioning authorization condition includes positioning time information determined according to the positioning time request information, or positioning determined according to the positioning location information. a location information; a transmitter 650, configured to send the location information of the target terminal to the first terminal according to the location authorization condition determined by the determining module; the receiver 640 is further configured to receive the shared target terminal sent by the first terminal Positioning information, the shared target terminal is a target terminal that agrees to share the positioning information. .
  • the terminal 600 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
  • the processor 610 may be a central processing unit ("CPU"), and the processor 610 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 620 can include read only memory and random access memory and provides instructions and data to the processor 610. A portion of the memory 620 can also include a non-volatile random access memory. For example, the memory 620 can also store information of the device type.
  • the bus system 630 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 630 in the figure.
  • each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 610 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • Software modules can be located in random access memory, flash memory, read-only memory, programmable only Read memory or electrically erasable programmable memory, registers, etc. are well-known storage media in the field.
  • the storage medium is located in the memory 620, and the processor 610 reads the information in the memory 620 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the receiver 640 is further configured to receive, by the first terminal, a first request message that is used by the first terminal to request the shared location information.
  • the transmitter 650 is further configured to: when determining to agree to share the location information. And transmitting, to the first terminal, a first response message for instructing to agree to share the location information.
  • the receiver 640 is further configured to: receive, by the first terminal, a second request message that is sent by the first terminal to request to join the positioning group.
  • the transmitter 650 is further configured to send the first request to the first terminal.
  • a second response message for instructing to join the positioning group; the receiver 640 is specifically configured to receive the positioning information of the shared target terminal in the positioning group.
  • the location request message received by the receiver 640 further includes the identifier information of the first terminal, where the processor 610 is further configured to: when determining that the local preset identifier information includes the location request message When the information is identified, the positioning time request information or the positioning location request information in the positioning request message is determined as the positioning authorization condition.
  • the transmitter 650 is configured to present, to the user, request information for indicating the location request message
  • the receiver 640 is configured to receive a user instruction, where the user instruction is used to indicate, according to the user
  • the positioning authorization condition determined by the positioning request message; the processor 610 is configured to determine, according to the user instruction, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
  • the transmitter 650 is further configured to: present, to the user, request information for indicating the location authorization condition; the receiver 640 is further configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition authorized by the user; the processor 610 is further configured to determine, according to the user instruction, a positioning authorization condition authorized by the user as a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal; The device 650 is further configured to send a location response message to the first terminal, where the location response message includes a location authorization condition authorized by the user.
  • the transmitter 650 is further configured to send a location response message to the first terminal, where the location response message includes the location authorization condition determined by the determining module.
  • the processor 610 is configured to determine map identification location information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information; the transmitter 650 is further configured to: determine the location according to the determining module The right condition sends the map identification location information to the first terminal, so that the first terminal locates the target terminal.
  • the transmitter 650 is configured to send, to the server, a request message that includes geographic location information of the target terminal, where the request message is used to request the server to send the geographic location information and the server map information.
  • the map identifies location information;
  • the receiver 640 is configured to receive a response message sent by the server, where the response message includes the map identifier location information, and the processor 610 is configured to determine, according to the response message, a map identifier location of the target terminal. information.
  • the processor 610 is further configured to determine, according to the local map information, the geographic location information of the target terminal, and determine the map identification location information of the target terminal.
  • the receiver 640 is further configured to receive, by the server, a request message that includes the identifier information of the target terminal, where the transmitter 650 is configured to send, to the server, location information including the target terminal.
  • the response message is sent to the server to send the map identification location information that matches the geographic location information to the server map information, so that the first terminal locates the target terminal.
  • the terminal 600 may correspond to any target terminal in the at least two target terminals in the method 100 for sharing positioning information according to the embodiment of the present invention, and may correspond to the shared positioning information according to the embodiment of the present invention.
  • the target terminal in method 200 and may correspond to terminal 400 in accordance with an embodiment of the present invention, and the above-described and other operations or functions of the various modules in terminal 600 are respectively implemented to implement respective processes of the various methods in FIGS. 3-7. For the sake of brevity, it will not be repeated here.
  • the terminal 600 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
  • system and “network” are used interchangeably herein.
  • the term “or” in this document is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A or B, which may indicate that A exists separately, A and B exist simultaneously, and B exists separately.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

A method and terminal for sharing positioning information are provided in the embodiments of the present invention. The method includes that: a first terminal performs positioning to at least two target terminals and obtains the positioning information of the at least two target terminals; the first terminal determines, in the at least two target terminals, a sharing target terminal which is a target terminal agreeing to share the positioning information; and the first terminal transmits to the at least two target terminals the positioning information of at least one sharing target terminal. With the method and terminal for sharing positioning information provided by the embodiments of the present invention, the privacy of positioned terminals can be effectively protected and user experience can be effectively improved.

Description

共享定位信息的方法和终端Method and terminal for sharing positioning information
本申请要求于2014年3月11日提交中国专利局、申请号为201410088366.9、发明名称为“共享定位信息的方法和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201410088366.9, entitled "Method and Terminal for Sharing Location Information", filed on March 11, 2014, the entire contents of which is incorporated herein by reference. .
技术领域Technical field
本发明实施例涉及通信领域,并且更具体地涉及共享定位信息的方法和终端。Embodiments of the present invention relate to the field of communications, and more particularly to a method and terminal for sharing positioning information.
背景技术Background technique
近年来,随着用户需求的增加,移动定位技术受到越来越多的关注,推动了移动定位技术发展。移动定位技术,是指通过定位技术获取终端的定位信息(例如,经纬度坐标),并在电子地图上标出被定位对象的位置的技术或服务。其中,定位他人的移动定位技术指的是,终端不仅可以获取自己的定位信息,还可以获取其他终端的定位信息。现有的关于定位他人的定位技术以及共享多人定位信息的定位技术,实现方法比较复杂,不便于实现,用户之间的实时位置信息共享不够直接,而且没有很好地考虑被定位终端的隐私,安全级别较低。In recent years, with the increase of user demand, mobile positioning technology has received more and more attention, which has promoted the development of mobile positioning technology. The mobile positioning technology refers to a technology or service for acquiring the positioning information of the terminal (for example, latitude and longitude coordinates) by using the positioning technology, and marking the position of the positioned object on the electronic map. The mobile positioning technology for locating other people refers to that the terminal can not only obtain its own positioning information, but also obtain positioning information of other terminals. The existing positioning technology for locating other people and the positioning technology for sharing multi-person positioning information are complicated and inconvenient to implement, and real-time location information sharing between users is not direct, and the privacy of the positioned terminal is not well considered. , the security level is lower.
发明内容Summary of the invention
本发明实施例提供一种共享定位信息的方法和终端,可以实现共享定位信息的同时,有效保护被定位终端的安全和隐私,有效提高了用户体验。The embodiment of the invention provides a method and a terminal for sharing positioning information, which can share the positioning information, effectively protect the security and privacy of the positioned terminal, and effectively improve the user experience.
第一方面,提供了一种共享定位信息的方法,该方法包括:In a first aspect, a method for sharing location information is provided, the method comprising:
第一终端获取至少两个目标终端的定位信息;The first terminal acquires positioning information of at least two target terminals;
该第一终端确定该至少两个目标终端中的共享目标终端,该共享目标终端为同意共享自己定位信息的目标终端;Determining, by the first terminal, a shared target terminal of the at least two target terminals, where the shared target terminal is a target terminal that agrees to share its own positioning information;
该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息。The first terminal sends the positioning information of the shared target terminal to the first target terminal of the at least two target terminals.
结合第一方面,在第一方面的第一种可能的实现方式中,该第一终端获取至少两个目标终端的定位信息,包括: With reference to the first aspect, in a first possible implementation manner of the first aspect, the acquiring, by the first terminal, location information of the at least two target terminals includes:
该第一终端向该至少两个目标终端发送定位请求消息,该定位请求消息包括第一终端对该至少两个目标终端进行定位的定位时间请求信息或定位位置请求信息;The first terminal sends a positioning request message to the at least two target terminals, where the positioning request message includes positioning time request information or positioning location request information for positioning the at least two target terminals by the first terminal;
该第一终端接收该至少两个目标终端发送的定位响应消息,该定位响应消息用于指示该至少两个目标终端根据该定位请求消息确定的定位时间响应信息或定位位置响应信息;Receiving, by the first terminal, a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate positioning time response information or positioning location response information determined by the at least two target terminals according to the positioning request message;
该第一终端根据该定位响应消息,确定该至少两个目标终端的定位授权条件,该定位授权条件包括经该定位时间请求信息和该定位时间响应信息共同确定的定位时间信息,或经该定位位置请求信息和该定位位置响应信息共同确定的定位位置信息;Determining, by the first terminal, a positioning authorization condition of the at least two target terminals according to the positioning response message, where the positioning authorization condition includes positioning time information jointly determined by the positioning time request information and the positioning time response information, or Positioning location information jointly determined by the location request information and the location location response information;
该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息。The first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,该第一终端确定该至少两个目标终端中的共享目标终端,包括:With reference to the first aspect, or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the determining, by the first terminal, the shared target terminal in the at least two target terminals includes:
该第一终端向该至少两个目标终端发送用于请求共享位置信息的第一请求消息;The first terminal sends a first request message for requesting sharing location information to the at least two target terminals;
该第一终端接收该至少两个目标终端中的第二目标终端发送的第一响应消息;Receiving, by the first terminal, a first response message sent by the second target terminal of the at least two target terminals;
该第一终端根据该第一响应消息,将该第二目标终端中同意共享位置信息的目标终端确定为该共享目标终端。The first terminal determines, according to the first response message, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
结合第一方面或第一方面的第一种或第二种可能的实现方式中任一种可能的实现方式,在第一方面的第三种可能的实现方式中,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息,包括:With reference to the first aspect, or any one of the possible implementation manners of the first or the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the first terminal The first target terminal of the two target terminals sends the location information of the shared target terminal, including:
该第一终端分别向该至少两个目标终端中的每个目标终端发送该共享目标终端的定位信息。The first terminal separately sends the positioning information of the shared target terminal to each of the at least two target terminals.
结合第一方面或第一方面的第一种或第二种可能的实现方式中任一种可能的实现方式,在第一方面的第四种可能的实现方式中,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息,包括: With reference to the first aspect, or any one of the possible implementation manners of the first or the second possible implementation of the first aspect, in a fourth possible implementation manner of the first aspect, the first terminal The first target terminal of the two target terminals sends the location information of the shared target terminal, including:
该第一终端向该第一目标终端发送该共享目标终端的定位信息,该第一目标终端为该至少两个目标终端中除该共享目标终端之外的目标终端。The first terminal sends the location information of the shared target terminal to the first target terminal, where the first target terminal is a target terminal other than the shared target terminal of the at least two target terminals.
结合第一方面或第一方面的第一种或第二种可能的实现方式中任一种可能的实现方式,在第一方面的第五种可能的实现方式中,该方法还包括:With reference to the first aspect, or any one of the possible implementations of the first or the second possible implementation of the first aspect, in a fifth possible implementation manner of the first aspect, the method further includes:
该第一终端向该至少两个目标终端发送用于请求加入定位群组的第二请求消息;The first terminal sends a second request message for requesting to join the positioning group to the at least two target terminals;
该第一终端接收该至少两个目标终端发送的用于指示同意加入该定位群组的第二响应消息;The first terminal receives a second response message sent by the at least two target terminals to indicate that the user is authorized to join the positioning group.
其中,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息,包括:The first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
该第一终端向该定位群组发送该共享目标终端的定位信息,以便于该至少两个目标终端获取该共享目标终端的定位信息。The first terminal sends the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
结合第一方面或第一方面的第一种至第五种可能的实现方式中任一种可能的实现方式,在第一方面的第六种可能的实现方式中,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息,包括:With reference to the first aspect, or any one of the first to the fifth possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, the first terminal The first target terminal of the two target terminals sends the location information of the shared target terminal, including:
该第一终端当确认用户指令或本地策略所指示的共享条件满足时,向该至少两个目标终端中的第一目标终端发送共享目标终端的定位信息,该共享条件包括共享时间信息和/或共享位置信息。When the first terminal confirms that the sharing condition indicated by the user command or the local policy is satisfied, the first target terminal of the at least two target terminals sends the positioning information of the shared target terminal, where the sharing condition includes sharing time information and/or Share location information.
结合第一方面或第一方面的第一种至第六种可能的实现方式中任一种可能的实现方式,在第一方面的第七种可能的实现方式中,该方法还包括:With reference to the first aspect, or any one of the first to the sixth possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, the method further includes:
该第一终端向该至少两个目标终端发送该第一终端的定位信息,该定位信息为地理位置信息或者地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息。The first terminal sends the location information of the first terminal to the at least two target terminals, where the location information is geographic location information or map identification location information, where the location identifier information is a location that matches the geographic location information and the map information. information.
结合第一方面的第一种至第七种可能的实现方式中任一种可能的实现方式,在第一方面的第八种可能的实现方式中,该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息,包括:With reference to any one of the possible implementations of the first to the seventh possible implementations of the first aspect, in an eighth possible implementation manner of the first aspect, the first terminal obtains according to the positioning authorization condition The positioning information of the at least two target terminals includes:
该第一终端接收该至少两个目标终端根据该定位授权条件发送的地理位置信息。The first terminal receives geographical location information that is sent by the at least two target terminals according to the positioning authorization condition.
结合第一方面的第八种可能的实现方式,在第一方面的第九种可能的实现方式中,该方法还包括: In conjunction with the eighth possible implementation of the first aspect, in a ninth possible implementation manner of the first aspect, the method further includes:
该第一终端向服务器发送包括该地理位置信息的第三请求消息,该请求消息用于请求与该地理位置信息对应的地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息;The first terminal sends a third request message including the geographic location information to the server, where the request message is used to request map identification location information corresponding to the geographic location information, where the map identification location information is that the geographic location information matches the map information Post position information;
该第一终端接收该服务器发送的第三响应消息,该响应消息包括该地图标识位置信息;Receiving, by the first terminal, a third response message sent by the server, where the response message includes the map identification location information;
该第一终端根据该第三响应消息,确定该至少两个目标终端的地图标识位置信息。The first terminal determines, according to the third response message, map identification location information of the at least two target terminals.
结合第一方面的第八种可能的实现方式,在第一方面的第十种可能的实现方式中,该方法还包括:In conjunction with the eighth possible implementation of the first aspect, in a tenth possible implementation manner of the first aspect, the method further includes:
该第一终端根据本地地图信息匹配该地理位置信息,确定该至少两个目标终端的地图标识位置信息。The first terminal matches the geographical location information according to the local map information, and determines map identification location information of the at least two target terminals.
结合第一方面的第一种至第七种可能的实现方式中任一种可能的实现方式,在第一方面的第十一种可能的实现方式中,该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息,包括:With reference to any one of the possible implementations of the first to seventh possible implementations of the first aspect, in the eleventh possible implementation manner of the first aspect, the first terminal is configured according to the positioning authorization condition, Obtaining location information of the at least two target terminals, including:
该第一终端接收该至少两个目标终端根据该定位授权条件发送的该至少两个目标终端的地图标识位置信息,该地图标识位置信息为该至少两个目标终端的地理位置信息与地图信息匹配后的位置信息。Receiving, by the first terminal, map identification location information of the at least two target terminals that are sent by the at least two target terminals according to the positioning authorization condition, where the map identification location information is that the geographical location information of the at least two target terminals matches the map information Post location information.
结合第一方面的第一种至第七种可能的实现方式中任一种可能的实现方式,在第一方面的第十二种可能的实现方式中,该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息,包括:With reference to any one of the first to the seventh possible implementation manners of the first aspect, in a twelfth possible implementation manner of the first aspect, the first terminal, according to the positioning authorization condition, Obtaining location information of the at least two target terminals, including:
该第一终端向服务器发送包括该至少两个目标终端的标识信息的第四请求消息,该请求消息用于请求该至少两个目标终端的地图标识位置信息;The first terminal sends a fourth request message including the identifier information of the at least two target terminals to the server, where the request message is used to request map identification location information of the at least two target terminals;
该第一终端接收该服务器发送的第四响应消息,该第四响应消息包括将该至少两个目标终端的地理位置信息与服务器地图信息进行匹配后的该地图标识位置信息;Receiving, by the first terminal, a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographical location information of the at least two target terminals is matched with the server map information;
该第一终端根据该第四响应消息,获取该至少两个目标终端的地图标识位置信息。The first terminal acquires map identification location information of the at least two target terminals according to the fourth response message.
第二方面提供了一种共享定位信息的方法,该方法包括:The second aspect provides a method for sharing location information, the method comprising:
目标终端接收第一终端发送的定位请求消息,该定位请求消息包括第一终端对该目标终端进行定位的定位时间请求信息或定位位置请求信息;The target terminal receives the positioning request message sent by the first terminal, where the positioning request message includes positioning time request information or positioning location request information for the first terminal to locate the target terminal;
该目标终端根据该定位请求消息,确定该目标终端允许该第一终端对其 进行定位的定位授权条件,该定位授权条件包括根据该定位时间请求信息确定的定位时间信息,或根据该定位位置信息确定的定位位置信息;Determining, by the target terminal, the target terminal to allow the first terminal to a positioning authorization condition for performing positioning, where the positioning authorization condition includes positioning time information determined according to the positioning time request information, or positioning position information determined according to the positioning position information;
该目标终端根据该定位授权条件,向该第一终端发送该目标终端的定位信息;The target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition;
该目标终端接收该第一终端发送的共享目标终端的定位信息,该共享目标终端为同意共享定位信息的目标终端。The target terminal receives the positioning information of the shared target terminal sent by the first terminal, and the shared target terminal is a target terminal that agrees to share the positioning information.
结合第二方面,在第二方面的第一种可能的实现方式中,该方法还包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes:
该目标终端接收该第一终端发送的用于请求共享定位信息的第一请求消息;Receiving, by the target terminal, a first request message that is sent by the first terminal to request to share positioning information;
该目标终端当确定同意共享定位信息时,向该第一终端发送用于指示同意共享位置信息的第一响应消息。When the target terminal determines to agree to share the location information, the target terminal sends a first response message indicating that the shared location information is agreed to be sent to the first terminal.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,该方法还包括:With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the method further includes:
该目标终端接收该第一终端发送的用于请求加入定位群组的第二请求消息;Receiving, by the target terminal, a second request message sent by the first terminal for requesting to join the positioning group;
该目标终端向该第一终端发送用于指示同意加入该定位群组的第二响应消息;Sending, by the target terminal, a second response message for indicating to join the positioning group to the first terminal;
该目标终端接收该第一终端发送的共享目标终端的定位信息,包括:The target terminal receives the positioning information of the shared target terminal that is sent by the first terminal, and includes:
该目标终端在该定位群组内接收该共享目标终端的定位信息。The target terminal receives the positioning information of the shared target terminal in the positioning group.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第三种可能的实现方式中,该共享目标终端不包括该目标终端。In conjunction with the second aspect or the first possible implementation of the second aspect, in a third possible implementation of the second aspect, the shared target terminal does not include the target terminal.
结合第二方面或第二方面的第一种至第三种可能的实现方式中的任一种可能的实现方式,在第二方面的第四种可能的实现方式中,该目标终端接收的该定位请求消息中还包括该第一终端的标识信息;With reference to the second aspect, or any one of the first to the third possible implementation manners of the second aspect, in the fourth possible implementation manner of the second aspect, the target terminal receives the The location request message further includes identifier information of the first terminal;
该目标终端根据该定位请求消息,确定该目标终端允许该第一终端对其进行定位的定位授权条件,包括:The target terminal determines, according to the location request message, a location authorization condition that the target terminal allows the first terminal to locate, including:
该目标终端当确定本地预设标识信息包括该定位请求消息包括的该标识信息时,将该定位请求消息中的定位时间请求信息或定位位置请求信息确定为该定位授权条件。When determining that the local preset identifier information includes the identifier information included in the location request message, the target terminal determines the location time request information or the location location request information in the location request message as the location authorization condition.
结合第二方面或第二方面的第一种至第三种可能的实现方式中的任一种可能的实现方式,在第二方面的第五种可能的实现方式中,该目标终端根 据该定位请求消息,确定该目标终端允许该第一终端对其进行定位的定位授权条件,包括:With reference to the second aspect or any one of the first to third possible implementation manners of the second aspect, in a fifth possible implementation manner of the second aspect, the target terminal root And determining, according to the positioning request message, a positioning authorization condition that the target terminal allows the first terminal to locate, including:
向用户呈现用于指示该定位请求消息的请求信息;Presenting to the user request information indicating the positioning request message;
接收用户指令,该用户指令用于指示经用户根据该定位请求消息确定的定位授权条件;Receiving a user instruction, where the user instruction is used to indicate a positioning authorization condition determined by the user according to the positioning request message;
根据该用户指令,确定该目标终端允许该第一终端对其进行定位的定位授权条件。And determining, according to the user instruction, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
结合第二方面的第四种可能的实现方式,在第二方面的第六种可能的实现方式中,该方法还包括:In conjunction with the fourth possible implementation of the second aspect, in a sixth possible implementation of the second aspect, the method further includes:
向用户呈现用于指示该定位授权条件的请求信息;Presenting to the user request information indicating the location authorization condition;
接收用户指令,该用户指令用于指示经用户授权的定位授权条件;Receiving a user instruction, the user instruction is used to indicate a location authorization condition authorized by the user;
根据该用户指令,将经该用户授权的定位授权条件确定为该目标终端允许该第一终端对其进行定位的定位授权条件;Determining, according to the user instruction, a positioning authorization condition authorized by the user as a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal;
向该第一终端发送定位响应消息,该定位响应消息包括该经用户授权的定位授权条件。Sending a location response message to the first terminal, where the location response message includes the location authorization condition authorized by the user.
结合第二方面的第四种或第五种可能的实现方式,在第二方面的第七种可能的实现方式中,该方法还包括:In conjunction with the fourth or fifth possible implementation of the second aspect, in a seventh possible implementation of the second aspect, the method further includes:
向该第一终端发送定位响应消息,该定位响应消息包括该定位授权条件。Sending a location response message to the first terminal, where the location response message includes the location authorization condition.
结合第二方面或第二方面的第一种至第七种可能的实现方式中的任一种可能的实现方式,在第二方面的第八种可能的实现方式中,该目标终端根据该定位授权条件,向该第一终端发送该目标终端的定位信息,包括:With reference to the second aspect, or any one of the first to the seventh possible implementation manners of the second aspect, in the eighth possible implementation manner of the second aspect, the target terminal is configured according to the positioning The authorization condition, the location information of the target terminal is sent to the first terminal, including:
该目标终端确定该目标终端的地图标识位置信息,该地图标识位置信息为该目标终端的地理位置信息与地图信息匹配后的位置信息;The target terminal determines location identifier information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information;
该目标终端根据该定位授权条件,向该第一终端发送该地图标识位置信息,以便于该第一终端对该目标终端进行定位。The target terminal sends the map identifier location information to the first terminal according to the location authorization condition, so that the first terminal locates the target terminal.
结合第二方面的第八种可能的实现方式,在第二方面的第九种可能的实现方式中,该目标终端确定该目标终端的地图标识位置信息,包括:With reference to the eighth possible implementation of the second aspect, in a ninth possible implementation manner of the second aspect, the target terminal determines, by the target terminal, map identification location information, including:
该目标终端向服务器发送包括该目标终端的地理位置信息的请求消息,该请求消息用于请求服务器发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息; The target terminal sends a request message including the geographic location information of the target terminal to the server, where the request message is used to request the server to send the map identification location information that matches the geographical location information with the server map information;
该目标终端接收该服务器发送的响应消息,该响应消息包括该地图标识位置信息;Receiving, by the target terminal, a response message sent by the server, where the response message includes the map identification location information;
该目标终端根据该响应消息,确定该目标终端的地图标识位置信息。The target terminal determines the map identification location information of the target terminal according to the response message.
结合第二方面的第八种可能的实现方式,在第二方面的第十种可能的实现方式中,该目标终端确定该目标终端的地图标识位置信息,包括:该目标终端根据本地地图信息匹配该目标终端的地理位置信息,确定该目标终端的该地图标识位置信息。With reference to the eighth possible implementation of the second aspect, in a tenth possible implementation manner of the second aspect, the target terminal determines the location information of the target location of the target terminal, including: the target terminal matches according to the local map information The geographic location information of the target terminal determines the map identification location information of the target terminal.
结合第二方面或第二方面的第一种至第七种可能的实现方式中的任一种可能的实现方式,在第二方面的第十一种可能的实现方式中,该目标终端根据该定位授权条件,向该第一终端发送该目标终端的定位信息,包括:With reference to the second aspect, or any one of the first to the seventh possible implementation manners of the second aspect, in the eleventh possible implementation manner of the second aspect, And locating the authorization condition, and sending the location information of the target terminal to the first terminal, including:
该目标终端接收服务器发送的包括该目标终端的标识信息的请求消息;Receiving, by the target terminal, a request message that is sent by the server and includes identifier information of the target terminal;
该目标终端向该服务器发送包括该目标终端的地理位置信息的响应消息,以便于该服务器向该第一终端发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息,以便于该第一终端对该目标终端进行定位。The target terminal sends a response message including the geographic location information of the target terminal to the server, so that the server sends the map identification location information that matches the geographical location information and the server map information to the first terminal, so as to facilitate the first A terminal locates the target terminal.
第三方面提供了一种终端,该终端包括:The third aspect provides a terminal, where the terminal includes:
获取模块,用于获取至少两个目标终端的定位信息;An obtaining module, configured to acquire positioning information of at least two target terminals;
确定模块,用于确定该至少两个目标终端中的共享目标终端,该共享目标终端为同意共享定位信息的目标终端;a determining module, configured to determine a shared target terminal in the at least two target terminals, where the shared target terminal is a target terminal that agrees to share the positioning information;
发送模块,用于向该至少两个目标终端中的第一目标终端发送该确定模块确定的该共享目标终端的定位信息。And a sending module, configured to send the positioning information of the shared target terminal determined by the determining module to the first target terminal of the at least two target terminals.
结合第三方面,在第三方面的第一种可能的实现方式中,该获取模块包括:In conjunction with the third aspect, in a first possible implementation manner of the third aspect, the acquiring module includes:
第一发送单元,用于向该至少两个目标终端发送定位请求消息,该定位请求消息包括第一终端对该至少两个目标终端进行定位的定位时间请求信息或定位位置请求信息;a first sending unit, configured to send a positioning request message to the at least two target terminals, where the positioning request message includes positioning time request information or positioning location request information for positioning the at least two target terminals by the first terminal;
第一接收单元,用于接收该至少两个目标终端发送的定位响应消息,该定位响应消息用于指示该至少两个目标终端根据该第一发送单元发送的该定位请求消息确定的定位时间响应信息或定位位置响应信息;a first receiving unit, configured to receive a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate a positioning time response determined by the at least two target terminals according to the positioning request message sent by the first sending unit Information or location location response information;
第一确定单元,用于根据该第一接收单元接收的该定位响应消息,确定该至少两个目标终端的定位授权条件,该定位授权条件包括经该定位时间请求信息和该定位时间响应信息共同确定的定位时间信息,或经该定位位置请 求信息和该定位位置响应信息共同确定的定位位置信息;a first determining unit, configured to determine, according to the positioning response message received by the first receiving unit, a positioning authorization condition of the at least two target terminals, where the positioning authorization condition includes the positioning time request information and the positioning time response information Determine the positioning time information, or please go through the positioning position Finding location location information jointly determined by the information and the location location response information;
获取单元,用于根据该第一确定单元确定的该定位授权条件,获取该至少两个目标终端的定位信息。And an obtaining unit, configured to acquire positioning information of the at least two target terminals according to the positioning authorization condition determined by the first determining unit.
结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,该确定模块包括:With reference to the third aspect, or the first possible implementation manner of the third aspect, in the second possible implementation manner of the third aspect, the determining module includes:
第二发送单元,用于向该至少两个目标终端发送用于请求共享位置信息的第一请求消息;a second sending unit, configured to send, to the at least two target terminals, a first request message for requesting shared location information;
第二接收单元,用于接收该至少两个目标终端中的第二目标终端发送的第一响应消息;a second receiving unit, configured to receive a first response message sent by the second target terminal of the at least two target terminals;
第二确定单元,用于根据该第二接收单元接收的该第一响应消息,将该第二目标终端中同意共享位置信息的目标终端确定为该共享目标终端。The second determining unit is configured to determine, according to the first response message received by the second receiving unit, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
结合第三方面或第三方面的第一种或第二种可能的实现方式中任一种可能的实现方式,在第三方面的第三种可能的实现方式中,该发送模块具体用于,分别向该至少两个目标终端中的每个目标终端发送该共享目标终端的定位信息。With reference to the third aspect, or any one of the possible implementation manners of the first or the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the sending module is specifically configured to: The positioning information of the shared target terminal is respectively sent to each of the at least two target terminals.
结合第三方面或第三方面的第一种或第二种可能的实现方式中任一种可能的实现方式,在第三方面的第四种可能的实现方式中,该发送模块具体用于,向该第一目标终端发送该共享目标终端的定位信息,该第一目标终端为该至少两个目标终端中除该共享目标终端之外的目标终端。With reference to the third aspect, or any one of the possible implementation manners of the first or the second possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the sending module is specifically configured to: And transmitting the positioning information of the shared target terminal to the first target terminal, where the first target terminal is a target terminal other than the shared target terminal among the at least two target terminals.
结合第三方面或第三方面的第一种或第二种可能的实现方式中任一种可能的实现方式,在第三方面的第五种可能的实现方式中,该终端还包括:With reference to the third aspect, or any one of the possible implementation manners of the first or the second possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, the terminal further includes:
该发送模块还用于,向该至少两个目标终端发送用于请求加入定位群组的第二请求消息;The sending module is further configured to send, to the at least two target terminals, a second request message for requesting to join the positioning group;
该终端还包括:The terminal also includes:
接收模块,用于接收该至少两个目标终端发送的用于指示同意加入该定位群组的第二响应消息;a receiving module, configured to receive a second response message sent by the at least two target terminals to indicate that the user is authorized to join the positioning group;
该发送模块具体用于,向该定位群组发送该共享目标终端的定位信息,以便于该至少两个目标终端获取该共享目标终端的定位信息。The sending module is configured to send the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
结合第三方面或第三方面的第一种至第五种可能的实现方式中任一种可能的实现方式,在第三方面的第六种可能的实现方式中,该发送模块具体用于,当确认用户指令或本地策略所指示的共享条件满足时,向该至少两个 目标终端中的第一目标终端发送共享目标终端的定位信息,该共享条件包括共享时间信息和/或共享位置信息。With reference to the third aspect, or any one of the first to the fifth possible implementation manners of the third aspect, in a sixth possible implementation manner of the third aspect, the sending module is specifically configured to: When confirming that the sharing condition indicated by the user instruction or the local policy is satisfied, to the at least two The first target terminal in the target terminal sends the positioning information of the shared target terminal, and the sharing condition includes shared time information and/or shared location information.
结合第三方面或第三方面的第一种至第六种可能的实现方式中任一种可能的实现方式,在第三方面的第七种可能的实现方式中,该发送模块还用于,向该至少两个目标终端发送该第一终端的定位信息,该定位信息为地理位置信息或者地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息。With reference to the third aspect, or any one of the first to the sixth possible implementation manners of the third aspect, in a seventh possible implementation manner of the third aspect, the sending module is further configured to: The location information of the first terminal is sent to the at least two target terminals, where the location information is geographic location information or map identification location information, where the location identifier information is location information that matches the geographic location information and the map information.
结合第三方面的第一种至第七种可能的实现方式中任一种可能的实现方式,在第三方面的第八种可能的实现方式中,该获取单元具体用于,接收该至少两个目标终端根据该定位授权条件发送的地理位置信息。With reference to any one of the first to the seventh possible implementation manners of the third aspect, in an eighth possible implementation manner of the third aspect, the acquiring unit is specifically configured to receive the at least two Geographical location information sent by the target terminal according to the positioning authorization condition.
结合第八种可能的实现方式,在第三方面的第九种可能的实现方式中,In conjunction with the eighth possible implementation, in a ninth possible implementation of the third aspect,
该第一发送单元还用于,向服务器发送包括该获取单元获取的该地理位置信息的第三请求消息,该请求消息用于请求与该地理位置信息对应的地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息;The first sending unit is further configured to send, to the server, a third request message that includes the geographic location information acquired by the acquiring unit, where the request message is used to request map identification location information corresponding to the geographic location information, where the map identification location The information is location information after the geographical location information matches the map information;
该第一接收单元还用于,接收该服务器发送的第三响应消息,该响应消息包括该地图标识位置信息;The first receiving unit is further configured to receive a third response message sent by the server, where the response message includes the map identification location information;
该第一确定单元还用于,根据该第一接收单元接收的该第三响应消息,确定该至少两个目标终端的地图标识位置信息。The first determining unit is further configured to determine map identification location information of the at least two target terminals according to the third response message received by the first receiving unit.
结合第八种可能的实现方式,在第三方面的第十种可能的实现方式中,该第一确定单元还用于,根据本地地图信息匹配该获取单元获取的该地理位置信息,确定该至少两个目标终端的地图标识位置信息。With reference to the eighth possible implementation manner, in a tenth possible implementation manner of the third aspect, the first determining unit is further configured to: determine, according to the local map information, the geographical location information acquired by the acquiring unit, determine the at least The map of the two target terminals identifies the location information.
结合第三方面的第一种至第七种可能的实现方式中任一种可能的实现方式,在第三方面的第十一种可能的实现方式中,该获取单元具体用于,接收该至少两个目标终端根据该定位授权条件发送的该至少两个目标终端的地图标识位置信息,该地图标识位置信息为该至少两个目标终端的地理位置信息与地图信息匹配后的位置信息。With reference to any one of the possible implementations of the first to seventh possible implementations of the third aspect, in an eleventh possible implementation manner of the third aspect, the acquiring unit is specifically configured to receive the at least The map identification location information of the at least two target terminals sent by the two target terminals according to the positioning authorization condition, where the map identification location information is location information after the geographical location information of the at least two target terminals matches the map information.
结合第三方面的第一种至第七种可能的实现方式中任一种可能的实现方式,在第三方面的第十二种可能的实现方式中,该获取单元包括:With reference to any one of the first to the seventh possible implementation manners of the third aspect, in the twelfth possible implementation manner of the third aspect, the acquiring unit includes:
发送子单元用于,向服务器发送包括该至少两个目标终端的标识信息的第四请求消息,该请求消息用于请求该至少两个目标终端的地图标识位置信 息;The sending subunit is configured to send, to the server, a fourth request message including the identifier information of the at least two target terminals, where the request message is used to request a map identifier location letter of the at least two target terminals interest;
接收子单元用于,接收该服务器发送的第四响应消息,该第四响应消息包括将该至少两个目标终端的地理位置信息与服务器地图信息进行匹配后的该地图标识位置信息;The receiving subunit is configured to receive a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographical location information of the at least two target terminals is matched with the server map information;
获取子单元用于,根据该接收子单元接收的该第四响应消息,获取该至少两个目标终端的地图标识位置信息。The obtaining subunit is configured to acquire map identification location information of the at least two target terminals according to the fourth response message received by the receiving subunit.
第四方面,提供了一种终端,该终端包括:In a fourth aspect, a terminal is provided, the terminal comprising:
接收模块,用于接收第一终端发送的定位请求消息,该定位请求消息包括第一终端对该目标终端进行定位的定位时间请求信息或定位位置请求信息;a receiving module, configured to receive a positioning request message sent by the first terminal, where the positioning request message includes positioning time request information or positioning location request information for the first terminal to locate the target terminal;
确定模块,用于根据该接收模块接收的该定位请求消息,确定该目标终端允许该第一终端对其进行定位的定位授权条件,该定位授权条件包括根据该定位时间请求信息确定的定位时间信息,或根据该定位位置信息确定的定位位置信息;a determining module, configured to determine, according to the positioning request message received by the receiving module, a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal, where the positioning authorization condition includes positioning time information determined according to the positioning time request information Or positioning position information determined according to the positioning position information;
发送模块,用于根据该确定模块确定的该定位授权条件,向该第一终端发送该目标终端的定位信息;a sending module, configured to send, according to the positioning authorization condition determined by the determining module, location information of the target terminal to the first terminal;
该接收模块还用于,接收该第一终端发送的共享目标终端的定位信息,该共享目标终端为同意共享定位信息的目标终端。The receiving module is further configured to receive the positioning information of the shared target terminal sent by the first terminal, where the shared target terminal is a target terminal that agrees to share the positioning information.
结合第四方面,在第四方面的第一种可能的实现方式中,该终端还包括:With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the terminal further includes:
该接收模块还用于,接收该第一终端发送的用于请求共享定位信息的第一请求消息;The receiving module is further configured to receive, by the first terminal, a first request message for requesting sharing of positioning information;
该发送模块还用于,当确定同意共享定位信息时,向该第一终端发送用于指示同意共享位置信息的第一响应消息。The sending module is further configured to: when determining to agree to share the positioning information, send, to the first terminal, a first response message for instructing to agree to share the location information.
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,该接收模块还用于,接收该第一终端发送的用于请求加入定位群组的第二请求消息;With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the receiving module is further configured to receive, by the first terminal, a request for joining the positioning The second request message of the group;
该发送模块还用于,向该第一终端发送用于指示同意加入该定位群组的第二响应消息;The sending module is further configured to send, to the first terminal, a second response message for instructing to join the positioning group;
该接收模块具体用于,在该定位群组内接收该共享目标终端的定位信息。The receiving module is specifically configured to receive positioning information of the shared target terminal in the positioning group.
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第三 种可能的实现方式中,该接收模块接收的该共享目标终端的定位信息中不包括该目标终端的定位信息。In combination with the fourth aspect or the first possible implementation of the fourth aspect, the third aspect of the fourth aspect In a possible implementation manner, the positioning information of the target terminal that is received by the receiving module does not include the positioning information of the target terminal.
结合第四方面或第四方面的第一种至第三种可能的实现方式中的任一种可能的实现方式,在第四方面的第四种可能的实现方式中,该接收模块接收的该定位请求消息还包括该第一终端的标识信息;With reference to the fourth aspect, or any one of the first to the third possible implementation manners of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the receiving module receives the The location request message further includes identification information of the first terminal;
该确定模块具体用于,当确定本地预设标识信息包括该定位请求消息包括的该标识信息时,将该定位请求消息中的定位时间请求信息或定位位置请求信息确定为该定位授权条件。The determining module is specifically configured to: when determining that the local preset identifier information includes the identifier information included in the location request message, determining the location time request information or the location location request information in the location request message as the location authorization condition.
结合第四方面或第四方面的第一种至第三种可能的实现方式中的任一种可能的实现方式,在第四方面的第五种可能的实现方式中,该确定模块包括:With reference to the fourth aspect, or any one of the first to the third possible implementation manners of the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the determining module includes:
第一发送单元,用于向用户呈现用于指示该定位请求消息的请求信息;a first sending unit, configured to present, to the user, request information for indicating the positioning request message;
第一接收单元,用于接收用户指令,该用户指令用于指示经用户根据该定位请求消息确定的定位授权条件;a first receiving unit, configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition determined by the user according to the positioning request message;
第一确定单元,用于根据该第一接收单元接收的该用户指令,确定该目标终端允许该第一终端对其进行定位的定位授权条件。The first determining unit is configured to determine, according to the user instruction received by the first receiving unit, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
结合第四方面的第四种可能的实现方式,在第四方面的第六种可能的实现方式中,该确定模块还包括:In conjunction with the fourth possible implementation of the fourth aspect, in a sixth possible implementation manner of the fourth aspect, the determining module further includes:
第二发送单元用于,向用户呈现用于指示该定位授权条件的请求信息;The second sending unit is configured to present, to the user, request information for indicating the positioning authorization condition;
第二接收单元用于,接收用户指令,该用户指令用于指示经用户授权的定位授权条件;The second receiving unit is configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition authorized by the user;
第二确定单元用于,根据该第二接收单元接收的该用户指令,将经该用户授权的定位授权条件确定为该目标终端允许该第一终端对其进行定位的定位授权条件;The second determining unit is configured to determine, according to the user instruction received by the second receiving unit, a positioning authorization condition authorized by the user, as a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
该发送模块还用于,向该第一终端发送定位响应消息,该定位响应消息包括该第二确定单元确定的经用户授权的定位授权条件。The sending module is further configured to send a location response message to the first terminal, where the location response message includes a location authorization condition authorized by the second determining unit.
结合第四方面的第四种或第五种可能的实现方式,在第四方面的第七种可能的实现方式中,该发送模块还用于,向该第一终端发送定位响应消息,该定位响应消息包括该确定模块确定的该定位授权条件。With reference to the fourth or fifth possible implementation manner of the foregoing aspect, in a seventh possible implementation manner of the fourth aspect, the sending module is further configured to send a location response message to the first terminal, where the location is The response message includes the location authorization condition determined by the determining module.
结合第四方面或第四方面的第一种至第七种可能的实现方式中的任一种可能的实现方式,在第四方面的第八种可能的实现方式中,该发送模块包 括:With reference to the fourth aspect, or any one of the first to the seventh possible implementation manners of the fourth aspect, in the eighth possible implementation manner of the fourth aspect, the sending module package include:
第三确定单元,用于确定该目标终端的地图标识位置信息,该地图标识位置信息为该目标终端的地理位置信息与地图信息匹配后的位置信息;a third determining unit, configured to determine map identification location information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information;
第三发送单元,用于根据该确定模块确定的该定位授权条件,向该第一终端发送该地图标识位置信息,以便于该第一终端对该目标终端进行定位。The third sending unit is configured to send the map identification location information to the first terminal according to the positioning authorization condition determined by the determining module, so that the first terminal locates the target terminal.
结合第四方面的第八种可能的实现方式,在第四方面的第九种可能的实现方式中,该第三确定单元包括:In conjunction with the eighth possible implementation of the fourth aspect, in a ninth possible implementation manner of the fourth aspect, the third determining unit includes:
发送子单元,用于向服务器发送包括该目标终端的地理位置信息的请求消息,该请求消息用于请求服务器发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息;a sending subunit, configured to send, to the server, a request message that includes geographic location information of the target terminal, where the request message is used to request the server to send map identification location information that matches the geographic location information with the server map information;
接收子单元,用于接收该服务器发送的响应消息,该响应消息包括该地图标识位置信息;a receiving subunit, configured to receive a response message sent by the server, where the response message includes the map identification location information;
确定子单元,用于根据该接收子单元接收的该响应消息,确定该目标终端的地图标识位置信息。Determining a subunit, configured to determine map identification location information of the target terminal according to the response message received by the receiving subunit.
结合第四方面的第八种可能的实现方式,在第四方面的第十种可能的实现方式中,该第三确定单元具体用于,根据本地地图信息匹配该目标终端的地理位置信息,确定该目标终端的该地图标识位置信息。With reference to the eighth possible implementation manner of the fourth aspect, in a tenth possible implementation manner of the fourth aspect, the third determining unit is configured to: determine, according to the local map information, location information of the target terminal, determine The map of the target terminal identifies location information.
结合第四方面或第四方面的第一种至第七种可能的实现方式中的任一种可能的实现方式,在第四方面的第十一种可能的实现方式中,该发送模块包括:With reference to the fourth aspect, or any one of the first to the seventh possible implementation manners of the fourth aspect, in the eleventh possible implementation manner of the fourth aspect, the sending module includes:
第三接收单元,用于接收服务器发送的包括该目标终端的标识信息的请求消息;a third receiving unit, configured to receive a request message that is sent by the server and includes the identifier information of the target terminal;
第四发送单元,用于向该服务器发送包括该目标终端的地理位置信息的响应消息,以便于该服务器向该第一终端发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息,以便于该第一终端对该目标终端进行定位。a fourth sending unit, configured to send, to the server, a response message including the geographic location information of the target terminal, so that the server sends, to the first terminal, map identification location information that matches the geographic location information and the server map information, So that the first terminal locates the target terminal.
综上所述,本发明实施例的共享定位信息的方法和终端,通过获取多个目标终端的定位信息,确定该多个目标终端中同意共享定位信息的共享目标终端,将该共享目标终端的定位信息发送给该多个目标终端,能够在实现共享定位信息的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。 In summary, the method and the terminal for sharing the positioning information in the embodiment of the present invention determine the sharing target terminal of the plurality of target terminals that agrees to share the positioning information by acquiring the positioning information of the plurality of target terminals, and the sharing target terminal The positioning information is sent to the plurality of target terminals, and the privacy of the located terminal can be effectively protected while sharing the positioning information, and the security level of the shared positioning information can be improved, and the user experience satisfaction can be improved.
附图说明DRAWINGS
图1示出了本发明实施例的应用场景的通信系统架构图的示意图。FIG. 1 is a schematic diagram showing a structural diagram of a communication system of an application scenario of an embodiment of the present invention.
图2示出了本发明实施例的一种终端的系统架构图。FIG. 2 is a system architecture diagram of a terminal according to an embodiment of the present invention.
图3示出了本发明实施例的共享定位信息的方法的示意性流程图。FIG. 3 is a schematic flowchart of a method for sharing positioning information according to an embodiment of the present invention.
图4示出了本发明实施例的共享定位信息的方法的另一示意性流程图。FIG. 4 is another schematic flowchart of a method for sharing positioning information according to an embodiment of the present invention.
图5示出了本发明实施例的共享定位信息的方法的再一示意性流程图。FIG. 5 is still another schematic flowchart of a method for sharing positioning information according to an embodiment of the present invention.
图6(a)、图6(b)和图6(c)分别示出了本发明实施例的获取定位信息的三种方法的示意性流程图。FIG. 6(a), FIG. 6(b) and FIG. 6(c) respectively show schematic flow charts of three methods for acquiring positioning information according to an embodiment of the present invention.
图7示出了本发明另一实施例的共享定位信息的方法的示意性流程图。FIG. 7 is a schematic flowchart of a method for sharing positioning information according to another embodiment of the present invention.
图8示出了本发明实施例的终端的示意性框图。FIG. 8 shows a schematic block diagram of a terminal of an embodiment of the present invention.
图9示出了本发明实施例的另一终端的示意性框图。FIG. 9 shows a schematic block diagram of another terminal of an embodiment of the present invention.
图10示出了本发明另一实施例提供的终端的示意性框图。FIG. 10 is a schematic block diagram of a terminal according to another embodiment of the present invention.
图11示出了本发明另一实施例提供的另一终端的示意性框图。FIG. 11 is a schematic block diagram of another terminal according to another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为了方便理解本发明实施例的技术方案的应用场景,图1示出了移动通信网络架构图,该移动通信网络架构支持一个终端与多个终端同时进行数据交互或语音通话。如图1中的终端1和终端2可以通过有线或者无线接入网络与后端的互联网相连,并通过所属网络进行语音或数据通信。接入网络可以是有线方式(如图1中终端1的接入方式①),例如非对称数字用户线路(Asymmetric Digital Subscriber Line,简称为“ADSL”);也可以是无线方式(如图1中终端2的接入方式②),例如无线接入网(Radio Access Network,简称为“RAN”),具体例如无线局域网络(Wireless Local Area Networks,简称为“WLAN”)等。该移动通信网络架构中的后端互联网可以为终端提供定位、导航、搜索等服务。In order to facilitate the understanding of the application scenario of the technical solution of the embodiment of the present invention, FIG. 1 shows a mobile communication network architecture diagram, which supports a terminal to perform data interaction or voice call simultaneously with multiple terminals. The terminal 1 and the terminal 2 in FIG. 1 can be connected to the Internet of the back end through a wired or wireless access network, and perform voice or data communication through the associated network. The access network may be in a wired manner (such as the access mode 1 of the terminal 1 in FIG. 1), such as an Asymmetric Digital Subscriber Line (ADSL), or a wireless mode (as shown in FIG. 1). The access mode 2) of the terminal 2 is, for example, a radio access network (Radio Access Network, hereinafter referred to as "RAN"), and specifically, for example, a wireless local area network (Wireless Local Area Networks, hereinafter referred to as "WLAN"). The back-end Internet in the mobile communication network architecture can provide positioning, navigation, search and other services for the terminal.
应理解,本发明实施例的技术方案除可以应用于各种通信系统,例如: 通用移动通信系统(Universal Mobile Telecommunication System,简称为“UMTS”),全球移动通讯系统(Global System of Mobile communication,简称为“GSM”)系统,码分多址(Code Division Multiple Access,简称为“CDMA”)系统,宽带码分多址(Wideband Code Division Multiple Access Wireless,简称为“WCDMA”)系统,通用分组无线业务(General Packet Radio Service,简称为“GPRS”)系统,长期演进(Long Term Evolution,简称为“LTE”)系统等。It should be understood that the technical solutions of the embodiments of the present invention can be applied to various communication systems, for example: Universal Mobile Telecommunication System (UMTS), Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) ") System, Wideband Code Division Multiple Access Wireless (WCDMA) system, General Packet Radio Service ("GPRS") system, Long Term Evolution (Long Term Evolution, Referred to as "LTE" system, etc.
图2示出本发明实施例中的一种典型的具备定位功能的终端的系统结构图。如图2所示,该终端包括通信模块、定位模块、I/O接口模块、传感器模块,存储模块及处理器模块,且这些模块通过总线接口相连并相互通信,从而完成终端上的多种功能及应用。通信模块使终端能够通过蜂窝、WLAN或者其他通信方式,与其他的终端建立通信连接。定位模块能够通过GPS、基站或者WLAN定位等方式,定位得到终端当前的地理位置信息。I/O接口模块,可以接收来自终端触摸屏或语音或键盘上的输入,通过处理器模块解析出命令后,通过调用存储器中的响应应用程序,完成对用户的操作命令的执行,并将操作结果通过屏幕或语音方式呈献给用户。传感器模块可以采集不同的应用所需要的多种数据,例如,陀螺仪模块可协助定位模块进一步提高精度。存储模块,存储运行手机上的多个应用软件,比如用于社交通信的微信、用于日程安排的助手应用、用于定位的Google地图,用于导航的高德导航等等。可选地,本发明实施例中的共享定位信息的方法可以是存储在存储器上的一类应用服务。处理器模块,用于解析、处理、运算手机上的所有数据,特别是存储器上的存储的通信运算指令。FIG. 2 is a system structural diagram of a typical terminal having a positioning function according to an embodiment of the present invention. As shown in FIG. 2, the terminal includes a communication module, a positioning module, an I/O interface module, a sensor module, a storage module, and a processor module, and the modules are connected through a bus interface and communicate with each other to complete multiple functions on the terminal. And application. The communication module enables the terminal to establish a communication connection with other terminals through cellular, WLAN or other communication means. The positioning module can locate the current geographical location information of the terminal by means of GPS, base station or WLAN positioning. The I/O interface module can receive input from the touch screen of the terminal or the voice or the keyboard. After the command is parsed by the processor module, the response application of the memory is called to complete the execution of the operation command of the user, and the operation result is completed. Presented to the user via screen or voice. The sensor module can collect a variety of data required by different applications. For example, the gyro module can assist the positioning module to further improve the accuracy. The storage module stores a plurality of application software running on the mobile phone, such as WeChat for social communication, assistant application for scheduling, Google map for positioning, Gouda navigation for navigation, and the like. Optionally, the method for sharing positioning information in the embodiment of the present invention may be a type of application service stored on a memory. The processor module is configured to parse, process, and calculate all data on the mobile phone, in particular, stored communication operation instructions on the memory.
应理解,在本发明实施例中的第一终端、目标终端、共享目标终端以及终端(Terminal),还可称之为用户设备(User Equipment,简称为“UE”)、移动台(Mobile Station,简称为“MS”)或移动终端(Mobile Terminal)等。该终端可以具备图2中所示的具备定位功能的任何终端,例如可以是智能移动电话(或称为“蜂窝”电话),也可以是具有智能移动终端的计算机,还可以是便携式、袖珍式、手持式、穿戴式、计算机内置或者车载的任何具备定位功能的移动装置,例如,具有定位功能的相机,也可以是任何有定位需求的移动终端。It should be understood that the first terminal, the target terminal, the shared target terminal, and the terminal (Terminal) in the embodiment of the present invention may also be referred to as a user equipment (User Equipment, referred to as "UE"), and a mobile station (Mobile Station, Referred to as "MS" or mobile terminal (Mobile Terminal). The terminal may be provided with any terminal having the positioning function shown in FIG. 2, and may be, for example, a smart mobile phone (or "cellular" phone), a computer with a smart mobile terminal, or a portable, pocket-sized device. Any mobile device with positioning function, such as a hand-held, wearable, computer built-in or vehicle, for example, a camera with a positioning function, or any mobile terminal with positioning requirements.
图3示出了本发明实施例的共享定位信息的方法100,该方法例如由第 一终端执行,如图3所示,该方法100包括:FIG. 3 illustrates a method 100 of sharing location information according to an embodiment of the present invention, such as by A terminal performs, as shown in FIG. 3, the method 100 includes:
S110,第一终端获取至少两个目标终端的定位信息;S110. The first terminal acquires positioning information of at least two target terminals.
S120,该第一终端确定该至少两个目标终端中的共享目标终端,该共享目标终端为同意共享定位信息的目标终端;S120. The first terminal determines a shared target terminal of the at least two target terminals, where the shared target terminal is a target terminal that agrees to share the positioning information.
S130,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息。S130. The first terminal sends the positioning information of the shared target terminal to the first target terminal of the at least two target terminals.
第一终端获取至少两个目标终端的定位信息,该定位信息具体可以为该至少两个目标终端的地理位置信息或者地图标识位置信息等,本发明实施例对此不作限定,只要能获取到该至少两个目标终端的位置相关信息即可;确定该至少两个目标终端中的共享目标终端,该共享目标终端为该至少两个目标终端中同意向除第一终端和自己外的其他目标终端共享自己位置信息的目标终端;该第一终端将共享目标终端的位置信息发送给该至少两个目标终端中的第一目标终端,实现定位信息的共享。The first terminal acquires the location information of the at least two target terminals, and the location information may be the location information of the at least two target terminals or the location information of the map identifier, which is not limited in this embodiment of the present invention. Determining location-related information of at least two target terminals; determining a shared target terminal of the at least two target terminals, the shared target terminal agreeing to the other target terminals except the first terminal and the self of the at least two target terminals a target terminal that shares its own location information; the first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals to share the location information.
因此,本发明实施例的共享位置信息的方法,通过获取多个目标终端的定位信息,确定该多个目标终端中同意共享定位信息的共享目标终端,将该共享目标终端的定位信息发送给该多个目标终端,能够在实现共享定位信息的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the method for sharing the location information in the embodiment of the present invention, by acquiring the location information of the plurality of target terminals, determining the shared target terminal that agrees to share the location information among the plurality of target terminals, and transmitting the location information of the shared target terminal to the The plurality of target terminals can effectively protect the privacy of the located terminal while sharing the positioning information, can improve the security level of the shared positioning information, and can improve the user experience satisfaction.
应理解,该共享目标终端可以为该至少两个目标终端中同意共享自己位置信息的一个或多个目标终端;该第一目标终端可以为该至少两个目标终端中的任意一个或多个目标终端,本发明实施例对此不作限定。It should be understood that the shared target terminal may be one or more target terminals of the at least two target terminals that agree to share their own location information; the first target terminal may be any one or more of the at least two target terminals. The terminal is not limited in this embodiment of the present invention.
还应理解,本文为了表述的方便,用“第一终端”来表述发起多人定位的终端,该表述不对本发明技术方案作任何限定;此外,至少两个目标终端也可称为多个被定位终端,本文为了表述的方便,用“目标终端”来表示被定位的终端,该表述不对本发明技术方案作任何限定。It should also be understood that, for the convenience of the description, the terminal that initiates multi-person positioning is expressed by the “first terminal”, and the expression does not limit the technical solution of the present invention; in addition, at least two target terminals may also be referred to as multiple The locating terminal, for the convenience of the description, uses the “target terminal” to represent the located terminal, and the expression does not limit the technical solution of the present invention.
在S110中,第一终端获取至少两个目标终端的定位信息,具体地,可以是在通过第一终端与该至少两个目标终端协商的定位授权条件下,获取该至少两个目标终端的定位信息。In S110, the first terminal acquires the positioning information of the at least two target terminals, and specifically, may obtain the positioning of the at least two target terminals under the positioning authorization condition negotiated by the first terminal and the at least two target terminals. information.
可选地,如图4所示,作为本发明一个实施例,该第一终端获取至少两个目标终端的定位信息S110包括:Optionally, as shown in FIG. 4, the acquiring, by the first terminal, the positioning information S110 of the at least two target terminals includes:
S111,该第一终端向该至少两个目标终端发送定位请求消息,该定位请 求消息包括第一终端对该至少两个目标终端进行定位的定位时间请求信息或定位位置请求信息;S111. The first terminal sends a location request message to the at least two target terminals, where the positioning is requested. The request message includes positioning time request information or positioning location request information for positioning the at least two target terminals by the first terminal;
S112,该第一终端接收该至少两个目标终端发送的定位响应消息,该定位响应消息用于指示该至少两个目标终端根据该定位请求消息确定的定位时间响应信息或定位位置响应信息;S112. The first terminal receives a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate positioning time response information or positioning location response information determined by the at least two target terminals according to the positioning request message.
S113,该第一终端根据该定位响应消息,确定该至少两个目标终端的定位授权条件,该定位授权条件包括经该定位时间请求信息和该定位时间响应信息共同确定的定位时间信息,或经该定位位置请求信息和该定位位置响应信息共同确定的定位位置信息;S113, the first terminal determines, according to the positioning response message, a positioning authorization condition of the at least two target terminals, where the positioning authorization condition includes positioning time information jointly determined by the positioning time request information and the positioning time response information, or The positioning location information jointly determined by the positioning location request information and the positioning location response information;
S114,该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息。S114. The first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition.
在S110中,第一终端获取至少两个目标终端的定位信息,可以是第一终端分别获取该至少两个目标终端中的每个目标终端的定位信息,对应地,在S111中,该第一终端向该至少两个目标终端发送定位请求消息,是分别向至少两个目标终端中的每个目标终端发送该定位请求消息;在S112中,该第一终端接收该至少两个目标终端发送的定位响应消息,是分别接收至少两个目标终端中的每个目标终端的定位响应消息;在S113中,该第一终端根据该定位响应消息,确定该至少两个目标终端的定位授权条件,具体地,例如终端B和终端C为至少两个目标终端中的两个目标终端,即根据终端B的定位响应消息,确定第一终端对终端B进行定位的定位授权条件,根据终端C的定位响应消息,确定对终端C进行定位的定位授权条件;在S114中,该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息,具体地,例如根据终端B的定位授权条件,获取终端B的定位信息。In S110, the first terminal acquires the positioning information of the at least two target terminals, where the first terminal acquires the positioning information of each of the at least two target terminals, and correspondingly, in S111, the first Transmitting, by the terminal, the location request message to the at least two target terminals, respectively, sending the location request message to each of the at least two target terminals; and in S112, the first terminal receiving the at least two target terminals The positioning response message is a positioning response message that is received by each of the at least two target terminals respectively. In S113, the first terminal determines, according to the positioning response message, a positioning authorization condition of the at least two target terminals, where For example, the terminal B and the terminal C are two target terminals of the at least two target terminals, that is, according to the positioning response message of the terminal B, determining the positioning authorization condition for the first terminal to locate the terminal B, according to the positioning response of the terminal C. a message determining a location authorization condition for positioning the terminal C; in S114, the first terminal obtains the location authorization condition according to the location The location information of the at least two target terminal, in particular, for example, according to the authorization conditions of the positioning of the terminal B, the terminal B acquires the positioning information.
以终端B为该至少两个目标终端中的一个目标终端为例,并将第一终端记为终端A,图5示出了终端A和终端B协商定位授权条件的具体流程,在S21中,终端A向终端B发送定位请求消息,该定位请求消息包括定位时间请求信息或定位位置请求信息;在S22中,终端B根据接收到的定位请求消息,确定同意被定位,并根据定位请求消息确定定位时间响应信息或定位位置响应信息,具体地,可以是直接将定位时间请求信息确定为定位时间响应信息,也可以是将修改后的定位时间请求信息确定为定位时间响应信息,对应地,也可以将定位位置请求信息或修改后的定位位置请求信息确定 为定位位置响应信息;在S23中,终端B向终端A发送定位请求响应消息,该定位请求响应消息用于指示同意被定位,并包括根据定位请求消息确定的定位时间响应信息或定位位置响应信息;在S24中,终端A根据该定位请求响应消息,确定终端A对终端B进行定位的定位授权条件,该定位授权条件包括定位时间信息或定位位置信息。Taking the terminal B as one of the at least two target terminals as an example, and recording the first terminal as the terminal A, FIG. 5 shows a specific process of the terminal A and the terminal B negotiating the positioning authorization condition. In S21, The terminal A sends a location request message to the terminal B, where the location request message includes location time request information or location location request information. In S22, the terminal B determines, according to the received location request message, that the consent is to be located, and determines according to the location request message. The positioning time response information or the positioning location response information may be determined by directly determining the positioning time request information as the positioning time response information, or determining the modified positioning time request information as the positioning time response information, and correspondingly, The location location request information or the modified location location request information may be determined In order to locate the location response information, in S23, the terminal B sends a location request response message to the terminal A, where the location request response message is used to indicate that the consent is located, and includes the positioning time response information or the location location response information determined according to the location request message. In S24, the terminal A determines, according to the positioning request response message, a positioning authorization condition for the terminal A to locate the terminal B, where the positioning authorization condition includes positioning time information or positioning location information.
在S21中,终端A发送的定位请求消息中,还可以包括终端A或者终端B的标识信息,例如可以是终端B或者终端A的用户姓名、电话号码等,也可以是终端B或者终端A的设备类型信息等。In S21, the location request message sent by the terminal A may further include the identifier information of the terminal A or the terminal B, for example, the user name, the phone number, etc. of the terminal B or the terminal A, or the terminal B or the terminal A. Device type information, etc.
应理解,该定位授权条件可以是定位时间信息,也可以是定位位置信息,也可以是兼有定位时间信息和定位位置信息,其中定位时间信息例如可以是具体时间段或者具体时间点,定位位置信息具体可以是定位起始点位置信息、定位终止点位置信息或者是具体的地标信息。当该定位授权条件为定位时间信息时,发起定位的终端在该定位位置信息所指示的时间范围内或时间点对被定位终端进行定位,具体地,以终端A对终端B进行定位为例,当该定位授权条件为时间段9:00-10:00时,即终端A在时间段9:00-10:00之间对终端B进行定位;再例如该定位授权条件为时间点14:00时,即该终端A在14:00对终端B进行定位,也可以是从定位初始时刻一直定位到14:00,还可以是从14:00开始一直定位直至定位流程结束,应理解,实现过程中具体采取哪种定位策略,可以由系统预先配置也可以由用户临时配置,本发明实施例对此不作限定。再例如当该定位授权条件为时长30分钟时,终端A从定位初始时刻起对终端B开始定位,一直持续30分钟。应理解,该定位时间信息还可以是不连续的多个时间段或时间点。当该定位授权条件为定位位置信息时,发起定位的终端在该定位位置信息所指示的地域范围内对被定位终端进行定位,具体地,还以终端A对终端B进行定位为例,当该定位授权条件为定位终结点位置信息时,该终端A从终端B的当前位置开始定位直到该终结点位置结束;再例如该定位授权条件为定位起始点位置信息,该终端A从该定位起始点位置起一直对终端B进行定位,当终端A和终端B约定好目的地时,可以从定位起始点位置一直定位到约定好的目的地。当定位授权条件包括定位位置信息和定位时间信息时,具体地,还以终端A对终端B进行定位为例,例如该定位授权条件为定位起始位置信息和1小时,则终端A从该定位起始位置信息所指示的位置对终端B开始定位, 且定位持续1小时。综上所述,该定位授权条件确定了发起定位的终端对被定位终端进行定位的具体时间范围和地域范围,且该定位授权条件是发起定位的终端和被定位终端协商确定,在发起定位的终端对被定位终端定位的同时,也能够充分保护被定位终端的隐私,能够有效提高用户体验。It should be understood that the location authorization information may be the location time information, or the location location information, or may be the location time information and the location location information, where the location time information may be, for example, a specific time period or a specific time point, and the location location. The information may specifically be positioning starting point position information, positioning ending point position information or specific landmark information. When the location authorization information is the location time information, the terminal that initiates the location locates the location terminal in the time range indicated by the location location information or the time point. Specifically, the terminal A locates the terminal B as an example. When the location authorization condition is 9:00-10:00, the terminal A locates the terminal B between 9:00 and 10:00; for example, the location authorization condition is 14:00. When the terminal A locates the terminal B at 14:00, it may also be located from the initial positioning time to 14:00, or may be positioned from 14:00 until the end of the positioning process. It should be understood that the implementation process The locating strategy is specifically configured by the system, and may be temporarily configured by the user. For example, when the positioning authorization condition is 30 minutes, the terminal A starts to locate the terminal B from the initial positioning time, and continues for 30 minutes. It should be understood that the positioning time information may also be a plurality of time periods or time points that are not continuous. When the location authorization request is the location location information, the terminal that initiates the location locates the location terminal in the area indicated by the location location information, and specifically, the terminal A locates the terminal B as an example. When the location authorization status is the location location information of the terminal, the terminal A starts to locate the current position of the terminal B until the end of the terminal position; for example, the location authorization condition is the location start location information, and the terminal A starts from the location start point. The location B always locates the terminal B. When the terminal A and the terminal B agree on the destination, the location can be located from the location starting point to the agreed destination. When the location authorization information includes the location location information and the location time information, specifically, the terminal A locates the terminal B as an example. For example, the location authorization condition is the location start location information and one hour, and the terminal A obtains the location. The location indicated by the start location information starts to locate the terminal B, And the positioning lasts for 1 hour. In summary, the location authorization condition determines a specific time range and a geographical range in which the location-initiating terminal locates the located terminal, and the location authorization condition is that the terminal that initiated the positioning negotiates with the located terminal to determine the location. When the terminal locates the located terminal, it can also fully protect the privacy of the positioned terminal, and can effectively improve the user experience.
应理解,第一终端除了通过向至少两个目标终端发送定位请求消息来确定对至少两个目标终端进行定位的定位授权条件,还可以通过其他方法,例如第一终端还可以通过被动接收至少两个目标终端发送的用于请求对其进行定位的定位请求,来确定对至少两个目标终端进行定位的定位授权条件,本发明实施例对此不作限定。It should be understood that the first terminal may determine the positioning authorization condition for positioning the at least two target terminals by sending a positioning request message to the at least two target terminals, and may also receive at least two by passively receiving the method. The positioning request sent by the target terminal for requesting the positioning thereof is used to determine the positioning authorization condition for positioning the at least two target terminals, which is not limited in this embodiment of the present invention.
在S114中,该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息,具体地,可以直接向至少两个目标终端请求对应的定位信息,也可以向网络侧服务器请求该至少两个目标终端的定位信息,本发明实施例对此不作限定。该定位信息可以是被定位终端的地理位置信息,也可以是该地理位置信息与地图信息匹配后的地图标识位置信息。In S114, the first terminal acquires location information of the at least two target terminals according to the location authorization condition. Specifically, the location information may be directly requested to the at least two target terminals, or may be requested by the network side server. The positioning information of the at least two target terminals is not limited in this embodiment of the present invention. The location information may be geographic location information of the located terminal, or may be map identification location information after the geographic location information matches the map information.
应理解,至少两个目标终端的定位信息可以是至少两个目标终端的地理位置信息或地图标识位置信息,其中,地理位置信息指示被定位终端的实际物理位置信息,例如可以是GPS位置信息(经度、纬度、高度);地图标识位置信息为将该地理位置信息匹配到地图坐标系上的位置信息,该地图坐标系可以是二维地图坐标系,也可以是三维地图坐标系,本文中将地图坐标系表述为地图信息,不对本发明实施例作任何限定。此外,该定位信息还可以是将该地理位置信息匹配到其他坐标系中的位置信息,例如三维大地坐标系等。It should be understood that the location information of the at least two target terminals may be geographic location information or map identification location information of at least two target terminals, wherein the geographic location information indicates actual physical location information of the located terminal, for example, may be GPS location information ( Longitude, latitude, altitude); the map identification location information is the location information that matches the geographic location information to the map coordinate system, and the map coordinate system may be a two-dimensional map coordinate system or a three-dimensional map coordinate system. The map coordinate system is expressed as map information, and the present invention is not limited in any way. In addition, the positioning information may also be position information that matches the geographical location information to other coordinate systems, such as a three-dimensional geodetic coordinate system or the like.
可选地,作为本发明一个实施例,该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息,包括:Optionally, as an embodiment of the present invention, the first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition, including:
该第一终端接收该至少两个目标终端根据该定位授权条件发送的地理位置信息。The first terminal receives geographical location information that is sent by the at least two target terminals according to the positioning authorization condition.
具体地,还以终端B为该至少两个目标终端中的一个目标终端为例,并将第一终端记为终端A,如图6(a)所示,终端A和终端B已经协商好终端A定位终端B的定位授权条件(具体协商流程例如图5所示),在S2511中,终端A向终端B发送位置请求消息;在S2512中,终端B向终端A发送包括终端B的地理位置信息的位置响应消息;在S2513中,终端A根据该位 置响应消息,获取终端B的定位信息,即地理位置信息。Specifically, the terminal B is taken as one of the at least two target terminals, and the first terminal is recorded as the terminal A. As shown in FIG. 6( a ), the terminal A and the terminal B have negotiated the terminal. A locating authorization condition of the positioning terminal B (specific negotiation procedure is shown in FIG. 5). In S2511, the terminal A sends a location request message to the terminal B. In S2512, the terminal B transmits the geographical location information including the terminal B to the terminal A. Location response message; in S2513, terminal A is based on the bit The response message is obtained, and the location information of the terminal B, that is, the geographical location information is obtained.
应理解,步骤S2511可以没有,即终端B可以在未接收到终端A的位置请求消息前,主动向终端A上报自己的地理位置信息。It should be understood that the step S2511 may be absent, that is, the terminal B may report its own geographical location information to the terminal A actively before receiving the location request message of the terminal A.
可选地,作为本发明一个实施例,该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息,包括:Optionally, as an embodiment of the present invention, the first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition, including:
该第一终端接收该至少两个目标终端根据该定位授权条件发送的该至少两个目标终端的地图标识位置信息,该地图标识位置信息为该至少两个目标终端的地理位置信息与地图信息匹配后的位置信息。Receiving, by the first terminal, map identification location information of the at least two target terminals that are sent by the at least two target terminals according to the positioning authorization condition, where the map identification location information is that the geographical location information of the at least two target terminals matches the map information Post location information.
具体地,还以终端B为该至少两个目标终端中的一个目标终端为例,并将第一终端记为终端A,如图6(b)所示,终端A和终端B已经协商好终端A定位终端B的定位授权条件(具体协商流程例如图5所示),在S2521中,终端A向终端B发送位置请求消息;在S2522中,终端B根据自己的地理位置信息确定对应的地图标识位置信息;在S2523中,终端B向终端A发送包括有终端B的地图标识位置信息的位置响应消息;在S2524中,终端A根据该位置响应消息,获取终端B的定位信息,即地图标识位置信息。Specifically, the terminal B is taken as one of the at least two target terminals, and the first terminal is recorded as the terminal A. As shown in FIG. 6(b), the terminal A and the terminal B have negotiated the terminal. A positioning authorization condition of the positioning terminal B (specific negotiation procedure is shown in FIG. 5). In S2521, terminal A sends a location request message to terminal B. In S2522, terminal B determines a corresponding map identifier according to its own geographical location information. Location information; in S2523, the terminal B sends a location response message including the location information of the location identification of the terminal B to the terminal A; in S2524, the terminal A acquires the location information of the terminal B, that is, the location of the map identification, according to the location response message. information.
应理解,步骤S2521也可以没有,即终端B在同意被定位后,可以主动向终端A上报自己的地图标识位置信息。It should be understood that step S2521 may also be absent, that is, after the terminal B agrees to be located, the terminal B may actively report its own map identification location information to the terminal A.
如图6(a)所示,终端A接收到终端B的地理位置信息后,可以将该地理位置信息匹配到电子地图上确定地图标识位置信息以实时在本地地图上显示终端B的定位信息。As shown in FIG. 6( a ), after receiving the geographic location information of the terminal B, the terminal A may match the geographical location information to the map identification location information on the electronic map to display the positioning information of the terminal B on the local map in real time.
可选地,作为本发明一个实施例,该方法还包括:Optionally, as an embodiment of the present invention, the method further includes:
该第一终端向服务器发送包括该地理位置信息的第三请求消息,该请求消息用于请求与该地理位置信息对应的地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息;The first terminal sends a third request message including the geographic location information to the server, where the request message is used to request map identification location information corresponding to the geographic location information, where the map identification location information is that the geographic location information matches the map information Post position information;
该第一终端接收该服务器发送的第三响应消息,该响应消息包括该地图标识位置信息;Receiving, by the first terminal, a third response message sent by the server, where the response message includes the map identification location information;
该第一终端根据该第三响应消息,确定该至少两个目标终端的地图标识位置信息。The first terminal determines, according to the third response message, map identification location information of the at least two target terminals.
可选地,作为本发明一个实施例,该方法还包括:Optionally, as an embodiment of the present invention, the method further includes:
该第一终端根据本地地图信息匹配该地理位置信息,确定该至少两个目标终端的地图标识位置信息。 The first terminal matches the geographical location information according to the local map information, and determines map identification location information of the at least two target terminals.
第一终端也可以向网络侧服务器请求该至少两个目标终端的定位信息。The first terminal may also request location information of the at least two target terminals from the network side server.
可选地,作为本发明一个实施例,该第一终端根据该定位授权条件,获取该至少两个目标终端的定位信息,包括:Optionally, as an embodiment of the present invention, the first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition, including:
该第一终端向服务器发送包括该至少两个目标终端的标识信息的第四请求消息,该请求消息用于请求该至少两个目标终端的地图标识位置信息;The first terminal sends a fourth request message including the identifier information of the at least two target terminals to the server, where the request message is used to request map identification location information of the at least two target terminals;
该第一终端接收该服务器发送的第四响应消息,该第四响应消息包括将该至少两个目标终端的地理位置信息与服务器地图信息进行匹配后的该地图标识位置信息;Receiving, by the first terminal, a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographical location information of the at least two target terminals is matched with the server map information;
该第一终端根据该第四响应消息,获取该至少两个目标终端的地图标识位置信息。The first terminal acquires map identification location information of the at least two target terminals according to the fourth response message.
具体地,还以终端B为该至少两个目标终端中的一个目标终端为例,并将第一终端记为终端A,如图6(c)所示,终端A和终端B已经协商好终端A定位终端B的定位授权条件(具体协商流程例如图5所示),在S2531中,终端A根据定位授权条件,向服务器发送包括有终端B的标识信息的请求消息,用以请求终端B的地图标识信息;在S2532中,服务器向终端B发送用于请求地理位置信息的请求消息;在S2533中,终端B向服务器上报包括自己地理位置信息的响应消息;在S2534中,服务器通过地图标识信息匹配终端B的地理位置信息,确定终端B的地图标识位置信息;在S2535中,服务器向终端A发送包括终端B的地图标识位置信息的响应消息;在S2536中,终端A根据服务器下发的响应消息,获取终端B的定位信息,即地图标识位置信息。Specifically, the terminal B is taken as one of the at least two target terminals, and the first terminal is recorded as the terminal A. As shown in FIG. 6(c), the terminal A and the terminal B have negotiated the terminal. The locating authorization condition of the locating terminal B (the specific negotiation process is as shown in FIG. 5). In S2531, the terminal A sends a request message including the identification information of the terminal B to the server according to the positioning authorization condition, to request the terminal B. The map identification information; in S2532, the server sends a request message for requesting geographic location information to the terminal B; in S2533, the terminal B reports a response message including its own geographical location information to the server; in S2534, the server passes the map identification information. Matching the geographic location information of the terminal B, determining the map identification location information of the terminal B; in S2535, the server sends a response message including the location identification information of the terminal B to the terminal A; in S2536, the terminal A responds according to the server. The message acquires the location information of the terminal B, that is, the map identification location information.
应理解,图5和图6(a)至图6(c)示意性地给出了对一个被定位终端进行定位的流程,在本发明实施例的第一终端获取至少两个目标终端的定位信息,即分别获取至少两个目标终端中的每个目标终端的流程都可以采用图5和图6(a)至图6(c)所示的流程。It should be understood that FIG. 5 and FIG. 6(a) to FIG. 6(c) schematically show the process of locating a located terminal. The first terminal in the embodiment of the present invention acquires the location of at least two target terminals. The information, that is, the process of respectively acquiring each of the at least two target terminals, may employ the flow shown in FIG. 5 and FIGS. 6(a) to 6(c).
因此,本发明实施例的共享定位信息的方法,定位终端是在与被定位终端协商的定位授权条件下获取被定位终端的定位信息,在实现多人定位的同时,充分保护了被定位终端的隐私,能够有效提高用户体验满意度。Therefore, in the method for sharing the positioning information in the embodiment of the present invention, the positioning terminal acquires the positioning information of the positioned terminal under the positioning authorization condition negotiated with the positioned terminal, and fully protects the positioned terminal while achieving multi-person positioning. Privacy can effectively improve user experience satisfaction.
应理解,第一终端获取到至少两个目标终端的定位信息后,可以将该定位信息呈现给用户,具体地,可以通过在电子地图上显示给定位信息,也可以文字的形式在UI界面上呈现给用户,也可以语音的形式播放给用户,本 发明实施例对此不作限定。It should be understood that, after the first terminal acquires the positioning information of the at least two target terminals, the positioning information may be presented to the user. Specifically, the positioning information may be displayed on the electronic map or may be in the form of text on the UI interface. Presented to the user, or played to the user in the form of voice, this The embodiment of the invention is not limited thereto.
应理解,第一终端在呈现该至少两个目标终端的定位信息时,也可以呈现自己的定位信息。It should be understood that the first terminal may also present its own positioning information when presenting the positioning information of the at least two target terminals.
因此,本发明实施例的共享定位信息的方法,定位终端根据由定位终端和被定位终端协商确定的定位授权条件,实现对被定位终端进行定位,能够在实现定位他人的同时,有效保护被定位终端的隐私,有效提高用户体验。Therefore, in the method for sharing the positioning information in the embodiment of the present invention, the positioning terminal performs positioning on the positioned terminal according to the positioning authorization condition determined by the positioning terminal and the positioned terminal, and can effectively locate the user while realizing the positioning. The privacy of the terminal effectively improves the user experience.
在S120中,该第一终端确定该至少两个目标终端中的共享目标终端,该共享目标终端为同意共享自己定位信息的目标终端。具体地,可以通过向至少两个目标终端发送请求共享定位信息的请求消息,来确认至少两个目标终端中同意共享位置信息的共享目标终端。In S120, the first terminal determines a shared target terminal of the at least two target terminals, and the shared target terminal is a target terminal that agrees to share the own positioning information. Specifically, the shared target terminal that agrees to share the location information among the at least two target terminals may be confirmed by sending a request message requesting the shared positioning information to the at least two target terminals.
可选地,作为本发明一个实施例,该第一终端确定该至少两个目标终端中的共享目标终端,包括:Optionally, as an embodiment of the present invention, the first terminal determines the shared target terminal in the at least two target terminals, including:
该第一终端向该至少两个目标终端发送用于请求共享位置信息的第一请求消息;The first terminal sends a first request message for requesting sharing location information to the at least two target terminals;
该第一终端接收该至少两个目标终端中的第二目标终端发送的第一响应消息;Receiving, by the first terminal, a first response message sent by the second target terminal of the at least two target terminals;
该第一终端根据该第一响应消息,将该第二目标终端中同意共享位置信息的目标终端确定为该共享目标终端。The first terminal determines, according to the first response message, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
应理解,该共享目标终端可以是至少两个目标终端中同意共享定位信息的一个或多个目标终端。It should be understood that the shared target terminal may be one or more target terminals of the at least two target terminals that agree to share the positioning information.
还应理解,第一终端还可以通过至少两个目标终端的签约信息或者标识信息来确定同意共享位置信息的目标终端,即共享目标终端。具体地,例如终端C的签约信息指示同意共享位置信息给任何人,则当第一终端通过解析终端C的签约信息即可确定终端C为共享目标终端,无需向其发送相关请求消息了。It should also be understood that the first terminal may also determine, by the subscription information or the identification information of the at least two target terminals, the target terminal that agrees to share the location information, that is, the shared target terminal. Specifically, for example, the subscription information of the terminal C indicates that the location information is agreed to be shared with any person, and the first terminal can determine that the terminal C is the shared target terminal by parsing the subscription information of the terminal C, and does not need to send a related request message to the terminal C.
因此,本发明实施例的共享定位信息的方法,是在确定被定位终端同意共享位置信息的前提下,才将其定位信息共享其定位信息,能够在实现共享定位信息的同时,保护被共享终端的安全和隐私,可以有效提高用户体验满意度。Therefore, the method for sharing location information in the embodiment of the present invention is to share the location information of the location information by sharing the location information on the premise that the location terminal agrees to share the location information, and can protect the shared terminal while implementing the shared location information. The security and privacy can effectively improve user experience satisfaction.
在S130中,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息。其中,第一目标终端可以是至少两个目标终端 中的任意一个或对多个目标终端。具体地,该第一终端可以分别向至少两个目标终端中的每个目标终端发送共享目标终端的定位信息,以实现在被定位的至少两个目标终端中共享该共享目标终端的定位信息;也可以请求至少两个目标终端加入到一个临时定位群组里,通过向该定位群组发送该共享目标终端的定位信息,以便于后台服务器将该共享目标终端的定位信息分发给该定位群组内的各个目标终端。In S130, the first terminal sends the positioning information of the shared target terminal to the first target terminal of the at least two target terminals. The first target terminal may be at least two target terminals. Any one of them or for multiple target terminals. Specifically, the first terminal may separately send the positioning information of the shared target terminal to each of the at least two target terminals, so as to share the positioning information of the shared target terminal in the at least two target terminals that are located; The at least two target terminals may be requested to be added to a temporary positioning group, and the positioning information of the shared target terminal is sent to the positioning group, so that the background server distributes the positioning information of the shared target terminal to the positioning group. Each target terminal within.
可选地,作为本发明一个实施例,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息,包括:Optionally, as an embodiment of the present invention, the first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
该第一终端分别向该至少两个目标终端中的每个目标终端发送该共享目标终端的定位信息。The first terminal separately sends the positioning information of the shared target terminal to each of the at least two target terminals.
可选地,作为本发明一个实施例,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息,包括:Optionally, as an embodiment of the present invention, the first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
该第一终端向该第一目标终端发送该共享目标终端的定位信息,该第一目标终端为该至少两个目标终端中除该共享目标终端之外的目标终端。The first terminal sends the location information of the shared target terminal to the first target terminal, where the first target terminal is a target terminal other than the shared target terminal of the at least two target terminals.
具体地,例如,至少两个目标终端为终端B、C、D、E和F,其中只有B为共享目标终端,第一终端可以将共享目标终端B的定位信息群发给终端B、C、D、E和F,也可以不向终端B发送它自己的定位信息,只将将共享目标终端B的定位信息发送给终端C、D、E和F。Specifically, for example, at least two target terminals are terminals B, C, D, E, and F, wherein only B is a shared target terminal, and the first terminal may send the location information group of the shared target terminal B to the terminals B, C, and D. , E and F, may also not send its own positioning information to the terminal B, and only transmit the positioning information of the shared target terminal B to the terminals C, D, E and F.
可选地,作为本发明一个实施例,该方法还包括:Optionally, as an embodiment of the present invention, the method further includes:
该第一终端向该至少两个目标终端发送用于请求加入定位群组的第二请求消息;The first terminal sends a second request message for requesting to join the positioning group to the at least two target terminals;
该第一终端接收该至少两个目标终端发送的用于指示同意加入该定位群组的第二响应消息;The first terminal receives a second response message sent by the at least two target terminals to indicate that the user is authorized to join the positioning group.
其中,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息,包括:The first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
该第一终端向该定位群组发送该共享目标终端的定位信息,以便于该至少两个目标终端获取该共享目标终端的定位信息。The first terminal sends the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
具体地,例如至少两个目标终端为终端B、C、D、E和F,第一终端分别向终端B、C、D、E和F发送请求加入定位群组的请求,接收到终端B、C、D、E和F的同意加入定位群组的响应后,第一终端可以在该定位群组内发送共享目标终端的定位信息,可以使得终端B、C、D、E和F都获取到 共享目标终端的定位信息。Specifically, for example, at least two target terminals are terminals B, C, D, E, and F, and the first terminal sends a request for joining the positioning group to the terminals B, C, D, E, and F, respectively, and receives the terminal B, After the C, D, E, and F agree to join the response of the positioning group, the first terminal may send the positioning information of the shared target terminal in the positioning group, so that the terminals B, C, D, E, and F are obtained. Share the location information of the target terminal.
应理解,第一终端只向定位群组发送一次共享目标终端的定位信息,通过后端服务器的消息分发操作,以使得定位群组内的成员即终端B、C、D、E和F都能获取到共享目标终端的定位信息的具体手段为现有技术,为了简洁,这里不再赘述。It should be understood that the first terminal only sends the positioning information of the shared target terminal to the positioning group once, and the message distribution operation of the backend server is performed, so that the members in the positioning group, that is, the terminals B, C, D, E, and F can be The specific means for obtaining the location information of the shared target terminal is the prior art, and is not described here for brevity.
可选地,在本发明实施例中,第一终端向至少两个目标终端发送的定位请求消息、用于请求共享定位信息的第一请求消息以及用于请求加入定位群组的第二请求消息可以合并为一个请求消息。具体地,例如至少两个目标终端为终端B、C、D、E和F,例如第一终端分别向终端B、C、D、E和F发送建立临时定位群组的请求消息,该请求消息用于请求加入临时定位群组并请求定位,同时请求共享定位信息,其中请求加入临时定位群组并请求定位具有同样的效力,即如果同意加入群组就表示同意定位,或者如果同意定位也表示同意加入群组。例如终端B、C、D、E和F同意定位(或者同意加入临时定位群组),但其中只有终端B和D同意共享定位信息,则第一终端获取到终端B、C、D、E和F的定位信息后,在该临时定位群组的公共页面内发送终端B和D的定位信息,该临时定位群组内的各个成员即终端B、C、D、E和F以及第一终端共享了终端B和D的定位信息。此外,第一终端也可以在该临时定位群组的公共页面内发送自己的定位信息。Optionally, in the embodiment of the present invention, the positioning request message sent by the first terminal to the at least two target terminals, the first request message for requesting the shared positioning information, and the second request message for requesting to join the positioning group. Can be combined into one request message. Specifically, for example, at least two target terminals are terminals B, C, D, E, and F. For example, the first terminal sends a request message for establishing a temporary positioning group to the terminals B, C, D, E, and F, respectively, the request message. Used to request to join a temporary positioning group and request positioning, and request sharing of positioning information, wherein the request to join the temporary positioning group and request the positioning has the same effect, that is, if the consent to join the group means to agree to the positioning, or if the consent is also indicated Agree to join the group. For example, the terminals B, C, D, E, and F agree to locate (or agree to join the temporary positioning group), but only the terminals B and D agree to share the positioning information, and the first terminal acquires the terminals B, C, D, E and After the positioning information of the F, the positioning information of the terminals B and D is sent in the public page of the temporary positioning group, and the members in the temporary positioning group, that is, the terminals B, C, D, E, and F, and the first terminal share The positioning information of terminals B and D. In addition, the first terminal may also send its own positioning information in the public page of the temporary positioning group.
可选地,作为本发明一个实施例,该方法还包括:Optionally, as an embodiment of the present invention, the method further includes:
该第一终端向该至少两个目标终端发送该第一终端的定位信息,该定位信息为地理位置信息或者地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息。The first terminal sends the location information of the first terminal to the at least two target terminals, where the location information is geographic location information or map identification location information, where the location identifier information is a location that matches the geographic location information and the map information. information.
因此,本发明实施例的共享定位信息的方法,在确定被定位终端同意共享定位信息的前提下,才向多人共享该被定位终端的定位信息,能够在实现共享定位信息的同时,有效保护了被定位终端的隐私,能够有效提高用户体验满意度。Therefore, the method for sharing the positioning information in the embodiment of the present invention, after determining that the positioned terminal agrees to share the positioning information, shares the positioning information of the positioned terminal with multiple people, and can effectively protect the shared positioning information The privacy of the located terminal can effectively improve user experience satisfaction.
可选地,作为本发明一个实施例,该第一终端向该至少两个目标终端中的第一目标终端发送该共享目标终端的定位信息,包括:Optionally, as an embodiment of the present invention, the first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
该第一终端当确认用户指令或本地策略所指示的共享条件满足时,向该至少两个目标终端中的第一目标终端发送共享目标终端的定位信息,该共享条件包括共享时间信息和/或共享位置信息。 When the first terminal confirms that the sharing condition indicated by the user command or the local policy is satisfied, the first target terminal of the at least two target terminals sends the positioning information of the shared target terminal, where the sharing condition includes sharing time information and/or Share location information.
具体地,第一终端在获取了至少两个目标终端的定位信息后,可以通过本地策略或用户输入的共享操作指令,确定共享条件,例如在3:00-5:00之间执行共享定位信息,或者在该至少两个目标终端都到达目的地后才停止共享操作指令。Specifically, after acquiring the location information of the at least two target terminals, the first terminal may determine the sharing condition by using a local policy or a shared operation instruction input by the user, for example, performing shared positioning information between 3:00 and 5:00. Or stop sharing the operation instruction after the at least two target terminals have reached the destination.
具体地,例如可以在第一终端上设置共享按钮,例如“将定位信息在定位群组内共享”和“定位共享设置”,假设第一终端将共享目标终端的定位信息都显示在电子地图页面上,如果只是一次性共享,即共享当前地图页面显示的共享目标终端的定位信息给定位群组内的成员(至少两个目标终端),则直接点击“将定位信息在定位群组内共享”,终端应用程序会接收到该指令,并将当前页面内的共享目标终端的定位信息发送给群组内的成员,使得各成员终端(至少两个目标终端)能够接收到共享目标终端的定位信息。如果是在一定条件内,持续将第一终端上地图页面显示的共享目标终端的定位信息共享给定位群组内的成员,则用户可以通过先设置“定位共享设置”来完成对于共享条件(共享时间信息和/或共享位置信息)的预设,例如,共享条件设置成在某个时间段内持续共享,还可以进一步设置共享发送的周期等信息,也可以设置直到定位群组内成员所有都到达目的地位置,才停止群组内共享。另外,共享条件可以默认为是定位时的定位授权条件。Specifically, for example, a sharing button may be set on the first terminal, for example, “share positioning information in the positioning group” and “location sharing setting”, and assume that the first terminal displays the positioning information of the shared target terminal on the electronic map page. On the other hand, if only one-time sharing, that is, sharing the positioning information of the shared target terminal displayed on the current map page to the members in the positioning group (at least two target terminals), directly click “Share the positioning information in the positioning group” The terminal application receives the instruction, and sends the positioning information of the shared target terminal in the current page to the members in the group, so that each member terminal (at least two target terminals) can receive the positioning information of the shared target terminal. . If the positioning information of the shared target terminal displayed on the map page on the first terminal is continuously shared with the members in the positioning group within a certain condition, the user can complete the sharing condition by first setting the “positioning sharing setting”. Presets of time information and/or shared location information, for example, the sharing condition is set to be continuously shared within a certain period of time, and information such as the period of the shared transmission may be further set, or may be set until all members in the group are located. The sharing within the group is stopped when the destination is reached. In addition, the sharing condition may default to the positioning authorization condition at the time of positioning.
因此,本发明实施例的共享位置信息的方法,通过获取多个目标终端的定位信息,确定该多个目标终端中同意共享定位信息的共享目标终端,将该共享目标终端的定位信息发送给该多个目标终端,能够在实现共享定位信息的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the method for sharing the location information in the embodiment of the present invention, by acquiring the location information of the plurality of target terminals, determining the shared target terminal that agrees to share the location information among the plurality of target terminals, and transmitting the location information of the shared target terminal to the The plurality of target terminals can effectively protect the privacy of the located terminal while sharing the positioning information, can improve the security level of the shared positioning information, and can improve the user experience satisfaction.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
上文中结合图3至图6c,从发起定位的第一终端的角度详细描述了根据本发明实施例的共享位置信息的方法,下面将结合图7至图9,从被定位的目标终端的角度描述根据本发明实施例的共享位置信息的方法。With reference to FIG. 3 to FIG. 6 c above, a method for sharing location information according to an embodiment of the present invention is described in detail from the perspective of initiating a located first terminal, which will be described below with reference to FIG. 7 to FIG. A method of sharing location information in accordance with an embodiment of the present invention is described.
图7示出了本发明实施例的共享定位信息的方法200,例如可以由目标终端执行,该方法200包括:FIG. 7 illustrates a method 200 for sharing location information according to an embodiment of the present invention, which may be performed, for example, by a target terminal. The method 200 includes:
S210,目标终端接收第一终端发送的定位请求消息,该定位请求消息包 括第一终端对该目标终端进行定位的定位时间请求信息或定位位置请求信息;S210. The target terminal receives a location request message sent by the first terminal, where the location request message packet is sent. The positioning time request information or the positioning location request information for positioning the target terminal by the first terminal;
S220,该目标终端根据该定位请求消息,确定该目标终端允许该第一终端对其进行定位的定位授权条件,该定位授权条件包括根据该定位时间请求信息确定的定位时间信息,或根据该定位位置信息确定的定位位置信息;S220, the target terminal determines, according to the positioning request message, a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal, where the positioning authorization condition includes positioning time information determined according to the positioning time request information, or according to the positioning. Positioning location information determined by the location information;
S230,该目标终端根据该定位授权条件,向该第一终端发送该目标终端的定位信息;S230. The target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition.
S240,该目标终端接收该第一终端发送的共享目标终端的定位信息,该共享目标终端为同意共享定位信息的目标终端。S240: The target terminal receives the positioning information of the shared target terminal sent by the first terminal, where the shared target terminal is a target terminal that agrees to share the positioning information.
被定位的目标终端根据经发起定位的第一终端和被定位的目标终端共同确定的定位授权条件,向第一终端盒发送定位信息。同时还可以获得共享目标终端的定位信息。The targeted target terminal sends the positioning information to the first terminal box according to the positioning authorization condition jointly determined by the first terminal that is located and the target terminal that is located. At the same time, the positioning information of the shared target terminal can also be obtained.
因此,本发明实施例的共享位置信息的方法,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高被他人定位的安全性,能够提高用户体验满意度。Therefore, the method for sharing the location information according to the embodiment of the present invention sends the location information to the terminal that initiated the location according to the location authorization condition jointly determined by the location-initiating terminal and the location terminal, and can effectively protect the located location while being positioned by others. The privacy of the terminal can improve the security of being positioned by others and improve the user experience satisfaction.
其中定位授权条件包括定位时间信息或定位位置信息,定位时间信息可以是一个或多个时间点,还可以是一个或多个时间段,或其他时间信息,即该定位时间信息表示了定位的时间范围;定位位置信息可以是定位起始点位置信息,也可以是定位终止点位置信息或者其他位置信息,即该定位位置信息表示了定位的地域范围。The positioning authorization information includes positioning time information or positioning location information, and the positioning time information may be one or more time points, or may be one or more time segments, or other time information, that is, the positioning time information indicates the positioning time. The location location information may be location start location information, or location termination location information or other location information, that is, the location location information indicates the location range of the location.
具体地,以目标终端为终端B,第一终端为终端A为例,图5示出了终端A和终端B协商定位授权条件的具体流程,在S21中,终端A向终端B发送定位请求消息,该定位请求消息包括定位时间请求信息或定位位置请求信息;在S22中,终端B根据接收到的定位请求消息,确定同意被定位,并根据定位请求消息确定定位时间响应信息或定位位置响应信息,具体地,可以是直接将定位时间请求信息确定为定位时间响应信息,也可以是将修改后的定位时间请求信息确定为定位时间响应信息,对应地,也可以将定位位置请求信息或修改后的定位位置请求信息确定为定位位置响应信息;在S23中,终端B向终端A发送定位请求响应消息,该定位请求响应消息用于指示同意被定位,并包括根据定位请求消息确定的定位时间响应信息或定位位 置响应信息;在S24中,终端A根据该定位请求响应消息,确定终端A对终端B进行定位的定位授权条件,该定位授权条件包括定位时间信息或定位位置信息。Specifically, the target terminal is the terminal B, and the first terminal is the terminal A. FIG. 5 shows a specific process of the terminal A and the terminal B negotiating the location authorization condition. In S21, the terminal A sends a location request message to the terminal B. The positioning request message includes positioning time request information or positioning location request information. In S22, the terminal B determines that the positioning is agreed according to the received positioning request message, and determines the positioning time response information or the positioning location response information according to the positioning request message. Specifically, the positioning time request information may be directly determined as the positioning time response information, or the modified positioning time request information may be determined as the positioning time response information, and correspondingly, the positioning location request information may be modified or modified. The location location request information is determined as the location location response information; in S23, the terminal B sends a location request response message to the terminal A, the location request response message is used to indicate that the consent is located, and includes a positioning time response determined according to the location request message. Information or location In S24, the terminal A determines, according to the positioning request response message, the positioning authorization condition for the terminal A to locate the terminal B, where the positioning authorization condition includes positioning time information or positioning location information.
在S21中,终端A发送的定位请求消息中,还可以包括终端A或者终端B的标识信息,例如可以是终端B或者终端A的用户姓名、电话号码等,也可以是终端B或者终端A的设备类型信息等。In S21, the location request message sent by the terminal A may further include the identifier information of the terminal A or the terminal B, for example, the user name, the phone number, etc. of the terminal B or the terminal A, or the terminal B or the terminal A. Device type information, etc.
在S22中,终端B根据接收到的定位请求消息,确定是否同意定位,以及同意定位时的定位授权条件;具体地,终端B可以通过本地预设定位条件匹配定位请求消息中包括的定位请求信息,确定定位授权条件,并将该定位授权条件呈现给用户,由用户来最终确认定位授权条件;还可以直接将定位请求信息反映给用户,完全依赖用户指令确定定位授权条件;还可以在本地预设高优先级用户标识信息列表,例如白名单,该终端B可以自动匹配发起定位请求的终端A的标识信息和该高优先级用户标识信息列表,当该高优先级用户标识信息列表包括该终端A时,可以不经用户指示直接回复允许定位追踪的确认消息。下文将对终端B根据定位请求消息确定定位授权条件的流程和方法作详细说明。In S22, the terminal B determines, according to the received positioning request message, whether to agree to the positioning, and the positioning authorization condition when the positioning is agreed. Specifically, the terminal B can match the positioning request information included in the positioning request message by using the local preset positioning condition. Determining the positioning authorization condition, and presenting the positioning authorization condition to the user, and finally confirming the positioning authorization condition by the user; and directly reflecting the positioning request information to the user, completely relying on the user instruction to determine the positioning authorization condition; Setting a high-priority user identification information list, such as a whitelist, the terminal B can automatically match the identification information of the terminal A that initiated the positioning request and the high-priority user identification information list, and the high-priority user identification information list includes the terminal. At time A, the confirmation message allowing the location tracking can be directly replied without the user's instruction. The procedure and method for determining the location authorization condition by the terminal B according to the location request message will be described in detail below.
在本发明实施例中,可选地,该目标终端根据该定位请求消息,确定该目标终端允许该第一终端对其进行定位的定位授权条件,包括:In the embodiment of the present invention, optionally, the target terminal determines, according to the location request message, a location authorization condition that the target terminal allows the first terminal to locate, including:
该目标终端将该定位请求消息中包括的定位请求信息确定为该定位授权条件,或修改后的定位请求信息确定为该定位授权条件。The target terminal determines the location request information included in the location request message as the location authorization condition, or the modified location request information determines the location authorization condition.
具体地,目标终端可以根据本地预设定位条件,确定定位授权条件,本地预设定位条件可以是一些粗线条的安全策略,例如,简单的允许被定位、不被定位、或某个时间段内允许被定位,或者是某个时间点允许被定位,或者是某段地域范围内允许被定位等等;也可以是一些指示信息,例如当定位请求信息满足特定的条件时,允许在特定的时间范围或者地域范围被定位等。允许被定位后,定位授权条件的可以直接根据定位请求信息确定,也可以是根据本地预设定位条件的具体设置,将该定位请求信息修改后,确定为定位授权条件。应理解,本地预设定位条件可以由目标终端系统预先配置,也可以由用户随时随地设置,本发明实施例对该本地预设定位条件的具体内容不做任何限定,只要通过该本地预设定位条件能够确定出定位授权条件即可。 Specifically, the target terminal may determine the location authorization condition according to the local preset positioning condition, and the local preset location condition may be some thick line security policy, for example, simply allowing to be located, not being located, or allowed within a certain period of time. Is located, or is allowed to be located at a certain point in time, or is allowed to be located within a certain geographical area, etc.; or may be some indication information, for example, when the positioning request information satisfies a specific condition, allowing for a specific time range Or the geographical scope is positioned. After being allowed to be located, the positioning authorization condition may be determined directly according to the positioning request information, or may be determined according to a specific setting of the local preset positioning condition, and the positioning request information is determined to be a positioning authorization condition. It should be understood that the local preset positioning condition may be pre-configured by the target terminal system, or may be set by the user anytime and anywhere. In the embodiment of the present invention, the specific content of the local preset positioning condition is not limited, as long as the local preset positioning is adopted. The condition can determine the positioning authorization condition.
可选地,作为本发明一个实施例,该目标终端接收的该定位请求消息中还包括该第一终端的标识信息;Optionally, as an embodiment of the present invention, the location request message received by the target terminal further includes identifier information of the first terminal;
该目标终端根据该定位请求消息,确定该目标终端允许该第一终端对其进行定位的定位授权条件,包括:The target terminal determines, according to the location request message, a location authorization condition that the target terminal allows the first terminal to locate, including:
该目标终端当确定本地预设标识信息包括该定位请求消息包括的该标识信息时,将该定位请求消息中的定位时间请求信息或定位位置请求信息确定为该定位授权条件。When determining that the local preset identifier information includes the identifier information included in the location request message, the target terminal determines the location time request information or the location location request information in the location request message as the location authorization condition.
本地预设标识信息可以是目标终端的本地存储的联系人通讯录,还可以是预先设置到目标终端上的一个可信定位联系人列表,还可以是终端类型,还可以其他标识终端属性的预设信息。具体地,例如该本地预设标识信息为是目标终端的本地存储的可信定位联系人列表,当确定发起定位请求的发起定位的终端的用户姓名在可信定位联系人列表中时,允许该发起定位的终端的定位请求,并可以将定位请求消息所指示的定位时间请求信息或定位位置请求信息直接作为定位授权条件。The local preset identifier information may be a locally stored contact address book of the target terminal, or may be a trusted location contact list set in advance to the target terminal, or may be a terminal type, and may also be used to identify other terminal attributes. Set information. Specifically, for example, the local preset identifier information is a locally stored trusted location contact list of the target terminal, and when it is determined that the user name of the terminal that initiated the location request is located in the trusted location contact list, the The positioning request of the located terminal is initiated, and the positioning time request information or the positioning location request information indicated by the positioning request message may be directly used as the positioning authorization condition.
在本发明实施例中,目标终端根据本地预设定位条件确定定位授权条件后,还需要将该定位授权条件或者指示该定位授权条件的指示信息呈现给目标终端的用户,最终根据用户指令来确认是否允许发起定位的终端的定位请求,以及允许定位时的定位授权条件。In the embodiment of the present invention, after determining the positioning authorization condition according to the local preset positioning condition, the target terminal also needs to present the positioning authorization condition or the indication information indicating the positioning authorization condition to the user of the target terminal, and finally confirm according to the user instruction. Whether to allow the positioning request of the terminal that initiated the positioning, and the positioning authorization condition when the positioning is allowed.
可选地,作为本发明一个实施例,该方法还包括:Optionally, as an embodiment of the present invention, the method further includes:
向用户呈现用于指示该定位授权条件的请求信息;Presenting to the user request information indicating the location authorization condition;
接收用户指令,该用户指令用于指示经用户授权的定位授权条件;Receiving a user instruction, the user instruction is used to indicate a location authorization condition authorized by the user;
根据该用户指令,将经该用户授权的定位授权条件确定为该目标终端允许该第一终端对其进行定位的定位授权条件;Determining, according to the user instruction, a positioning authorization condition authorized by the user as a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal;
向该第一终端发送定位响应消息,该定位响应消息包括该经用户授权的定位授权条件。Sending a location response message to the first terminal, where the location response message includes the location authorization condition authorized by the user.
可选地,作为本发明一个实施例,该方法还包括:Optionally, as an embodiment of the present invention, the method further includes:
向该第一终端发送定位响应消息,该定位响应消息包括该定位授权条件。Sending a location response message to the first terminal, where the location response message includes the location authorization condition.
应理解,目标终端的本地预设标识信息还可以是高优先级定位用户标识信息,例如“定位白名单”,当确定发起定位请求的用户在该“定位白名单”中时,可以直接将定位请求信息作为定位授权条件,并可以直接向发起定位 的终端发送定位请求响应消息,该定位请求响应消息指示定位授权条件,在这种发明实施例中,目标终端可以不依赖于用户指令而直接向发起定位的终端反馈定位请求响应消息。目标终端还可以在本地设置低等级用户标识信息,例如“定位黑名单”,当确定发起定位的终端的标识信息在“定位黑名单”中,直接拒绝发起定位的终端的定位请求。It should be understood that the local preset identifier information of the target terminal may also be a high-priority positioning user identifier information, such as a “location whitelist”. When determining that the user who initiated the positioning request is in the “positioning whitelist”, the positioning may be directly performed. Request information as a location authorization condition and can directly initiate a location The terminal sends a location request response message, and the location request response message indicates a location authorization condition. In this embodiment of the invention, the target terminal may directly feed back the location request response message to the terminal that initiated the location without relying on the user instruction. The target terminal can also set the low-level user identification information locally, for example, the “location blacklist”. When determining the identification information of the terminal that initiates the positioning in the “location blacklist”, the positioning request of the terminal that initiated the positioning is directly rejected.
目标终端除了上述先根据本地预设定位条件或者本地预设标识信息确定定位授权条件,然后将定位授权条件呈现给用户,根据用户指令确定经用户授权的定位授权条件外,还可以完全依赖于用户的UI输入反馈。The target terminal determines the positioning authorization condition according to the local preset positioning condition or the local preset identification information, and then presents the positioning authorization condition to the user, and determines the positioning authorization condition authorized by the user according to the user instruction, and may completely depend on the user. UI input feedback.
可选地,作为本发明一个实施例,该目标终端根据该定位请求消息,确定该目标终端允许该第一终端对其进行定位的定位授权条件,包括:Optionally, as an embodiment of the present invention, the target terminal determines, according to the location request message, a location authorization condition that the target terminal allows the first terminal to locate, including:
向用户呈现用于指示该定位请求消息的请求信息;Presenting to the user request information indicating the positioning request message;
接收用户指令,该用户指令用于指示经用户根据该定位请求消息确定的定位授权条件;Receiving a user instruction, where the user instruction is used to indicate a positioning authorization condition determined by the user according to the positioning request message;
根据该用户指令,确定该目标终端允许该第一终端对其进行定位的定位授权条件。And determining, according to the user instruction, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
应理解,具体呈现方式可以是语音播报,比如用户在开车等过程中,或者用户所使用的是智能手表等穿戴式设备,呈现方式还可以是在用户界面(User Surface,简称为“UI”)直接显示,也可以短信方式通知用户,目标终端的系统程序可以基于本地策略和已获取的信息,具体判断是以哪种方式呈现给用户,本发明实施例对此不作限定。It should be understood that the specific presentation manner may be a voice broadcast, for example, the user is in the process of driving, or the user uses a wearable device such as a smart watch, and the presentation manner may also be a user interface (User Surface, referred to as “UI”). The user can directly notify the user, and the system program of the target terminal can be based on the local policy and the acquired information, and the method is specifically determined to be presented to the user.
还应理解,目标终端除了向用户呈现已经确定的定位授权条件外,也可以向用户呈现如何修改定位请求信息等建议。It should also be understood that in addition to presenting the determined positioning authorization conditions to the user, the target terminal may also present the user with suggestions on how to modify the positioning request information.
在S230中,该目标终端根据该定位授权条件,向该第一终端发送该目标终端的定位信息;具体地,可以根据定位授权条件,向第一终端上报目标终端的地理位置信息或者地图标识信息。In S230, the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition. Specifically, the location information of the target terminal or the map identifier information may be reported to the first terminal according to the location authorization condition. .
可选地,作为本发明一个实施例,该目标终端根据该定位授权条件,向该第一终端发送该目标终端的定位信息,包括:Optionally, as an embodiment of the present invention, the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition, including:
该目标终端确定该目标终端的地图标识位置信息,该地图标识位置信息为该目标终端的地理位置信息与地图信息匹配后的位置信息;The target terminal determines location identifier information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information;
该目标终端根据该定位授权条件,向该第一终端发送该地图标识位置信息,以便于该第一终端对该目标终端进行定位。 The target terminal sends the map identifier location information to the first terminal according to the location authorization condition, so that the first terminal locates the target terminal.
可选地,作为本发明一个实施例,该目标终端确定该目标终端的地图标识位置信息,包括:Optionally, as an embodiment of the present invention, the target terminal determines location identifier information of the target terminal, including:
该目标终端向服务器发送包括该目标终端的地理位置信息的请求消息,该请求消息用于请求服务器发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息;The target terminal sends a request message including the geographic location information of the target terminal to the server, where the request message is used to request the server to send the map identification location information that matches the geographical location information with the server map information;
该目标终端接收该服务器发送的响应消息,该响应消息包括该地图标识位置信息;Receiving, by the target terminal, a response message sent by the server, where the response message includes the map identification location information;
该目标终端根据该响应消息,确定该目标终端的地图标识位置信息。The target terminal determines the map identification location information of the target terminal according to the response message.
可选地,作为本发明一个实施例,该目标终端确定该目标终端的地图标识位置信息,包括:该目标终端根据本地地图信息匹配该目标终端的地理位置信息,确定该目标终端的该地图标识位置信息。Optionally, as an embodiment of the present invention, the target terminal determines location identifier information of the target terminal, including: the target terminal matches geographical location information of the target terminal according to local map information, and determines the map identifier of the target terminal. location information.
可选地,作为本发明一个实施例,该目标终端根据该定位授权条件,向该第一终端发送该目标终端的定位信息,包括:Optionally, as an embodiment of the present invention, the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition, including:
该目标终端接收服务器发送的包括该目标终端的标识信息的请求消息;Receiving, by the target terminal, a request message that is sent by the server and includes identifier information of the target terminal;
该目标终端向该服务器发送包括该目标终端的地理位置信息的响应消息,以便于该服务器向该第一终端发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息,以便于该第一终端对该目标终端进行定位。The target terminal sends a response message including the geographic location information of the target terminal to the server, so that the server sends the map identification location information that matches the geographical location information and the server map information to the first terminal, so as to facilitate the first A terminal locates the target terminal.
具体地,以第一终端为终端A、目标终端为终端B为例,如图6(a)至图6(c)所示。Specifically, the first terminal is the terminal A and the target terminal is the terminal B, as shown in FIG. 6(a) to FIG. 6(c).
在图6(a)中,在S2511中,终端A向终端B发送位置请求消息;在S2512中,终端B向终端A发送终端B的地理位置信息;在S2513中,终端A获取终端B的地理位置信息,以对其进行定位。应理解,步骤S2511可以没有,即终端B可以在未接收到终端A的位置请求消息前,主动向终端A上报自己的地理位置信息。In FIG. 6(a), in S2511, the terminal A transmits a location request message to the terminal B; in S2512, the terminal B transmits the geographical location information of the terminal B to the terminal A; in S2513, the terminal A acquires the geographical location of the terminal B. Location information to locate it. It should be understood that the step S2511 may be absent, that is, the terminal B may report its own geographical location information to the terminal A actively before receiving the location request message of the terminal A.
在图6(b)中,在S2521中,终端A向终端B发送位置请求消息;在S2522中,终端B根据自己的地理位置信息确定对应的地图标识位置信息;在S2523中,终端B向终端A发送终端B的地图标识位置信息,在S2524中,终端A获取终端B的地图标识位置信息,以对其进行定位。应理解,步骤S2521也可以没有,即终端B在同意被定位后,可以主动向终端A上报自己的地图标识位置信息。In FIG. 6(b), in S2521, terminal A transmits a location request message to terminal B; in S2522, terminal B determines corresponding map identification location information according to its own geographical location information; in S2523, terminal B proceeds to terminal A transmits the map identification location information of the terminal B, and in S2524, the terminal A acquires the map identification location information of the terminal B to locate it. It should be understood that step S2521 may also be absent, that is, after the terminal B agrees to be located, the terminal B may actively report its own map identification location information to the terminal A.
在图6(c)中,在S2531中,终端A根据定位授权条件,向服务器发送包 括有终端B的标识信息的请求消息,用以请求终端B的地图标识信息;在S2532中,服务器向终端B发送用于请求地理位置信息的请求消息;在S2533中,终端B向服务器上报包括自己地理位置信息的响应消息;在S2534中,服务器通过地图标识信息匹配终端B的地理位置信息,确定终端B的地图标识位置信息;在S2535中,服务器向终端A发送包括终端B的地图标识位置信息的响应消息;在S2536中,终端A根据服务器下发的响应消息,获取终端B的地图标识位置信息,以对其进行定位。In FIG. 6(c), in S2531, terminal A sends a packet to the server according to the positioning authorization condition. a request message including the identification information of the terminal B for requesting the map identification information of the terminal B; in S2532, the server sends a request message for requesting the geographical location information to the terminal B; in S2533, the terminal B reports the report to the server. The response message of the own geographical location information; in S2534, the server matches the geographical location information of the terminal B by the map identification information, and determines the map identification location information of the terminal B; in S2535, the server sends the map identification location including the terminal B to the terminal A. The response message of the information; in S2536, the terminal A acquires the map identification location information of the terminal B according to the response message sent by the server to locate the information.
因此,本发明实施例的共享位置信息的方法,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高被他人定位的安全性,能够提高用户体验满意度。Therefore, the method for sharing the location information according to the embodiment of the present invention sends the location information to the terminal that initiated the location according to the location authorization condition jointly determined by the location-initiating terminal and the location terminal, and can effectively protect the located location while being positioned by others. The privacy of the terminal can improve the security of being positioned by others and improve the user experience satisfaction.
在S240中,该目标终端接收该第一终端发送的共享目标终端的定位信息,该共享目标终端为同意共享定位信息的目标终端。In S240, the target terminal receives the positioning information of the shared target terminal sent by the first terminal, and the shared target terminal is a target terminal that agrees to share the positioning information.
该目标终端在根据定位授权条件,向第一终端发送自己定位信息的基础上,可以接收来自第一终端发送的共享目标终端的定位信息,实现了该目标终端定位他人,其中共享目标终端为同意共享自己位置信息的终端。The target terminal can receive the positioning information of the shared target terminal sent by the first terminal according to the positioning authorization condition, and can obtain the positioning information of the shared target terminal sent by the first terminal, and realize that the target terminal locates the other party, wherein the shared target terminal is the consent. A terminal that shares its own location information.
可选地,作为本发明一个实施例,该方法还包括:Optionally, as an embodiment of the present invention, the method further includes:
该目标终端接收该第一终端发送的用于请求共享定位信息的第一请求消息;Receiving, by the target terminal, a first request message that is sent by the first terminal to request to share positioning information;
该目标终端当确定同意共享定位信息时,向该第一终端发送用于指示同意共享位置信息的第一响应消息。When the target terminal determines to agree to share the location information, the target terminal sends a first response message indicating that the shared location information is agreed to be sent to the first terminal.
具体地,当目标终端同意将自己的位置共享给第一终端之外的其他终端时,可以根据第一终端发送的用于请求共享位置信息的第一请求消息,向该第一终端发送用于指示同意共享位置信息的第一响应消息。Specifically, when the target terminal agrees to share the location of the terminal to the other terminal than the first terminal, the first terminal may send the first request message for requesting the shared location information to the first terminal. A first response message indicating consent to share location information.
应理解,当该目标终端不同意共享自己位置信息时,可以向该第一终端发送用于指示不同意共享位置信息的第一响应消息,也可以不发送任何响应消息,默认表示不同意共享位置信息。It should be understood that when the target terminal does not agree to share the location information of the user, the first terminal may send a first response message indicating that the location information is not agreed to be shared, or may not send any response message, and the default indicates that the shared location is not agreed. information.
还应理解,在该目标终端同意共享位置信息的情况下,在S240中,该目标终端接收到的第一终端发送的共享目标终端的定位信息中,还可以包括该目标终端的定位信息,也可能通过第一终端的处理,不再向该目标终端发送该目标终端自己的定位信息。 It should be further understood that, in the case that the target terminal agrees to share the location information, in S240, the location information of the shared target terminal that is sent by the first terminal that is received by the target terminal may further include the location information of the target terminal, The location information of the target terminal itself may not be sent to the target terminal by the processing of the first terminal.
可选地,作为本发明一个实施例,该共享目标终端不包括该目标终端。Optionally, as an embodiment of the present invention, the shared target terminal does not include the target terminal.
具体地,例如,第一终端能够获取到终端B、C、D、E和F的定位信息,其中B和C为共享目标终端,第一终端可以将共享目标终端B和C的定位信息群发给终端B、C、D、E和F;可选地,在向终端B共享定位信息时,可以只发送终端C的定位信息,同理,在向终端C共享定位信息时,可以只发送终端B的定位信息。例如目标终端为上述终端B时,该目标终端接收到的第一终端发送的共享目标终端的定位信息中,可能包括该目标终端的定位信息,也可能不包括该目标终端自己的定位信息。Specifically, for example, the first terminal can acquire location information of the terminals B, C, D, E, and F, where B and C are shared target terminals, and the first terminal can send the location information group of the shared target terminals B and C to the Terminals B, C, D, E, and F; optionally, when the location information is shared with the terminal B, only the location information of the terminal C can be sent. Similarly, when the location information is shared with the terminal C, only the terminal B can be sent. Location information. For example, when the target terminal is the terminal B, the location information of the shared target terminal that is sent by the first terminal may include the location information of the target terminal, or may not include the location information of the target terminal.
因此,本发明实施例的共享定位信息的方法,在征得被定位终端同意共享位置信息的前提下,才会将该被定位终端的定位信息共享给其他终端,能够有效维护被定位终端的隐私和安全,可以提高用户体验满意度。Therefore, the method for sharing the positioning information in the embodiment of the present invention shares the positioning information of the positioned terminal to other terminals under the premise that the positioned terminal agrees to share the location information, and can effectively maintain the privacy of the positioned terminal. And security can improve user experience satisfaction.
可选地,作为本发明一个实施例,该方法还包括:Optionally, as an embodiment of the present invention, the method further includes:
该目标终端接收该第一终端发送的用于请求加入定位群组的第二请求消息;Receiving, by the target terminal, a second request message sent by the first terminal for requesting to join the positioning group;
该目标终端向该第一终端发送用于指示同意加入该定位群组的第二响应消息;Sending, by the target terminal, a second response message for indicating to join the positioning group to the first terminal;
该目标终端接收该第一终端发送的共享目标终端的定位信息,包括:The target terminal receives the positioning information of the shared target terminal that is sent by the first terminal, and includes:
该目标终端在该定位群组内接收该共享目标终端的定位信息。The target terminal receives the positioning information of the shared target terminal in the positioning group.
具体地,例如,该目标终端为终端B,第一终端分别向终端B、C、D、E和F发送请求加入定位群组的请求,并接收终端B、C、D、E和F的同意加入定位群组的响应,这种情形下,第一终端、终端B、C、D、E和F属于一个定位群组,当第一终端在该定位群组内发送共享目标终端的定位信息时,该定位群组内的所有成员都可以获取到该共享目标终端的定位信息,即该目标终端可以在该定位群组内接收该共享目标终端的定位信息。Specifically, for example, the target terminal is the terminal B, and the first terminal sends a request for joining the positioning group to the terminals B, C, D, E, and F, respectively, and receives the consent of the terminals B, C, D, E, and F. A response to the locating group is added. In this case, the first terminal, the terminals B, C, D, E, and F belong to a positioning group, and when the first terminal sends the positioning information of the shared target terminal in the positioning group, All the members in the positioning group can obtain the positioning information of the shared target terminal, that is, the target terminal can receive the positioning information of the shared target terminal in the positioning group.
应理解,第一终端只向定位群组发送一次共享目标终端的定位信息,通过后端服务器的消息分发操作,以使得定位群组内的成员即终端B、C、D、E和F都能获取到共享目标终端的定位信息的具体手段为现有技术,为了简洁,这里不再赘述。It should be understood that the first terminal only sends the positioning information of the shared target terminal to the positioning group once, and the message distribution operation of the backend server is performed, so that the members in the positioning group, that is, the terminals B, C, D, E, and F can be The specific means for obtaining the location information of the shared target terminal is the prior art, and is not described here for brevity.
因此,本发明实施例的共享位置信息的方法,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高被他人定位 的安全性,能够提高用户体验满意度。Therefore, the method for sharing the location information according to the embodiment of the present invention sends the location information to the terminal that initiated the location according to the location authorization condition jointly determined by the location-initiating terminal and the location terminal, and can effectively protect the located location while being positioned by others. The privacy of the terminal can improve the positioning by others Security can improve user experience satisfaction.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
还应理解,本发明实施例仅以第一终端作为发起定位终端、目标终端作为被定位终端为例进行说明,但本发明实施例并不限于此,任何终端都可以作为发起定位的终端,也可以作为被定位终端。It should be understood that the embodiment of the present invention only uses the first terminal as the initiating positioning terminal and the target terminal as the positioning terminal as an example. However, the embodiment of the present invention is not limited thereto, and any terminal may serve as a terminal for initiating positioning. Can be used as a terminal to be located.
上文中结合图1至图7,详细描述了根据本发明实施例的共享定位信息的方法,下面将结合图8和图9,详细描述根据本发明实施例的终端。A method for sharing positioning information according to an embodiment of the present invention is described in detail above with reference to FIG. 1 to FIG. 7. A terminal according to an embodiment of the present invention will be described in detail below with reference to FIG. 8 and FIG.
图8示出了根据本发明实施例的终端300的示意性框图,如图8所示,该终端300包括:FIG. 8 shows a schematic block diagram of a terminal 300 according to an embodiment of the present invention. As shown in FIG. 8, the terminal 300 includes:
获取模块310,用于获取至少两个目标终端的定位信息;The obtaining module 310 is configured to acquire positioning information of at least two target terminals;
确定模块320,用于确定该至少两个目标终端中的共享目标终端,该共享目标终端为同意共享定位信息的目标终端;a determining module 320, configured to determine a shared target terminal of the at least two target terminals, where the shared target terminal is a target terminal that agrees to share positioning information;
发送模块330,用于向该至少两个目标终端中的第一目标终端发送该确定模块确定的该共享目标终端的定位信息。The sending module 330 is configured to send the positioning information of the shared target terminal determined by the determining module to the first target terminal of the at least two target terminals.
因此,本发明实施例的终端300,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the terminal 300 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
在本发明实施例中,可选地,该获取模块包括:In the embodiment of the present invention, optionally, the obtaining module includes:
第一发送单元,用于向该至少两个目标终端发送定位请求消息,该定位请求消息包括第一终端对该至少两个目标终端进行定位的定位时间请求信息或定位位置请求信息;a first sending unit, configured to send a positioning request message to the at least two target terminals, where the positioning request message includes positioning time request information or positioning location request information for positioning the at least two target terminals by the first terminal;
第一接收单元,用于接收该至少两个目标终端发送的定位响应消息,该定位响应消息用于指示该至少两个目标终端根据该第一发送单元发送的该定位请求消息确定的定位时间响应信息或定位位置响应信息;a first receiving unit, configured to receive a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate a positioning time response determined by the at least two target terminals according to the positioning request message sent by the first sending unit Information or location location response information;
第一确定单元,用于根据该第一接收单元接收的该定位响应消息,确定该至少两个目标终端的定位授权条件,该定位授权条件包括经该定位时间请求信息和该定位时间响应信息共同确定的定位时间信息,或经该定位位置请求信息和该定位位置响应信息共同确定的定位位置信息; a first determining unit, configured to determine, according to the positioning response message received by the first receiving unit, a positioning authorization condition of the at least two target terminals, where the positioning authorization condition includes the positioning time request information and the positioning time response information The determined positioning time information, or the positioning location information determined by the positioning location request information and the positioning location response information;
获取单元,用于根据该第一确定单元确定的该定位授权条件,获取该至少两个目标终端的定位信息。And an obtaining unit, configured to acquire positioning information of the at least two target terminals according to the positioning authorization condition determined by the first determining unit.
在本发明实施例中,可选地,该确定模块包括:In the embodiment of the present invention, optionally, the determining module includes:
第二发送单元,用于向该至少两个目标终端发送用于请求共享位置信息的第一请求消息;a second sending unit, configured to send, to the at least two target terminals, a first request message for requesting shared location information;
第二接收单元,用于接收该至少两个目标终端中的第二目标终端发送的第一响应消息;a second receiving unit, configured to receive a first response message sent by the second target terminal of the at least two target terminals;
第二确定单元,用于根据该第二接收单元接收的该第一响应消息,将该第二目标终端中同意共享位置信息的目标终端确定为该共享目标终端。The second determining unit is configured to determine, according to the first response message received by the second receiving unit, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
在本发明实施例中,可选地,该发送模块具体用于,分别向该至少两个目标终端中的每个目标终端发送该共享目标终端的定位信息。In the embodiment of the present invention, the sending module is specifically configured to send the positioning information of the shared target terminal to each of the at least two target terminals.
在本发明实施例中,可选地,该发送模块具体用于,向该第一目标终端发送该共享目标终端的定位信息,该第一目标终端为该至少两个目标终端中除该共享目标终端之外的目标终端。In the embodiment of the present invention, the sending module is specifically configured to send the positioning information of the shared target terminal to the first target terminal, where the first target terminal is the shared target of the at least two target terminals. Target terminal outside the terminal.
在本发明实施例中,可选地,该终端还包括:In the embodiment of the present invention, optionally, the terminal further includes:
该发送模块还用于,向该至少两个目标终端发送用于请求加入定位群组的第二请求消息;The sending module is further configured to send, to the at least two target terminals, a second request message for requesting to join the positioning group;
该终端还包括:The terminal also includes:
接收模块,用于接收该至少两个目标终端发送的用于指示同意加入该定位群组的第二响应消息;a receiving module, configured to receive a second response message sent by the at least two target terminals to indicate that the user is authorized to join the positioning group;
该发送模块具体用于,向该定位群组发送该共享目标终端的定位信息,以便于该至少两个目标终端获取该共享目标终端的定位信息。The sending module is configured to send the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
在本发明实施例中,可选地,该发送模块具体用于,当确认用户指令或本地策略所指示的共享条件满足时,向该至少两个目标终端中的第一目标终端发送共享目标终端的定位信息,该共享条件包括共享时间信息和/或共享位置信息。In the embodiment of the present invention, the sending module is specifically configured to: when the confirmation that the sharing condition indicated by the user instruction or the local policy is met, send the shared target terminal to the first target terminal of the at least two target terminals. Positioning information including sharing time information and/or sharing location information.
在本发明实施例中,可选地,该发送模块还用于,向该至少两个目标终端发送该第一终端的定位信息,该定位信息为地理位置信息或者地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息。In the embodiment of the present invention, the sending module is further configured to send the positioning information of the first terminal to the at least two target terminals, where the positioning information is geographic location information or map identification location information, and the map identifier is The location information is location information after the geographic location information matches the map information.
在本发明实施例中,可选地,该获取单元具体用于,接收该至少两个目 标终端根据该定位授权条件发送的地理位置信息。In an embodiment of the present invention, the acquiring unit is specifically configured to receive the at least two items. The geographical location information sent by the target terminal according to the positioning authorization condition.
在本发明实施例中,可选地,该第一发送单元还用于,向服务器发送包括该获取单元获取的该地理位置信息的第三请求消息,该请求消息用于请求与该地理位置信息对应的地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息;In the embodiment of the present invention, the first sending unit is further configured to send, to the server, a third request message that includes the geographic location information acquired by the acquiring unit, where the request message is used to request the geographic location information Corresponding map identification location information, the map identification location information is location information after the geographic location information and the map information are matched;
该第一接收单元还用于,接收该服务器发送的第三响应消息,该响应消息包括该地图标识位置信息;The first receiving unit is further configured to receive a third response message sent by the server, where the response message includes the map identification location information;
该第一确定单元还用于,根据该第一接收单元接收的该第三响应消息,确定该至少两个目标终端的地图标识位置信息。The first determining unit is further configured to determine map identification location information of the at least two target terminals according to the third response message received by the first receiving unit.
在本发明实施例中,可选地,该第一确定单元还用于,根据本地地图信息匹配该获取单元获取的该地理位置信息,确定该至少两个目标终端的地图标识位置信息。In the embodiment of the present invention, the first determining unit is further configured to: determine, according to the local map information, the geographic location information acquired by the acquiring unit, and determine map identification location information of the at least two target terminals.
在本发明实施例中,可选地,该获取单元具体用于,接收该至少两个目标终端根据该定位授权条件发送的该至少两个目标终端的地图标识位置信息,该地图标识位置信息为该至少两个目标终端的地理位置信息与地图信息匹配后的位置信息。In the embodiment of the present invention, the acquiring unit is configured to receive, by the at least two target terminals, location identifier information of the at least two target terminals that are sent according to the positioning authorization condition, where the map identification location information is Location information of the at least two target terminals that match the map information.
在本发明实施例中,可选地,该获取单元包括:In the embodiment of the present invention, optionally, the obtaining unit includes:
发送子单元用于,向服务器发送包括该至少两个目标终端的标识信息的第四请求消息,该请求消息用于请求该至少两个目标终端的地图标识位置信息;The sending subunit is configured to send, to the server, a fourth request message that includes the identifier information of the at least two target terminals, where the request message is used to request map identification location information of the at least two target terminals;
接收子单元用于,接收该服务器发送的第四响应消息,该第四响应消息包括将该至少两个目标终端的地理位置信息与服务器地图信息进行匹配后的该地图标识位置信息;The receiving subunit is configured to receive a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographical location information of the at least two target terminals is matched with the server map information;
获取子单元用于,根据该接收子单元接收的该第四响应消息,获取该至少两个目标终端的地图标识位置信息。The obtaining subunit is configured to acquire map identification location information of the at least two target terminals according to the fourth response message received by the receiving subunit.
应理解,根据本发明实施例的终端300可对应于本发明实施例的共享定位信息的方法中的第一终端,并且终端300中的各个模块的上述和其它操作或功能分别为了实现图3至图7中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that the terminal 300 according to the embodiment of the present invention may correspond to the first terminal in the method for sharing positioning information in the embodiment of the present invention, and the foregoing operations and other operations or functions of the respective modules in the terminal 300 are respectively implemented to implement FIG. 3 to The corresponding processes of the respective methods in FIG. 7 are not described herein again for the sake of brevity.
因此,本发明实施例的终端300,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他 人定位的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the terminal 300 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the terminal that is being located, and can be implemented by the terminal. When the person is positioned, the privacy of the located terminal is effectively protected, the security level of the shared positioning information can be improved, and the user experience satisfaction can be improved.
上文中结合图8,详细描述了根据本发明实施例的终端300,下面将结合图9,详细描述根据本发明实施例的另一种终端400。The terminal 300 according to an embodiment of the present invention is described in detail above with reference to FIG. 8, and another terminal 400 according to an embodiment of the present invention will be described in detail below with reference to FIG.
图9示出了根据本发明实施例的终端400的示意性框图,如图9所示,该终端400包括:FIG. 9 shows a schematic block diagram of a terminal 400 according to an embodiment of the present invention. As shown in FIG. 9, the terminal 400 includes:
接收模块410,用于接收第一终端发送的定位请求消息,该定位请求消息包括第一终端对该目标终端进行定位的定位时间请求信息或定位位置请求信息;The receiving module 410 is configured to receive a positioning request message sent by the first terminal, where the positioning request message includes positioning time request information or positioning location request information for the first terminal to locate the target terminal;
确定模块420,用于根据该接收模块接收的该定位请求消息,确定该目标终端允许该第一终端对其进行定位的定位授权条件,该定位授权条件包括根据该定位时间请求信息确定的定位时间信息,或根据该定位位置信息确定的定位位置信息;The determining module 420 is configured to determine, according to the positioning request message received by the receiving module, a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal, where the positioning authorization condition includes a positioning time determined according to the positioning time request information. Information, or location location information determined based on the location location information;
发送模块430,用于根据该确定模块确定的该定位授权条件,向该第一终端发送该目标终端的定位信息;The sending module 430 is configured to send, according to the positioning authorization condition determined by the determining module, location information of the target terminal to the first terminal;
该接收模块410还用于,接收该第一终端发送的共享目标终端的定位信息,该共享目标终端为同意共享定位信息的目标终端。The receiving module 410 is further configured to receive the positioning information of the shared target terminal sent by the first terminal, where the shared target terminal is a target terminal that agrees to share the positioning information.
因此,本发明实施例的终端400,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the terminal 400 of the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
在本发明实施例中,可选地,该终端还包括:In the embodiment of the present invention, optionally, the terminal further includes:
该接收模块还用于,接收该第一终端发送的用于请求共享定位信息的第一请求消息;The receiving module is further configured to receive, by the first terminal, a first request message for requesting sharing of positioning information;
该发送模块还用于,当确定同意共享定位信息时,向该第一终端发送用于指示同意共享位置信息的第一响应消息。The sending module is further configured to: when determining to agree to share the positioning information, send, to the first terminal, a first response message for instructing to agree to share the location information.
在本发明实施例中,可选地,该接收模块还用于,接收该第一终端发送的用于请求加入定位群组的第二请求消息;In the embodiment of the present invention, the receiving module is further configured to receive, by the first terminal, a second request message for requesting to join the positioning group.
该发送模块还用于,向该第一终端发送用于指示同意加入该定位群组的第二响应消息;The sending module is further configured to send, to the first terminal, a second response message for instructing to join the positioning group;
该接收模块具体用于,在该定位群组内接收该共享目标终端的定位信 息。The receiving module is specifically configured to receive, in the positioning group, a location letter of the shared target terminal. interest.
在本发明实施例中,可选地,该接收模块接收的该共享目标终端的定位信息中不包括该目标终端的定位信息。In the embodiment of the present invention, optionally, the positioning information of the target terminal that is received by the receiving module does not include the positioning information of the target terminal.
在本发明实施例中,可选地,该接收模块接收的该定位请求消息还包括该第一终端的标识信息;In the embodiment of the present invention, optionally, the location request message received by the receiving module further includes identifier information of the first terminal;
该确定模块具体用于,当确定本地预设标识信息包括该定位请求消息包括的该标识信息时,将该定位请求消息中的定位时间请求信息或定位位置请求信息确定为该定位授权条件。The determining module is specifically configured to: when determining that the local preset identifier information includes the identifier information included in the location request message, determining the location time request information or the location location request information in the location request message as the location authorization condition.
在本发明实施例中,可选地,该确定模块包括:In the embodiment of the present invention, optionally, the determining module includes:
第一发送单元,用于向用户呈现用于指示该定位请求消息的请求信息;a first sending unit, configured to present, to the user, request information for indicating the positioning request message;
第一接收单元,用于接收用户指令,该用户指令用于指示经用户根据该定位请求消息确定的定位授权条件;a first receiving unit, configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition determined by the user according to the positioning request message;
第一确定单元,用于根据该第一接收单元接收的该用户指令,确定该目标终端允许该第一终端对其进行定位的定位授权条件。The first determining unit is configured to determine, according to the user instruction received by the first receiving unit, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
在本发明实施例中,可选地,该确定模块还包括:In the embodiment of the present invention, optionally, the determining module further includes:
第二发送单元用于,向用户呈现用于指示该定位授权条件的请求信息;The second sending unit is configured to present, to the user, request information for indicating the positioning authorization condition;
第二接收单元用于,接收用户指令,该用户指令用于指示经用户授权的定位授权条件;The second receiving unit is configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition authorized by the user;
第二确定单元用于,根据该第二接收单元接收的该用户指令,将经该用户授权的定位授权条件确定为该目标终端允许该第一终端对其进行定位的定位授权条件;The second determining unit is configured to determine, according to the user instruction received by the second receiving unit, a positioning authorization condition authorized by the user, as a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
该发送模块还用于,向该第一终端发送定位响应消息,该定位响应消息包括该第二确定单元确定的经用户授权的定位授权条件。The sending module is further configured to send a location response message to the first terminal, where the location response message includes a location authorization condition authorized by the second determining unit.
在本发明实施例中,可选地,该发送模块还用于,向该第一终端发送定位响应消息,该定位响应消息包括该确定模块确定的该定位授权条件。In the embodiment of the present invention, the sending module is further configured to send a location response message to the first terminal, where the location response message includes the location authorization condition determined by the determining module.
在本发明实施例中,可选地,该发送模块包括:In the embodiment of the present invention, optionally, the sending module includes:
第三确定单元,用于确定该目标终端的地图标识位置信息,该地图标识位置信息为该目标终端的地理位置信息与地图信息匹配后的位置信息;a third determining unit, configured to determine map identification location information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information;
第三发送单元,用于根据该确定模块确定的该定位授权条件,向该第一终端发送该地图标识位置信息,以便于该第一终端对该目标终端进行定位。The third sending unit is configured to send the map identification location information to the first terminal according to the positioning authorization condition determined by the determining module, so that the first terminal locates the target terminal.
在本发明实施例中,可选地,该第三确定单元包括: In the embodiment of the present invention, optionally, the third determining unit includes:
发送子单元,用于向服务器发送包括该目标终端的地理位置信息的请求消息,该请求消息用于请求服务器发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息;a sending subunit, configured to send, to the server, a request message that includes geographic location information of the target terminal, where the request message is used to request the server to send map identification location information that matches the geographic location information with the server map information;
接收子单元,用于接收该服务器发送的响应消息,该响应消息包括该地图标识位置信息;a receiving subunit, configured to receive a response message sent by the server, where the response message includes the map identification location information;
确定子单元,用于根据该接收子单元接收的该响应消息,确定该目标终端的地图标识位置信息。Determining a subunit, configured to determine map identification location information of the target terminal according to the response message received by the receiving subunit.
在本发明实施例中,可选地,该第三确定单元具体用于,根据本地地图信息匹配该目标终端的地理位置信息,确定该目标终端的该地图标识位置信息。In the embodiment of the present invention, the third determining unit is configured to: determine, according to the local map information, the geographic location information of the target terminal, and determine the map identification location information of the target terminal.
在本发明实施例中,可选地,该发送模块包括:In the embodiment of the present invention, optionally, the sending module includes:
第三接收单元,用于接收服务器发送的包括该目标终端的标识信息的请求消息;a third receiving unit, configured to receive a request message that is sent by the server and includes the identifier information of the target terminal;
第四发送单元,用于向该服务器发送包括该目标终端的地理位置信息的响应消息,以便于该服务器向该第一终端发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息,以便于该第一终端对该目标终端进行定位。a fourth sending unit, configured to send, to the server, a response message including the geographic location information of the target terminal, so that the server sends, to the first terminal, map identification location information that matches the geographic location information and the server map information, So that the first terminal locates the target terminal.
应理解,根据本发明实施例的终端400可对应于本发明实施例的共享定位信息的方法100中的至少两个目标终端中的任意目标终端,且共享定位信息的方法200中的目标终端,并且终端400中的各个模块的上述和其它操作或功能分别为了实现图3至图7中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that the terminal 400 according to the embodiment of the present invention may correspond to any target terminal in at least two target terminals in the method 100 for sharing positioning information according to the embodiment of the present invention, and the target terminal in the method 200 of sharing positioning information, The foregoing and other operations or functions of the modules in the terminal 400 are respectively implemented in order to implement the corresponding processes of the respective methods in FIG. 3 to FIG. 7. For brevity, no further details are provided herein.
因此,本发明实施例的终端400,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the terminal 400 of the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
如图10所示,本发明实施例还提供了一种终端500,该终端500包括处理器510、存储器520、总线系统530、接收器540和发送器550。其中,处理器510、存储器520、接收器540和发送器550通过总线系统530相连,该存储器520用于存储指令,该处理器510用于执行该存储器520存储的指令,以控制接收器540接收信号,并控制发送器550发送信号。其中,该处 理器510用于:用于获取至少两个目标终端的定位信息;以及用于确定该至少两个目标终端中的共享目标终端,该共享目标终端为同意共享定位信息的目标终端;发送器550,用于向该至少两个目标终端中的第一目标终端发送该确定模块确定的该共享目标终端的定位信息。As shown in FIG. 10, an embodiment of the present invention further provides a terminal 500, which includes a processor 510, a memory 520, a bus system 530, a receiver 540, and a transmitter 550. The processor 510, the memory 520, the receiver 540 and the transmitter 550 are connected by a bus system 530 for storing instructions for executing instructions stored in the memory 520 to control the receiver 540 to receive. Signal and control transmitter 550 to send a signal. Among them, the place The processor 510 is configured to: acquire positioning information of at least two target terminals; and determine a shared target terminal in the at least two target terminals, where the shared target terminal is a target terminal that agrees to share positioning information; and the transmitter 550 And sending, to the first target terminal of the at least two target terminals, positioning information of the shared target terminal determined by the determining module.
因此,本发明实施例的终端500,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the terminal 500 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the terminal that is being located, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
应理解,在本发明实施例中,该处理器510可以是中央处理单元(Central Processing Unit,简称为“CPU”),该处理器510还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 510 may be a central processing unit ("CPU"), and the processor 510 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器520可以包括只读存储器和随机存取存储器,并向处理器510提供指令和数据。存储器520的一部分还可以包括非易失性随机存取存储器。例如,存储器520还可以存储设备类型的信息。The memory 520 can include read only memory and random access memory and provides instructions and data to the processor 510. A portion of the memory 520 may also include a non-volatile random access memory. For example, the memory 520 can also store information of the device type.
该总线系统530除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统530。The bus system 530 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 530 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器510中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器520,处理器510读取存储器520中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 510 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 520, and the processor 510 reads the information in the memory 520 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
可选地,作为一个实施例,该发送器550用于向该至少两个目标终端发送定位请求消息,该定位请求消息包括第一终端对该至少两个目标终端进行定位的定位时间请求信息或定位位置请求信息;该接收器540用于接收该至少两个目标终端发送的定位响应消息,该定位响应消息用于指示该至少两个目标终端根据该发送器550发送的该定位请求消息确定的定位时间响应信息 或定位位置响应信息;该处理器510用于根据该接收器540接收的该定位响应消息,确定该至少两个目标终端的定位授权条件,该定位授权条件包括经该定位时间请求信息和该定位时间响应信息共同确定的定位时间信息,或经该定位位置请求信息和该定位位置响应信息共同确定的定位位置信息;以及用于根据该定位授权条件,获取该至少两个目标终端的定位信息。Optionally, as an embodiment, the transmitter 550 is configured to send a positioning request message to the at least two target terminals, where the positioning request message includes positioning time request information that the first terminal locates the at least two target terminals or Positioning the location request information; the receiver 540 is configured to receive the location response message sent by the at least two target terminals, where the location response message is used to indicate that the at least two target terminals are determined according to the location request message sent by the transmitter 550. Positioning time response information Or positioning the location response information; the processor 510 is configured to determine, according to the positioning response message received by the receiver 540, a positioning authorization condition of the at least two target terminals, where the positioning authorization condition includes the positioning time request information and the positioning The positioning time information jointly determined by the time response information, or the positioning location information determined by the positioning location request information and the positioning location response information, and the positioning information of the at least two target terminals according to the positioning authorization condition.
可选地,作为一个实施例,该发送器550用于向该至少两个目标终端发送用于请求共享位置信息的第一请求消息;该接收器540,用于接收该至少两个目标终端中的第二目标终端发送的第一响应消息;该处理器510,用于根据该第一响应消息,将该第二目标终端中同意共享位置信息的目标终端确定为该共享目标终端。Optionally, as an embodiment, the transmitter 550 is configured to send, to the at least two target terminals, a first request message for requesting shared location information, where the receiver 540 is configured to receive the at least two target terminals. The first response message sent by the second target terminal; the processor 510 is configured to determine, according to the first response message, the target terminal that agrees to share the location information in the second target terminal as the shared target terminal.
可选地,作为一个实施例,该发送器540具体用于,分别向该至少两个目标终端中的每个目标终端发送该共享目标终端的定位信息。Optionally, as an embodiment, the transmitter 540 is specifically configured to separately send positioning information of the shared target terminal to each of the at least two target terminals.
可选地,作为一个实施例,该发送器540具体用于,向该第一目标终端发送该共享目标终端的定位信息,该第一目标终端为该至少两个目标终端中除该共享目标终端之外的目标终端。Optionally, as an embodiment, the transmitter 540 is configured to send, to the first target terminal, location information of the shared target terminal, where the first target terminal is the shared target terminal of the at least two target terminals. Target terminal outside.
可选地,作为一个实施例,该发送器550还用于,向该至少两个目标终端发送用于请求加入定位群组的第二请求消息;Optionally, in an embodiment, the transmitter 550 is further configured to send, to the at least two target terminals, a second request message for requesting to join the positioning group.
该接收器540,用于接收该至少两个目标终端发送的用于指示同意加入该定位群组的第二响应消息;The receiver 540 is configured to receive a second response message that is sent by the at least two target terminals to indicate that the user is authorized to join the positioning group.
该发送器550具体用于,向该定位群组发送该共享目标终端的定位信息,以便于该至少两个目标终端获取该共享目标终端的定位信息。The transmitter 550 is specifically configured to send the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
可选地,作为一个实施例,该发送器550具体用于,当确认用户指令或本地策略所指示的共享条件满足时,向该至少两个目标终端中的第一目标终端发送共享目标终端的定位信息,该共享条件包括共享时间信息和/或共享位置信息。Optionally, as an embodiment, the transmitter 550 is specifically configured to: when it is confirmed that the sharing condition indicated by the user instruction or the local policy is met, send the shared target terminal to the first target terminal of the at least two target terminals. Positioning information including sharing time information and/or sharing location information.
可选地,作为一个实施例,该发送器550还用于,向该至少两个目标终端发送该第一终端的定位信息,该定位信息为地理位置信息或者地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息。Optionally, as an embodiment, the transmitter 550 is further configured to send, to the at least two target terminals, location information of the first terminal, where the location information is geographic location information or map identification location information, where the map identifier location The information is location information after the geographical location information matches the map information.
可选地,作为一个实施例,该处理器510具体用于,接收该至少两个目标终端根据该定位授权条件发送的地理位置信息。 Optionally, as an embodiment, the processor 510 is specifically configured to receive geographic location information that is sent by the at least two target terminals according to the positioning authorization condition.
可选地,作为一个实施例,该发送器550还用于,向服务器发送包括该获取单元获取的该地理位置信息的第三请求消息,该请求消息用于请求与该地理位置信息对应的地图标识位置信息,该地图标识位置信息为该地理位置信息与地图信息匹配后的位置信息;Optionally, as an embodiment, the transmitter 550 is further configured to send, to the server, a third request message that includes the geographic location information acquired by the acquiring unit, where the request message is used to request a map corresponding to the geographic location information. Identifying location information, where the location identifier information is location information after the geographic location information matches the map information;
该接收器540还用于,接收该服务器发送的第三响应消息,该响应消息包括该地图标识位置信息;The receiver 540 is further configured to receive a third response message sent by the server, where the response message includes the map identification location information;
该处理器510还用于,根据该第三响应消息,确定该至少两个目标终端的地图标识位置信息。The processor 510 is further configured to determine, according to the third response message, map identification location information of the at least two target terminals.
可选地,作为一个实施例,该处理器510还用于,根据本地地图信息匹配该地理位置信息,确定该至少两个目标终端的地图标识位置信息。Optionally, in an embodiment, the processor 510 is further configured to: determine the map identification location information of the at least two target terminals by matching the geographic location information according to the local map information.
可选地,作为一个实施例,该处理器510具体用于,接收该至少两个目标终端根据该定位授权条件发送的该至少两个目标终端的地图标识位置信息,该地图标识位置信息为该至少两个目标终端的地理位置信息与地图信息匹配后的位置信息。Optionally, as an embodiment, the processor 510 is configured to receive, by the at least two target terminals, map identification location information of the at least two target terminals, where the map identification location information is Location information of at least two target terminals that match the map information.
可选地,作为一个实施例,该发送器550用于,向服务器发送包括该至少两个目标终端的标识信息的第四请求消息,该请求消息用于请求该至少两个目标终端的地图标识位置信息;Optionally, as an embodiment, the transmitter 550 is configured to send, to the server, a fourth request message that includes the identifier information of the at least two target terminals, where the request message is used to request the map identifier of the at least two target terminals. location information;
接收器540用于,接收该服务器发送的第四响应消息,该第四响应消息包括将该至少两个目标终端的地理位置信息与服务器地图信息进行匹配后的该地图标识位置信息;The receiver 540 is configured to receive a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographic location information of the at least two target terminals is matched with the server map information.
处理器510用于,根据该第四响应消息,获取该至少两个目标终端的地图标识位置信息。The processor 510 is configured to acquire map identification location information of the at least two target terminals according to the fourth response message.
应理解,根据本发明实施例的终端500可对应于本发明实施例的共享定位信息的方法的第一终端,也可以对应于根据本发明实施例的终端300,并且终端500中的各个模块的上述和其它操作或功能分别为了实现图3至图7中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that the terminal 500 according to the embodiment of the present invention may correspond to the first terminal of the method for sharing positioning information according to the embodiment of the present invention, and may also correspond to the terminal 300 according to the embodiment of the present invention, and each module in the terminal 500 The above and other operations or functions are respectively implemented in order to implement the corresponding processes of the respective methods in FIG. 3 to FIG. 7. For brevity, no further details are provided herein.
因此,本发明实施例的终端500,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the terminal 500 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the terminal that is being located, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
如图11所示,本发明实施例还提供了一种终端600,该终端600包括处 理器610、存储器620、总线系统630、接收器640和发送器650。其中,处理器610、存储器620、接收器640和发送器650通过总线系统630相连,该存储器620用于存储指令,该处理器610用于执行该存储器620存储的指令,以控制接收器640接收信号,并控制发送器650发送信号。其中,接收器640,用于接收第一终端发送的定位请求消息,该定位请求消息包括第一终端对该目标终端进行定位的定位时间请求信息或定位位置请求信息;该处理器610,用于根据该定位请求消息,确定该目标终端允许该第一终端对其进行定位的定位授权条件,该定位授权条件包括根据该定位时间请求信息确定的定位时间信息,或根据该定位位置信息确定的定位位置信息;发送器650,用于根据该确定模块确定的该定位授权条件,向该第一终端发送该目标终端的定位信息;接收器640还用于,接收该第一终端发送的共享目标终端的定位信息,该共享目标终端为同意共享定位信息的目标终端。。As shown in FIG. 11, an embodiment of the present invention further provides a terminal 600, where the terminal 600 includes The processor 610, the memory 620, the bus system 630, the receiver 640, and the transmitter 650. The processor 610, the memory 620, the receiver 640, and the transmitter 650 are connected by a bus system 630. The memory 620 is configured to store instructions for executing the instructions stored in the memory 620 to control the receiver 640 to receive. Signal and control transmitter 650 to send a signal. The receiver 640 is configured to receive a positioning request message sent by the first terminal, where the positioning request message includes positioning time request information or positioning location request information for the first terminal to locate the target terminal, where the processor 610 is configured to: Determining, according to the positioning request message, a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal, where the positioning authorization condition includes positioning time information determined according to the positioning time request information, or positioning determined according to the positioning location information. a location information; a transmitter 650, configured to send the location information of the target terminal to the first terminal according to the location authorization condition determined by the determining module; the receiver 640 is further configured to receive the shared target terminal sent by the first terminal Positioning information, the shared target terminal is a target terminal that agrees to share the positioning information. .
因此,本发明实施例的终端600,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the terminal 600 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
应理解,在本发明实施例中,该处理器610可以是中央处理单元(Central Processing Unit,简称为“CPU”),该处理器610还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 610 may be a central processing unit ("CPU"), and the processor 610 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器620可以包括只读存储器和随机存取存储器,并向处理器610提供指令和数据。存储器620的一部分还可以包括非易失性随机存取存储器。例如,存储器620还可以存储设备类型的信息。The memory 620 can include read only memory and random access memory and provides instructions and data to the processor 610. A portion of the memory 620 can also include a non-volatile random access memory. For example, the memory 620 can also store information of the device type.
该总线系统630除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统630。The bus system 630 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 630 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器610中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只 读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器620,处理器610读取存储器620中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 610 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. Software modules can be located in random access memory, flash memory, read-only memory, programmable only Read memory or electrically erasable programmable memory, registers, etc. are well-known storage media in the field. The storage medium is located in the memory 620, and the processor 610 reads the information in the memory 620 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
可选地,作为一个实施例,该接收器640还用于,接收该第一终端发送的用于请求共享定位信息的第一请求消息;该发送器650还用于,当确定同意共享定位信息时,向该第一终端发送用于指示同意共享位置信息的第一响应消息。Optionally, the receiver 640 is further configured to receive, by the first terminal, a first request message that is used by the first terminal to request the shared location information. The transmitter 650 is further configured to: when determining to agree to share the location information. And transmitting, to the first terminal, a first response message for instructing to agree to share the location information.
可选地,作为一个实施例,该接收器640还用于:接收该第一终端发送的用于请求加入定位群组的第二请求消息;该发送器650还用于向该第一终端发送用于指示同意加入该定位群组的第二响应消息;该接收器640具体用于,在该定位群组内接收该共享目标终端的定位信息。Optionally, the receiver 640 is further configured to: receive, by the first terminal, a second request message that is sent by the first terminal to request to join the positioning group. The transmitter 650 is further configured to send the first request to the first terminal. And a second response message for instructing to join the positioning group; the receiver 640 is specifically configured to receive the positioning information of the shared target terminal in the positioning group.
可选地,作为一个实施例,该接收器640接收的该定位请求消息还包括该第一终端的标识信息;该处理器610还用于当确定本地预设标识信息包括该定位请求消息包括的该标识信息时,将该定位请求消息中的定位时间请求信息或定位位置请求信息确定为该定位授权条件。Optionally, as an embodiment, the location request message received by the receiver 640 further includes the identifier information of the first terminal, where the processor 610 is further configured to: when determining that the local preset identifier information includes the location request message When the information is identified, the positioning time request information or the positioning location request information in the positioning request message is determined as the positioning authorization condition.
可选地,作为一个实施例,该发送器650用于向用户呈现用于指示该定位请求消息的请求信息;该接收器640,用于接收用户指令,该用户指令用于指示经用户根据该定位请求消息确定的定位授权条件;该处理器610,用于根据该用户指令,确定该目标终端允许该第一终端对其进行定位的定位授权条件。Optionally, as an embodiment, the transmitter 650 is configured to present, to the user, request information for indicating the location request message, and the receiver 640 is configured to receive a user instruction, where the user instruction is used to indicate, according to the user The positioning authorization condition determined by the positioning request message; the processor 610 is configured to determine, according to the user instruction, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
可选地,作为一个实施例,该发送器650还用于,向用户呈现用于指示该定位授权条件的请求信息;该接收器640还用于,接收用户指令,该用户指令用于指示经用户授权的定位授权条件;该处理器610还用于,根据该用户指令,将经该用户授权的定位授权条件确定为该目标终端允许该第一终端对其进行定位的定位授权条件;该发送器650还用于,向该第一终端发送定位响应消息,该定位响应消息包括经用户授权的定位授权条件。Optionally, as an embodiment, the transmitter 650 is further configured to: present, to the user, request information for indicating the location authorization condition; the receiver 640 is further configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition authorized by the user; the processor 610 is further configured to determine, according to the user instruction, a positioning authorization condition authorized by the user as a positioning authorization condition that the target terminal allows the first terminal to locate the positioning terminal; The device 650 is further configured to send a location response message to the first terminal, where the location response message includes a location authorization condition authorized by the user.
可选地,作为一个实施例,该发送器650还用于,向该第一终端发送定位响应消息,该定位响应消息包括该确定模块确定的该定位授权条件。Optionally, in an embodiment, the transmitter 650 is further configured to send a location response message to the first terminal, where the location response message includes the location authorization condition determined by the determining module.
可选地,作为一个实施例,该处理器610用于确定该目标终端的地图标识位置信息,该地图标识位置信息为该目标终端的地理位置信息与地图信息匹配后的位置信息;该发送器650还用于,根据该确定模块确定的该定位授 权条件,向该第一终端发送该地图标识位置信息,以便于该第一终端对该目标终端进行定位。Optionally, as an embodiment, the processor 610 is configured to determine map identification location information of the target terminal, where the location identifier information is location information after the geographic location information of the target terminal matches the map information; the transmitter 650 is further configured to: determine the location according to the determining module The right condition sends the map identification location information to the first terminal, so that the first terminal locates the target terminal.
可选地,作为一个实施例,该发送器650用于向服务器发送包括该目标终端的地理位置信息的请求消息,该请求消息用于请求服务器发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息;该接收器640,用于接收该服务器发送的响应消息,该响应消息包括该地图标识位置信息;该处理器610,用于根据该响应消息,确定该目标终端的地图标识位置信息。Optionally, as an embodiment, the transmitter 650 is configured to send, to the server, a request message that includes geographic location information of the target terminal, where the request message is used to request the server to send the geographic location information and the server map information. The map identifies location information; the receiver 640 is configured to receive a response message sent by the server, where the response message includes the map identifier location information, and the processor 610 is configured to determine, according to the response message, a map identifier location of the target terminal. information.
可选地,作为一个实施例,该处理器610还用于根据本地地图信息匹配该目标终端的地理位置信息,确定该目标终端的该地图标识位置信息。Optionally, as an embodiment, the processor 610 is further configured to determine, according to the local map information, the geographic location information of the target terminal, and determine the map identification location information of the target terminal.
可选地,作为一个实施例,该接收器640还用于接收服务器发送的包括该目标终端的标识信息的请求消息;该发送器650,用于向该服务器发送包括该目标终端的地理位置信息的响应消息,以便于该服务器向该第一终端发送将该地理位置信息与服务器地图信息匹配后的地图标识位置信息,以便于该第一终端对该目标终端进行定位,。Optionally, the receiver 640 is further configured to receive, by the server, a request message that includes the identifier information of the target terminal, where the transmitter 650 is configured to send, to the server, location information including the target terminal. The response message is sent to the server to send the map identification location information that matches the geographic location information to the server map information, so that the first terminal locates the target terminal.
应理解,根据本发明实施例的终端600可对应于本发明实施例的共享定位信息的方法100中的至少两个目标终端中的任意目标终端,可对应于本发明实施例的共享定位信息的方法200中的目标终端,以及可以对应于根据本发明实施例的终端400,并且终端600中的各个模块的上述和其它操作或功能分别为了实现图3至图7中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that the terminal 600 according to the embodiment of the present invention may correspond to any target terminal in the at least two target terminals in the method 100 for sharing positioning information according to the embodiment of the present invention, and may correspond to the shared positioning information according to the embodiment of the present invention. The target terminal in method 200, and may correspond to terminal 400 in accordance with an embodiment of the present invention, and the above-described and other operations or functions of the various modules in terminal 600 are respectively implemented to implement respective processes of the various methods in FIGS. 3-7. For the sake of brevity, it will not be repeated here.
因此,本发明实施例的终端600,根据经发起定位的终端和被定位终端共同确定的定位授权条件向发起定位的终端发送定位信息,能够在实现被他人定位的同时有效保护被定位终端的隐私,能够提高共享定位信息的安全级别,能够提高用户体验满意度。Therefore, the terminal 600 in the embodiment of the present invention sends the positioning information to the terminal that initiates the positioning according to the positioning authorization condition jointly determined by the terminal that is initiating the positioning and the locationd terminal, and can effectively protect the privacy of the positioned terminal while being positioned by others. It can improve the security level of shared location information and improve user experience satisfaction.
另外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。Additionally, the terms "system" and "network" are used interchangeably herein. The term "or" in this document is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A or B, which may indicate that A exists separately, A and B exist simultaneously, and B exists separately. Happening. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,本文中术语“或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A或B,可以表示:单独存在A,同时存在A 和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "or" in this document is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A or B, which may indicate that A exists separately, and A exists at the same time. And B, there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质 中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (50)

  1. 一种共享定位信息的方法,其特征在于,包括:A method for sharing positioning information, comprising:
    第一终端获取至少两个目标终端的定位信息;The first terminal acquires positioning information of at least two target terminals;
    所述第一终端确定所述至少两个目标终端中的共享目标终端,所述共享目标终端为同意共享自己定位信息的目标终端;Determining, by the first terminal, a shared target terminal of the at least two target terminals, where the shared target terminal is a target terminal that agrees to share its own positioning information;
    所述第一终端向所述至少两个目标终端中的第一目标终端发送所述共享目标终端的定位信息。The first terminal sends the positioning information of the shared target terminal to the first target terminal of the at least two target terminals.
  2. 根据权利要求1所述的方法,其特征在于,所述第一终端获取至少两个目标终端的定位信息,包括:The method according to claim 1, wherein the acquiring, by the first terminal, the location information of the at least two target terminals comprises:
    所述第一终端向所述至少两个目标终端发送定位请求消息,所述定位请求消息包括第一终端对所述至少两个目标终端进行定位的定位时间请求信息或定位位置请求信息;The first terminal sends a location request message to the at least two target terminals, where the location request message includes positioning time request information or location location request information that the first terminal locates the at least two target terminals;
    所述第一终端接收所述至少两个目标终端发送的定位响应消息,所述定位响应消息用于指示所述至少两个目标终端根据所述定位请求消息确定的定位时间响应信息或定位位置响应信息;The first terminal receives a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate positioning time response information or a positioning location response determined by the at least two target terminals according to the positioning request message. information;
    所述第一终端根据所述定位响应消息,确定所述至少两个目标终端的定位授权条件,所述定位授权条件包括经所述定位时间请求信息和所述定位时间响应信息共同确定的定位时间信息,或经所述定位位置请求信息和所述定位位置响应信息共同确定的定位位置信息;Determining, by the first terminal, a positioning authorization condition of the at least two target terminals according to the positioning response message, where the positioning authorization condition includes a positioning time determined by the positioning time request information and the positioning time response information Information, or positioning location information determined by the positioning location request information and the positioning location response information;
    所述第一终端根据所述定位授权条件,获取所述至少两个目标终端的定位信息。The first terminal acquires positioning information of the at least two target terminals according to the positioning authorization condition.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一终端确定所述至少两个目标终端中的共享目标终端,包括:The method according to claim 1 or 2, wherein the determining, by the first terminal, the shared target terminal of the at least two target terminals comprises:
    所述第一终端向所述至少两个目标终端发送用于请求共享位置信息的第一请求消息;Transmitting, by the first terminal, a first request message for requesting sharing location information to the at least two target terminals;
    所述第一终端接收所述至少两个目标终端中的第二目标终端发送的第一响应消息;Receiving, by the first terminal, a first response message sent by a second target terminal of the at least two target terminals;
    所述第一终端根据所述第一响应消息,将所述第二目标终端中同意共享位置信息的目标终端确定为所述共享目标终端。The first terminal determines, according to the first response message, a target terminal that agrees to share location information in the second target terminal as the shared target terminal.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述第一终端向所述至少两个目标终端中的第一目标终端发送所述共享目标终端的 定位信息,包括:The method according to any one of claims 1 to 3, wherein the first terminal transmits the shared target terminal to a first target terminal of the at least two target terminals Location information, including:
    所述第一终端分别向所述至少两个目标终端中的每个目标终端发送所述共享目标终端的定位信息。The first terminal separately sends the positioning information of the shared target terminal to each of the at least two target terminals.
  5. 根据权利要求1至3所述的方法,其特征在于,所述第一终端向所述至少两个目标终端中的第一目标终端发送所述共享目标终端的定位信息,包括:The method according to any one of claims 1 to 3, wherein the transmitting, by the first terminal, the positioning information of the shared target terminal to the first target terminal of the at least two target terminals comprises:
    所述第一终端向所述第一目标终端发送所述共享目标终端的定位信息,所述第一目标终端为所述至少两个目标终端中除所述共享目标终端之外的目标终端。The first terminal sends the positioning information of the shared target terminal to the first target terminal, where the first target terminal is a target terminal other than the shared target terminal among the at least two target terminals.
  6. 根据权利要求1至3所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    所述第一终端向所述至少两个目标终端发送用于请求加入定位群组的第二请求消息;Transmitting, by the first terminal, a second request message for requesting to join the positioning group to the at least two target terminals;
    所述第一终端接收所述至少两个目标终端发送的用于指示同意加入所述定位群组的第二响应消息;Receiving, by the first terminal, a second response message that is sent by the at least two target terminals to indicate that the user is authorized to join the positioning group;
    其中,所述第一终端向所述至少两个目标终端中的第一目标终端发送所述共享目标终端的定位信息,包括:The first terminal sends the location information of the shared target terminal to the first target terminal of the at least two target terminals, including:
    所述第一终端向所述定位群组发送所述共享目标终端的定位信息,以便于所述至少两个目标终端获取所述共享目标终端的定位信息。The first terminal sends the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述第一终端向所述至少两个目标终端中的第一目标终端发送所述共享目标终端的定位信息,包括:The method according to any one of claims 1 to 6, wherein the first terminal sends the positioning information of the shared target terminal to the first target terminal of the at least two target terminals, including:
    所述第一终端当确认用户指令或本地策略所指示的共享条件满足时,向所述至少两个目标终端中的第一目标终端发送共享目标终端的定位信息,所述共享条件包括共享时间信息和/或共享位置信息。Sending, by the first terminal, positioning information of the shared target terminal to the first target terminal of the at least two target terminals, when the sharing condition that is indicated by the user command or the local policy is satisfied, where the sharing condition includes sharing time information And/or share location information.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    所述第一终端向所述至少两个目标终端发送所述第一终端的定位信息,所述定位信息为地理位置信息或者地图标识位置信息,所述地图标识位置信息为所述地理位置信息与地图信息匹配后的位置信息。The first terminal sends the location information of the first terminal to the at least two target terminals, where the location information is geographic location information or map identification location information, and the location identifier location information is the geographic location information and The location information after the map information is matched.
  9. 根据权利要求2至8中任一项所述的方法,其特征在于,所述第一终端根据所述定位授权条件,获取所述至少两个目标终端的定位信息,包括: The method according to any one of claims 2 to 8, wherein the acquiring, by the first terminal, the positioning information of the at least two target terminals according to the positioning authorization condition comprises:
    所述第一终端接收所述至少两个目标终端根据所述定位授权条件发送的地理位置信息。The first terminal receives geographical location information that is sent by the at least two target terminals according to the positioning authorization condition.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method of claim 9 wherein the method further comprises:
    所述第一终端向服务器发送包括所述地理位置信息的第三请求消息,所述请求消息用于请求与所述地理位置信息对应的地图标识位置信息,所述地图标识位置信息为所述地理位置信息与地图信息匹配后的位置信息;Transmitting, by the first terminal, a third request message that includes the geographic location information to the server, where the request message is used to request map identification location information corresponding to the geographic location information, where the map identification location information is the geographic location Location information after the location information matches the map information;
    所述第一终端接收所述服务器发送的第三响应消息,所述响应消息包括所述地图标识位置信息;Receiving, by the first terminal, a third response message sent by the server, where the response message includes the map identification location information;
    所述第一终端根据所述第三响应消息,确定所述至少两个目标终端的地图标识位置信息。Determining, by the first terminal, map identification location information of the at least two target terminals according to the third response message.
  11. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method of claim 9 wherein the method further comprises:
    所述第一终端根据本地地图信息匹配所述地理位置信息,确定所述至少两个目标终端的地图标识位置信息。The first terminal matches the geographical location information according to the local map information, and determines map identification location information of the at least two target terminals.
  12. 根据权利要求2至8中任一项所述的方法,其特征在于,所述第一终端根据所述定位授权条件,获取所述至少两个目标终端的定位信息,包括:The method according to any one of claims 2 to 8, wherein the acquiring, by the first terminal, the positioning information of the at least two target terminals according to the positioning authorization condition comprises:
    所述第一终端接收所述至少两个目标终端根据所述定位授权条件发送的所述至少两个目标终端的地图标识位置信息,所述地图标识位置信息为所述至少两个目标终端的地理位置信息与地图信息匹配后的位置信息。Receiving, by the first terminal, map identification location information of the at least two target terminals that are sent by the at least two target terminals according to the positioning authorization condition, where the map identification location information is a geography of the at least two target terminals Location information after the location information matches the map information.
  13. 根据权利要求2至8中任一项所述的方法,其特征在于,所述第一终端根据所述定位授权条件,获取所述至少两个目标终端的定位信息,包括:The method according to any one of claims 2 to 8, wherein the acquiring, by the first terminal, the positioning information of the at least two target terminals according to the positioning authorization condition comprises:
    所述第一终端向服务器发送包括所述至少两个目标终端的标识信息的第四请求消息,所述请求消息用于请求所述至少两个目标终端的地图标识位置信息;The first terminal sends a fourth request message including the identifier information of the at least two target terminals to the server, where the request message is used to request map identification location information of the at least two target terminals;
    所述第一终端接收所述服务器发送的第四响应消息,所述第四响应消息包括将所述至少两个目标终端的地理位置信息与服务器地图信息进行匹配后的所述地图标识位置信息;Receiving, by the first terminal, a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographical location information of the at least two target terminals is matched with the server map information;
    所述第一终端根据所述第四响应消息,获取所述至少两个目标终端的地图标识位置信息。The first terminal acquires map identification location information of the at least two target terminals according to the fourth response message.
  14. 一种共享定位信息的方法,其特征在于,包括:A method for sharing positioning information, comprising:
    目标终端接收第一终端发送的定位请求消息,所述定位请求消息包括第一终端对所述目标终端进行定位的定位时间请求信息或定位位置请求信息; The target terminal receives the location request message sent by the first terminal, where the location request message includes the location time request information or the location location request information that the first terminal locates the target terminal;
    所述目标终端根据所述定位请求消息,确定所述目标终端允许所述第一终端对其进行定位的定位授权条件,所述定位授权条件包括根据所述定位时间请求信息确定的定位时间信息,或根据所述定位位置信息确定的定位位置信息;Determining, by the target terminal, the positioning authorization condition that the target terminal allows the first terminal to locate, according to the positioning request message, where the positioning authorization condition includes positioning time information determined according to the positioning time request information, Or positioning position information determined according to the positioning position information;
    所述目标终端根据所述定位授权条件,向所述第一终端发送所述目标终端的定位信息;Sending, by the target terminal, positioning information of the target terminal to the first terminal according to the positioning authorization condition;
    所述目标终端接收所述第一终端发送的共享目标终端的定位信息,所述共享目标终端为同意共享定位信息的目标终端。The target terminal receives the positioning information of the shared target terminal sent by the first terminal, and the shared target terminal is a target terminal that agrees to share the positioning information.
  15. 根据权利要求14所述的方法,其特征在于,所述方法还包括:The method of claim 14, wherein the method further comprises:
    所述目标终端接收所述第一终端发送的用于请求共享定位信息的第一请求消息;Receiving, by the target terminal, a first request message that is sent by the first terminal to request sharing of positioning information;
    所述目标终端当确定同意共享定位信息时,向所述第一终端发送用于指示同意共享位置信息的第一响应消息。When the target terminal determines to agree to share the location information, the target terminal sends a first response message for indicating that the shared location information is agreed to be sent to the first terminal.
  16. 根据权利要求14或15所述的方法,其特征在于,所述方法还包括:The method according to claim 14 or 15, wherein the method further comprises:
    所述目标终端接收所述第一终端发送的用于请求加入定位群组的第二请求消息;Receiving, by the target terminal, a second request message sent by the first terminal for requesting to join a positioning group;
    所述目标终端向所述第一终端发送用于指示同意加入所述定位群组的第二响应消息;Sending, by the target terminal, a second response message for indicating to join the positioning group to the first terminal;
    所述目标终端接收所述第一终端发送的共享目标终端的定位信息,包括:Receiving, by the target terminal, location information of the shared target terminal that is sent by the first terminal, including:
    所述目标终端在所述定位群组内接收所述共享目标终端的定位信息。The target terminal receives positioning information of the shared target terminal in the positioning group.
  17. 根据权利要求14或15所述的方法,其特征在于,所述共享目标终端不包括所述目标终端。The method according to claim 14 or 15, wherein the shared target terminal does not include the target terminal.
  18. 根据权利要求14至17中任一项所述的方法,其特征在于,A method according to any one of claims 14 to 17, wherein
    所述目标终端接收的所述定位请求消息中还包括所述第一终端的标识信息;The location request message received by the target terminal further includes identifier information of the first terminal;
    所述目标终端根据所述定位请求消息,确定所述目标终端允许所述第一终端对其进行定位的定位授权条件,包括:Determining, by the target terminal, the location authorization condition that the target terminal allows the first terminal to locate, according to the location request message, including:
    所述目标终端当确定本地预设标识信息包括所述定位请求消息包括的所述标识信息时,将所述定位请求消息中的定位时间请求信息或定位位置请求信息确定为所述定位授权条件。 When the target terminal determines that the local preset identifier information includes the identifier information included in the location request message, the target location request information or the location location request information in the location request message is determined as the location authorization condition.
  19. 根据权利要求14至17所述的方法,其特征在于,所述目标终端根据所述定位请求消息,确定所述目标终端允许所述第一终端对其进行定位的定位授权条件,包括:The method according to any one of claims 14 to 17, wherein the target terminal determines, according to the location request message, a location authorization condition that the target terminal allows the first terminal to locate, including:
    向用户呈现用于指示所述定位请求消息的请求信息;Presenting to the user request information for indicating the positioning request message;
    接收用户指令,所述用户指令用于指示经用户根据所述定位请求消息确定的定位授权条件;Receiving a user instruction, where the user instruction is used to indicate a positioning authorization condition determined by the user according to the positioning request message;
    根据所述用户指令,确定所述目标终端允许所述第一终端对其进行定位的定位授权条件。Determining, according to the user instruction, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
  20. 根据权利要求18所述的方法,其特征在于,所述方法还包括:The method of claim 18, wherein the method further comprises:
    向用户呈现用于指示所述定位授权条件的请求信息;Presenting to the user request information indicating the positioning authorization condition;
    接收用户指令,所述用户指令用于指示经用户授权的定位授权条件;Receiving a user instruction, the user instruction is used to indicate a location authorization condition authorized by the user;
    根据所述用户指令,将经所述用户授权的定位授权条件确定为所述目标终端允许所述第一终端对其进行定位的定位授权条件;Determining, according to the user instruction, a positioning authorization condition authorized by the user as a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal;
    向所述第一终端发送定位响应消息,所述定位响应消息包括所述经用户授权的定位授权条件。Sending a location response message to the first terminal, where the location response message includes the location authorization condition authorized by the user.
  21. 根据权利要求18或19所述的方法,其特征在于,所述方法还包括:The method according to claim 18 or 19, wherein the method further comprises:
    向所述第一终端发送定位响应消息,所述定位响应消息包括所述定位授权条件。Sending a location response message to the first terminal, where the location response message includes the location authorization condition.
  22. 根据权利要求14至21中任一项所述的方法,其特征在于,所述目标终端根据所述定位授权条件,向所述第一终端发送所述目标终端的定位信息,包括:The method according to any one of claims 14 to 21, wherein the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition, including:
    所述目标终端确定所述目标终端的地图标识位置信息,所述地图标识位置信息为所述目标终端的地理位置信息与地图信息匹配后的位置信息;Determining, by the target terminal, location identifier information of the target terminal, where the map identification location information is location information after the geographic location information of the target terminal matches the map information;
    所述目标终端根据所述定位授权条件,向所述第一终端发送所述地图标识位置信息,以便于所述第一终端对所述目标终端进行定位。And the target terminal sends the map identifier location information to the first terminal according to the location authorization condition, so that the first terminal locates the target terminal.
  23. 根据权利要求22所述的方法,其特征在于,所述目标终端确定所述目标终端的地图标识位置信息,包括:The method according to claim 22, wherein the determining, by the target terminal, the map identification location information of the target terminal comprises:
    所述目标终端向服务器发送包括所述目标终端的地理位置信息的请求消息,所述请求消息用于请求服务器发送将所述地理位置信息与服务器地图信息匹配后的地图标识位置信息;The target terminal sends a request message including the geographic location information of the target terminal to the server, where the request message is used to request the server to send the map identification location information that matches the geographical location information with the server map information;
    所述目标终端接收所述服务器发送的响应消息,所述响应消息包括所述 地图标识位置信息;Receiving, by the target terminal, a response message sent by the server, where the response message includes the Map identification location information;
    所述目标终端根据所述响应消息,确定所述目标终端的地图标识位置信息。Determining, by the target terminal, map identification location information of the target terminal according to the response message.
  24. 根据权利要求22所述的方法,其特征在于,所述目标终端确定所述目标终端的地图标识位置信息,包括:所述目标终端根据本地地图信息匹配所述目标终端的地理位置信息,确定所述目标终端的所述地图标识位置信息。The method according to claim 22, wherein the determining, by the target terminal, the map identification location information of the target terminal comprises: the target terminal matching geographical location information of the target terminal according to local map information, determining the location The map identification location information of the target terminal.
  25. 根据权利要求14至21中任一项所述的方法,其特征在于,所述目标终端根据所述定位授权条件,向所述第一终端发送所述目标终端的定位信息,包括:The method according to any one of claims 14 to 21, wherein the target terminal sends the location information of the target terminal to the first terminal according to the location authorization condition, including:
    所述目标终端接收服务器发送的包括所述目标终端的标识信息的请求消息;Receiving, by the target terminal, a request message that includes identifier information of the target terminal that is sent by the server;
    所述目标终端向所述服务器发送包括所述目标终端的地理位置信息的响应消息,以便于所述服务器向所述第一终端发送将所述地理位置信息与服务器地图信息匹配后的地图标识位置信息,以便于所述第一终端对所述目标终端进行定位。Sending, by the target terminal, a response message including geographic location information of the target terminal to the server, so that the server sends, to the first terminal, a map identifier location that matches the geographic location information and server map information. Information, so that the first terminal locates the target terminal.
  26. 一种终端,其特征在于,包括:A terminal, comprising:
    获取模块,用于获取至少两个目标终端的定位信息;An obtaining module, configured to acquire positioning information of at least two target terminals;
    确定模块,用于确定所述至少两个目标终端中的共享目标终端,所述共享目标终端为同意共享定位信息的目标终端;a determining module, configured to determine a shared target terminal of the at least two target terminals, where the shared target terminal is a target terminal that agrees to share positioning information;
    发送模块,用于向所述至少两个目标终端中的第一目标终端发送所述确定模块确定的所述共享目标终端的定位信息。And a sending module, configured to send the positioning information of the shared target terminal determined by the determining module to the first target terminal of the at least two target terminals.
  27. 根据权利要求26所述的终端,其特征在于,所述获取模块包括:The terminal according to claim 26, wherein the obtaining module comprises:
    第一发送单元,用于向所述至少两个目标终端发送定位请求消息,所述定位请求消息包括第一终端对所述至少两个目标终端进行定位的定位时间请求信息或定位位置请求信息;a first sending unit, configured to send, to the at least two target terminals, a positioning request message, where the positioning request message includes positioning time request information or positioning location request information that the first terminal locates the at least two target terminals;
    第一接收单元,用于接收所述至少两个目标终端发送的定位响应消息,所述定位响应消息用于指示所述至少两个目标终端根据所述第一发送单元发送的所述定位请求消息确定的定位时间响应信息或定位位置响应信息;a first receiving unit, configured to receive a positioning response message sent by the at least two target terminals, where the positioning response message is used to indicate that the at least two target terminals are sent according to the positioning request message sent by the first sending unit Determined positioning time response information or positioning position response information;
    第一确定单元,用于根据所述第一接收单元接收的所述定位响应消息,确定所述至少两个目标终端的定位授权条件,所述定位授权条件包括经所述 定位时间请求信息和所述定位时间响应信息共同确定的定位时间信息,或经所述定位位置请求信息和所述定位位置响应信息共同确定的定位位置信息;a first determining unit, configured to determine, according to the positioning response message received by the first receiving unit, a positioning authorization condition of the at least two target terminals, where the positioning authorization condition includes The positioning time information jointly determined by the positioning time request information and the positioning time response information, or the positioning location information jointly determined by the positioning location request information and the positioning location response information;
    获取单元,用于根据所述第一确定单元确定的所述定位授权条件,获取所述至少两个目标终端的定位信息。An obtaining unit, configured to acquire positioning information of the at least two target terminals according to the positioning authorization condition determined by the first determining unit.
  28. 根据权利要求26或27所述的终端,其特征在于,所述确定模块包括:The terminal according to claim 26 or 27, wherein the determining module comprises:
    第二发送单元,用于向所述至少两个目标终端发送用于请求共享位置信息的第一请求消息;a second sending unit, configured to send, to the at least two target terminals, a first request message for requesting sharing location information;
    第二接收单元,用于接收所述至少两个目标终端中的第二目标终端发送的第一响应消息;a second receiving unit, configured to receive a first response message sent by the second target terminal of the at least two target terminals;
    第二确定单元,用于根据所述第二接收单元接收的所述第一响应消息,将所述第二目标终端中同意共享位置信息的目标终端确定为所述共享目标终端。a second determining unit, configured to determine, according to the first response message received by the second receiving unit, a target terminal that agrees to share location information in the second target terminal as the shared target terminal.
  29. 根据权利要求26至28中任一项所述的终端,其特征在于,所述发送模块具体用于,分别向所述至少两个目标终端中的每个目标终端发送所述共享目标终端的定位信息。The terminal according to any one of claims 26 to 28, wherein the sending module is specifically configured to separately send the positioning of the shared target terminal to each of the at least two target terminals information.
  30. 根据权利要求26至28所述的终端,其特征在于,所述发送模块具体用于,向所述第一目标终端发送所述共享目标终端的定位信息,所述第一目标终端为所述至少两个目标终端中除所述共享目标终端之外的目标终端。The terminal according to any one of claims 26 to 28, wherein the sending module is configured to send the positioning information of the shared target terminal to the first target terminal, where the first target terminal is the at least one A target terminal other than the shared target terminal among the two target terminals.
  31. 根据权利要求26至28所述的终端,其特征在于,所述终端还包括:The terminal according to any one of claims 26 to 28, wherein the terminal further comprises:
    所述发送模块还用于,向所述至少两个目标终端发送用于请求加入定位群组的第二请求消息;The sending module is further configured to send, to the at least two target terminals, a second request message for requesting to join the positioning group;
    所述终端还包括:The terminal further includes:
    接收模块,用于接收所述至少两个目标终端发送的用于指示同意加入所述定位群组的第二响应消息;a receiving module, configured to receive a second response message that is sent by the at least two target terminals to indicate that the user is authorized to join the positioning group;
    所述发送模块具体用于,向所述定位群组发送所述共享目标终端的定位信息,以便于所述至少两个目标终端获取所述共享目标终端的定位信息。The sending module is configured to send the positioning information of the shared target terminal to the positioning group, so that the at least two target terminals acquire the positioning information of the shared target terminal.
  32. 根据权利要求26至31中任一项所述的终端,其特征在于,所述发送模块具体用于,当确认用户指令或本地策略所指示的共享条件满足时,向所述至少两个目标终端中的第一目标终端发送共享目标终端的定位信息,所述共享条件包括共享时间信息和/或共享位置信息。 The terminal according to any one of claims 26 to 31, wherein the sending module is specifically configured to: when it is confirmed that the sharing condition indicated by the user instruction or the local policy is satisfied, to the at least two target terminals The first target terminal in the middle sends location information of the shared target terminal, and the sharing condition includes shared time information and/or shared location information.
  33. 根据权利要求26至32中任一项所述的终端,其特征在于,所述发送模块还用于,向所述至少两个目标终端发送所述第一终端的定位信息,所述定位信息为地理位置信息或者地图标识位置信息,所述地图标识位置信息为所述地理位置信息与地图信息匹配后的位置信息。The terminal according to any one of claims 26 to 32, wherein the sending module is further configured to send positioning information of the first terminal to the at least two target terminals, where the positioning information is The geographic location information or the map identification location information, the map identification location information is location information after the geographic location information and the map information are matched.
  34. 根据权利要求27至33中任一项所述的终端,其特征在于,所述获取单元具体用于,接收所述至少两个目标终端根据所述定位授权条件发送的地理位置信息。The terminal according to any one of claims 27 to 33, wherein the acquiring unit is specifically configured to receive geographical location information that is sent by the at least two target terminals according to the positioning authorization condition.
  35. 根据权利要求34所述的终端,其特征在于,The terminal according to claim 34, characterized in that
    所述第一发送单元还用于,向服务器发送包括所述获取单元获取的所述地理位置信息的第三请求消息,所述请求消息用于请求与所述地理位置信息对应的地图标识位置信息,所述地图标识位置信息为所述地理位置信息与地图信息匹配后的位置信息;The first sending unit is further configured to send, to the server, a third request message that includes the geographic location information acquired by the acquiring unit, where the request message is used to request map identification location information corresponding to the geographic location information. The map identification location information is location information after the geographic location information and the map information are matched;
    所述第一接收单元还用于,接收所述服务器发送的第三响应消息,所述响应消息包括所述地图标识位置信息;The first receiving unit is further configured to receive a third response message sent by the server, where the response message includes the map identification location information;
    所述第一确定单元还用于,根据所述第一接收单元接收的所述第三响应消息,确定所述至少两个目标终端的地图标识位置信息。The first determining unit is further configured to determine map identification location information of the at least two target terminals according to the third response message received by the first receiving unit.
  36. 根据权利要求34所述的终端,其特征在于,所述第一确定单元还用于,根据本地地图信息匹配所述获取单元获取的所述地理位置信息,确定所述至少两个目标终端的地图标识位置信息。The terminal according to claim 34, wherein the first determining unit is further configured to: determine, according to the local map information, the geographical location information acquired by the acquiring unit, determine a map of the at least two target terminals Identify location information.
  37. 根据权利要求27至33中任一项所述的终端,其特征在于,所述获取单元具体用于,接收所述至少两个目标终端根据所述定位授权条件发送的所述至少两个目标终端的地图标识位置信息,所述地图标识位置信息为所述至少两个目标终端的地理位置信息与地图信息匹配后的位置信息。The terminal according to any one of claims 27 to 33, wherein the acquiring unit is specifically configured to receive the at least two target terminals that are sent by the at least two target terminals according to the positioning authorization condition The map identifies location information, and the map identification location information is location information after the geographic location information of the at least two target terminals matches the map information.
  38. 根据权利要求27至33中任一项所述的终端,其特征在于,所述获取单元包括:The terminal according to any one of claims 27 to 33, wherein the obtaining unit comprises:
    发送子单元用于,向服务器发送包括所述至少两个目标终端的标识信息的第四请求消息,所述请求消息用于请求所述至少两个目标终端的地图标识位置信息;The sending subunit is configured to send, to the server, a fourth request message that includes the identifier information of the at least two target terminals, where the request message is used to request map identification location information of the at least two target terminals;
    接收子单元用于,接收所述服务器发送的第四响应消息,所述第四响应消息包括将所述至少两个目标终端的地理位置信息与服务器地图信息进行匹配后的所述地图标识位置信息; The receiving subunit is configured to receive a fourth response message sent by the server, where the fourth response message includes the map identification location information after the geographical location information of the at least two target terminals is matched with the server map information. ;
    获取子单元用于,根据所述接收子单元接收的所述第四响应消息,获取所述至少两个目标终端的地图标识位置信息。The acquiring subunit is configured to acquire map identification location information of the at least two target terminals according to the fourth response message received by the receiving subunit.
  39. 一种终端,其特征在于,包括:A terminal, comprising:
    接收模块,用于接收第一终端发送的定位请求消息,所述定位请求消息包括第一终端对所述目标终端进行定位的定位时间请求信息或定位位置请求信息;a receiving module, configured to receive a positioning request message sent by the first terminal, where the positioning request message includes positioning time request information or positioning location request information for the first terminal to locate the target terminal;
    确定模块,用于根据所述接收模块接收的所述定位请求消息,确定所述目标终端允许所述第一终端对其进行定位的定位授权条件,所述定位授权条件包括根据所述定位时间请求信息确定的定位时间信息,或根据所述定位位置信息确定的定位位置信息;a determining module, configured to determine, according to the positioning request message received by the receiving module, a positioning authorization condition that the target terminal allows the first terminal to locate, where the positioning authorization condition includes: according to the positioning time request Positioning time information determined by the information, or positioning position information determined according to the positioning position information;
    发送模块,用于根据所述确定模块确定的所述定位授权条件,向所述第一终端发送所述目标终端的定位信息;a sending module, configured to send, according to the positioning authorization condition determined by the determining module, location information of the target terminal to the first terminal;
    所述接收模块还用于,接收所述第一终端发送的共享目标终端的定位信息,所述共享目标终端为同意共享定位信息的目标终端。The receiving module is further configured to receive positioning information of the shared target terminal sent by the first terminal, where the shared target terminal is a target terminal that agrees to share the positioning information.
  40. 根据权利要求39所述的终端,其特征在于,所述终端还包括:The terminal according to claim 39, wherein the terminal further comprises:
    所述接收模块还用于,接收所述第一终端发送的用于请求共享定位信息的第一请求消息;The receiving module is further configured to receive, by the first terminal, a first request message for requesting sharing of positioning information;
    所述发送模块还用于,当确定同意共享定位信息时,向所述第一终端发送用于指示同意共享位置信息的第一响应消息。The sending module is further configured to: when determining to agree to share the positioning information, send, to the first terminal, a first response message for instructing to agree to share the location information.
  41. 根据权利要求39或40所述的终端,其特征在于,A terminal according to claim 39 or 40, characterized in that
    所述接收模块还用于,接收所述第一终端发送的用于请求加入定位群组的第二请求消息;The receiving module is further configured to receive a second request message that is sent by the first terminal and is used to request to join the positioning group.
    所述发送模块还用于,向所述第一终端发送用于指示同意加入所述定位群组的第二响应消息;The sending module is further configured to send, to the first terminal, a second response message for instructing to join the positioning group;
    所述接收模块具体用于,在所述定位群组内接收所述共享目标终端的定位信息。The receiving module is specifically configured to receive positioning information of the shared target terminal in the positioning group.
  42. 根据权利要求39或40所述的终端,其特征在于,所述接收模块接收的所述共享目标终端的定位信息中不包括所述目标终端的定位信息。The terminal according to claim 39 or 40, wherein the positioning information of the shared target terminal received by the receiving module does not include the positioning information of the target terminal.
  43. 根据权利要求39至42中任一项所述的终端,其特征在于,A terminal according to any one of claims 39 to 42, wherein
    所述接收模块接收的所述定位请求消息还包括所述第一终端的标识信息; The location request message received by the receiving module further includes identifier information of the first terminal;
    所述确定模块具体用于,当确定本地预设标识信息包括所述定位请求消息包括的所述标识信息时,将所述定位请求消息中的定位时间请求信息或定位位置请求信息确定为所述定位授权条件。The determining module is specifically configured to determine, when the local preset identifier information includes the identifier information included in the location request message, the location time request information or the location location request information in the location request message. Target authorization conditions.
  44. 根据权利要求39至42所述的终端,其特征在于,所述确定模块包括:The terminal according to any one of claims 39 to 42, wherein the determining module comprises:
    第一发送单元,用于向用户呈现用于指示所述定位请求消息的请求信息;a first sending unit, configured to present, to the user, request information for indicating the positioning request message;
    第一接收单元,用于接收用户指令,所述用户指令用于指示经用户根据所述定位请求消息确定的定位授权条件;a first receiving unit, configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition determined by the user according to the positioning request message;
    第一确定单元,用于根据所述第一接收单元接收的所述用户指令,确定所述目标终端允许所述第一终端对其进行定位的定位授权条件。a first determining unit, configured to determine, according to the user instruction received by the first receiving unit, a positioning authorization condition that the target terminal allows the first terminal to locate the first terminal.
  45. 根据权利要求43所述的终端,其特征在于,所述确定模块还包括:The terminal according to claim 43, wherein the determining module further comprises:
    第二发送单元用于,向用户呈现用于指示所述定位授权条件的请求信息;The second sending unit is configured to present, to the user, request information for indicating the positioning authorization condition;
    第二接收单元用于,接收用户指令,所述用户指令用于指示经用户授权的定位授权条件;The second receiving unit is configured to receive a user instruction, where the user instruction is used to indicate a positioning authorization condition authorized by the user;
    第二确定单元用于,根据所述第二接收单元接收的所述用户指令,将经所述用户授权的定位授权条件确定为所述目标终端允许所述第一终端对其进行定位的定位授权条件;The second determining unit is configured to determine, according to the user instruction received by the second receiving unit, a positioning authorization condition authorized by the user, that the target terminal allows the first terminal to locate the positioning condition;
    所述发送模块还用于,向所述第一终端发送定位响应消息,所述定位响应消息包括所述第二确定单元确定的经用户授权的定位授权条件。The sending module is further configured to send a location response message to the first terminal, where the location response message includes a location authorization condition authorized by the second determining unit.
  46. 根据权利要求43或44所述的终端,其特征在于,A terminal according to claim 43 or 44, characterized in that
    所述发送模块还用于,向所述第一终端发送定位响应消息,所述定位响应消息包括所述确定模块确定的所述定位授权条件。The sending module is further configured to send a location response message to the first terminal, where the location response message includes the location authorization condition determined by the determining module.
  47. 根据权利要求39至46中任一项所述的终端,其特征在于,所述发送模块包括:The terminal according to any one of claims 39 to 46, wherein the transmitting module comprises:
    第三确定单元,用于确定所述目标终端的地图标识位置信息,所述地图标识位置信息为所述目标终端的地理位置信息与地图信息匹配后的位置信息;a third determining unit, configured to determine map identification location information of the target terminal, where the map identification location information is location information after the geographic location information of the target terminal matches the map information;
    第三发送单元,用于根据所述确定模块确定的所述定位授权条件,向所述第一终端发送所述地图标识位置信息,以便于所述第一终端对所述目标终 端进行定位。a third sending unit, configured to send the map identification location information to the first terminal according to the positioning authorization condition determined by the determining module, so that the first terminal ends the target The end is positioned.
  48. 根据权利要求47所述的终端,其特征在于,所述第三确定单元包括:The terminal according to claim 47, wherein the third determining unit comprises:
    发送子单元,用于向服务器发送包括所述目标终端的地理位置信息的请求消息,所述请求消息用于请求服务器发送将所述地理位置信息与服务器地图信息匹配后的地图标识位置信息;a sending subunit, configured to send, to the server, a request message that includes the geographic location information of the target terminal, where the request message is used to request the server to send map identification location information that matches the geographic location information and the server map information;
    接收子单元,用于接收所述服务器发送的响应消息,所述响应消息包括所述地图标识位置信息;a receiving subunit, configured to receive a response message sent by the server, where the response message includes the map identification location information;
    确定子单元,用于根据所述接收子单元接收的所述响应消息,确定所述目标终端的地图标识位置信息。Determining a subunit, configured to determine map identification location information of the target terminal according to the response message received by the receiving subunit.
  49. 根据权利要求47所述的终端,其特征在于,所述第三确定单元具体用于,根据本地地图信息匹配所述目标终端的地理位置信息,确定所述目标终端的所述地图标识位置信息。The terminal according to claim 47, wherein the third determining unit is configured to determine the map identification location information of the target terminal according to the local map information matching the geographical location information of the target terminal.
  50. 根据权利要求39至46中任一项所述的终端,其特征在于,所述发送模块包括:The terminal according to any one of claims 39 to 46, wherein the transmitting module comprises:
    第三接收单元,用于接收服务器发送的包括所述目标终端的标识信息的请求消息;a third receiving unit, configured to receive a request message that is sent by the server and includes the identifier information of the target terminal;
    第四发送单元,用于向所述服务器发送包括所述目标终端的地理位置信息的响应消息,以便于所述服务器向所述第一终端发送将所述地理位置信息与服务器地图信息匹配后的地图标识位置信息,以便于所述第一终端对所述目标终端进行定位。 a fourth sending unit, configured to send, to the server, a response message including geographic location information of the target terminal, so that the server sends, to the first terminal, the geographic location information and the server map information. The map identifies location information to facilitate positioning of the target terminal by the first terminal.
PCT/CN2014/090060 2014-03-11 2014-10-31 Method and terminal for sharing positioning information WO2015135326A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410088366.9 2014-03-11
CN201410088366.9A CN103856895B (en) 2014-03-11 2014-03-11 The method and terminal of shared location information

Publications (1)

Publication Number Publication Date
WO2015135326A1 true WO2015135326A1 (en) 2015-09-17

Family

ID=50864021

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090060 WO2015135326A1 (en) 2014-03-11 2014-10-31 Method and terminal for sharing positioning information

Country Status (2)

Country Link
CN (1) CN103856895B (en)
WO (1) WO2015135326A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110009899A (en) * 2018-01-05 2019-07-12 宁波海豹电子科技有限公司 Vehicle positioning management system

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856895B (en) * 2014-03-11 2018-01-23 华为技术有限公司 The method and terminal of shared location information
CN105630993A (en) * 2015-12-25 2016-06-01 北京金山安全软件有限公司 Picture acquisition method and device
CN105898694A (en) * 2016-04-06 2016-08-24 众景视界(北京)科技有限公司 Method used for positioning and information interaction, head-mounted visual device and server
CN105915611A (en) * 2016-04-19 2016-08-31 百度在线网络技术(北京)有限公司 Cross-terminal data processing method and device
CN107548025B (en) * 2016-06-29 2020-11-27 中兴通讯股份有限公司 Position information sharing method and core network
CN106772506A (en) * 2016-12-22 2017-05-31 天绘北斗(深圳)科技有限公司 A kind of implementation method based on the positioning of big-dipper satellite short message group
CN107147565A (en) * 2017-05-09 2017-09-08 深圳市伊特利网络科技有限公司 Communication apparatus is automatically positioned interactive information and discloses method and system
CN106953934A (en) * 2017-05-19 2017-07-14 深圳天珑无线科技有限公司 Position sharing method and position sharing means
WO2019006421A1 (en) * 2017-06-30 2019-01-03 AVAST Software s.r.o. User consent for hybrid location sharing services
CN107682390A (en) * 2017-08-01 2018-02-09 深圳市盛路物联通讯技术有限公司 A kind of facility information processing method and processing device based on Internet of Things
WO2019036429A1 (en) * 2017-08-18 2019-02-21 Carrier Corporation Method to configure user positioning information sharing
CN111143419B (en) * 2019-03-14 2024-04-23 广东小天才科技有限公司 Shutdown positioning method for electronic equipment, service equipment and system
CN111263314A (en) * 2020-01-08 2020-06-09 王峰 Anti-lost appliance for easily lost people
CN111275600A (en) * 2020-02-20 2020-06-12 上海赛可出行科技服务有限公司 Network taxi appointment travel monitoring method based on mobile terminal
CN112087706B (en) * 2020-08-05 2022-05-10 华为技术有限公司 Position processing method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222659A (en) * 2007-01-10 2008-07-16 金宝电子工业股份有限公司 Navigation information sharing method and system
CN101646126A (en) * 2009-08-28 2010-02-10 宇龙计算机通信科技(深圳)有限公司 Service and mobile terminals, and position sharing method and system based on mobile packets
CN101742639A (en) * 2008-11-25 2010-06-16 中国联合网络通信集团有限公司 Method and system for sharing multi-terminal position
CN103856895A (en) * 2014-03-11 2014-06-11 华为技术有限公司 Method and terminal for sharing positioning information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7831264B2 (en) * 2006-10-23 2010-11-09 Sony Ericsson Mobile Communications Ab Tracking a group of mobile terminals
CN102223602B (en) * 2011-06-20 2015-04-08 深圳市比维视创科技有限公司 Method, terminals and system for sharing position information
CN103067588B (en) * 2012-12-27 2014-10-08 青岛英特沃克网络科技有限公司 System and method with which real-time map is capable of being displayed and shared in mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222659A (en) * 2007-01-10 2008-07-16 金宝电子工业股份有限公司 Navigation information sharing method and system
CN101742639A (en) * 2008-11-25 2010-06-16 中国联合网络通信集团有限公司 Method and system for sharing multi-terminal position
CN101646126A (en) * 2009-08-28 2010-02-10 宇龙计算机通信科技(深圳)有限公司 Service and mobile terminals, and position sharing method and system based on mobile packets
CN103856895A (en) * 2014-03-11 2014-06-11 华为技术有限公司 Method and terminal for sharing positioning information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110009899A (en) * 2018-01-05 2019-07-12 宁波海豹电子科技有限公司 Vehicle positioning management system

Also Published As

Publication number Publication date
CN103856895B (en) 2018-01-23
CN103856895A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
WO2015135326A1 (en) Method and terminal for sharing positioning information
WO2015096502A1 (en) Location method and user equipment
US10834529B2 (en) Location-based discovery of network members
US8639263B2 (en) Method and system for providing location-based information to a group of mobile user agents
US9546870B2 (en) Dynamic route mapping between mobile devices
WO2016055014A1 (en) Location method, location server and terminal
US20180317079A1 (en) Electronic device and proximity discovery method thereof
CN111264068B (en) Positioning processing method, positioning processing device, base station, terminal equipment and storage medium
CN111052780B (en) SIM card authentication method and terminal
US9860693B2 (en) Method and apparatus for sending a request to locate an individual via a text message
WO2015101195A1 (en) Status information update method and mobile terminal
US20160191458A1 (en) Method, a device, and a data transmission system for data transmission in a network system
US20150350855A1 (en) Data Sending Method and Apparatus
WO2015103929A1 (en) Method and apparatus for transmitting data in network system
WO2019140657A1 (en) Method and device for network connection and terminal
TWI420946B (en) Apparatuses and methods for reporting positioning information and assistance data
US8260312B2 (en) Method and apparatus for location request tracking
WO2012094938A1 (en) Information transmitting method, device, and system
JP6502955B2 (en) Method and apparatus for acquiring user information, terminal apparatus and server
CN103297487B (en) Positioning auxiliary method and apparatus
TWI439152B (en) Method for obtaining report information in short message service
KR102242656B1 (en) Location service framework using beacon in internet of things environment
CN117136600A (en) Information processing method and device, communication equipment and storage medium
JP2016167672A (en) Method for controlling operation of portable terminal device with positioning device mounted therein, portable terminal device and computer program
CN114374460A (en) System time obtaining method and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14885352

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14885352

Country of ref document: EP

Kind code of ref document: A1