CN109348413B - Position information sharing method, device, equipment and storage medium - Google Patents

Position information sharing method, device, equipment and storage medium Download PDF

Info

Publication number
CN109348413B
CN109348413B CN201811420063.7A CN201811420063A CN109348413B CN 109348413 B CN109348413 B CN 109348413B CN 201811420063 A CN201811420063 A CN 201811420063A CN 109348413 B CN109348413 B CN 109348413B
Authority
CN
China
Prior art keywords
information
terminal
sharing
shared
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811420063.7A
Other languages
Chinese (zh)
Other versions
CN109348413A (en
Inventor
杨昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Dajiaying Information Technology Co Ltd
Original Assignee
Suzhou Dajiaying Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Dajiaying Information Technology Co Ltd filed Critical Suzhou Dajiaying Information Technology Co Ltd
Priority to CN201811420063.7A priority Critical patent/CN109348413B/en
Publication of CN109348413A publication Critical patent/CN109348413A/en
Application granted granted Critical
Publication of CN109348413B publication Critical patent/CN109348413B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Abstract

The invention relates to a method, a device, equipment and a storage medium for sharing position information, wherein the method comprises the following steps: responding to a position information sharing request sent by a first terminal, and acquiring first position information currently positioned by the first terminal; acquiring additional information, packaging the first position information and the additional information, generating sharing information and returning the sharing information to the first terminal; responding to a shared information validity judgment request including the shared information sent by at least one second terminal, analyzing the shared information, and judging whether the shared information is valid; and when the sharing information is effective, updating the positioning information of the second terminal into the first position information. The invention can send the position information of the first terminal with accurate current positioning to the second terminal, so that the second terminal can obtain accurate positioning information under the condition of incomplete positioning function.

Description

Position information sharing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for sharing location information.
Background
LBS (Location-based Service), the Chinese language is a "Location-based Service", as the name suggests, it needs to use technology to locate the Location of the user, and then provide various value-added services after Location. With the continuous development of mobile communication technology and positioning technology, the LBS can provide high-precision and high-timeliness location information for applications, so that the applications based on location services are increasingly widely used. For example, in a Social Networking Services (SNS) service based on LBS, a user shares own location information with the service and also obtains location information of other users.
However, when the mobile terminal itself has a problem that the positioning is inaccurate (for example, the positioning of the mobile terminal is single), or when the positioning signal is not good in the open air or in the field, the positioning is inaccurate, and therefore, a further solution to the problem that the mobile terminal cannot be accurately positioned in some cases is to be proposed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus, a device and a storage medium for sharing location information, which can send the location information of a first terminal with accurate current location to a second terminal, so that the second terminal can obtain accurate location information even when there is no location function or the location function is incomplete.
In order to solve the above technical problem, in a first aspect, the present invention provides a location information sharing method, including:
a first terminal sends a position information sharing request to a server;
the server responds to the position information sharing request, acquires first position information and additional information currently positioned by the first terminal, packages the first position information and the additional information, generates sharing information and returns the sharing information to the first terminal;
the second terminal acquires the shared information of the first terminal and sends a shared information validity judgment request comprising the shared information to a server, wherein the shared information validity judgment request also comprises the current positioning information of the second terminal;
the server responds to the shared information validity judgment request, analyzes the shared information, and judges whether the shared information is valid or not according to the current positioning information of the second terminal and a result obtained by analysis; and when the sharing information is effective, updating the positioning information of the second terminal into the first position information.
In a second aspect, the present invention provides a location information sharing method, applied to a server, including:
responding to a position information sharing request sent by a first terminal, and acquiring first position information currently positioned by the first terminal;
acquiring additional information, packaging the first position information and the additional information, generating sharing information and returning the sharing information to the first terminal;
responding to a shared information validity judgment request which comprises the shared information and is sent by at least one second terminal, analyzing the shared information, wherein the validity judgment request also comprises the current positioning information of the second terminal, and judging whether the shared information is valid according to the current positioning information of the second terminal and the result obtained by analysis;
and when the sharing information is effective, updating the positioning information of the second terminal into the first position information.
In a third aspect, the present invention provides a location information sharing method, applied to a second terminal, including:
the method comprises the steps of obtaining sharing information of a first terminal, and sending a sharing information validity judgment request comprising the sharing information to a server, wherein the sharing information validity judgment request further comprises current positioning information of a second terminal;
and receiving first position information which is returned by the server when the sharing information is judged to be effective and updates the current positioning information.
In a fourth aspect, the present invention provides a location information sharing apparatus, including:
the information acquisition module is used for responding to a position information sharing request sent by a first terminal and acquiring first position information currently positioned by the first terminal;
the packaging module is used for acquiring additional information, packaging the first position information and the additional information, generating sharing information and returning the sharing information to the first terminal;
the validity judging module is used for responding to a sharing information validity judging request which is sent by at least one second terminal and comprises the sharing information, analyzing the sharing information, wherein the validity judging request also comprises the current positioning information of the second terminal, and judging whether the sharing information is valid or not according to the current positioning information of the second terminal and the result obtained by analyzing;
and the updating module is used for updating the positioning information of the second terminal into the first position information when the sharing information is effective.
In a fifth aspect, the present invention provides a position information sharing apparatus, including:
the shared information processing module is used for acquiring shared information of a first terminal and sending a shared information validity judgment request comprising the shared information to a server, wherein the shared information validity judgment request also comprises current positioning information of a second terminal;
and the updating instruction receiving module is used for receiving first position information which is returned when the server judges that the sharing information is effective and updates the current positioning information.
In a sixth aspect, the present invention provides a computer storage medium having at least one instruction, at least one program, code set, or instruction set stored therein, the at least one instruction, at least one program, code set, or instruction set being loaded by a processor and executing the location information sharing method according to the first, second, or third aspect.
In a seventh aspect, the present invention provides a location information sharing system, where the system includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, at least one program, a code set, or a set of instructions is loaded by the processor and executes the location information sharing method according to the first aspect.
In an eighth aspect, the present invention provides a location information sharing device, where the device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, at least one program, a code set, or a set of instructions is loaded by the processor and executes the location information sharing method according to the second aspect or the third aspect.
The embodiment of the invention has the following beneficial effects:
the method comprises the steps that a position information sharing request is sent to a server through a first terminal; the server responds to the position information sharing request, and generates sharing information to return to the first terminal according to the acquired first position information and the acquired additional information of the current positioning of the first terminal; the second terminal acquires the shared information of the first terminal and sends a shared information validity judgment request to the server; and the server judges the effectiveness of the sharing information sent by the second terminal, and updates the positioning information of the second terminal into the first position information when the sharing information is judged to be effective. According to the invention, under the condition that the first terminal is accurately positioned and the second terminal is inaccurately positioned, the position sharing information is generated by the first terminal and is sent to the second terminal, so that the second terminal can also obtain accurate current positioning information; by means of the mobile terminal with accurate positioning information, the problem that the mobile terminal without a positioning function or with an incomplete positioning function is inaccurate in positioning is solved.
Drawings
FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a location information sharing method according to an embodiment of the present invention;
fig. 3 is a flowchart of another location information sharing method according to an embodiment of the present invention;
fig. 4 is a flowchart of an information packaging method according to an embodiment of the present invention;
fig. 5 is a flowchart of an information parsing method according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for determining validity of shared information according to an embodiment of the present invention;
fig. 7 is a flowchart of another location information sharing method according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a location information sharing apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a package module provided by an embodiment of the invention;
FIG. 10 is a schematic diagram of a validity determination module according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a parsing module according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of a comprehensive judgment module according to an embodiment of the present invention;
fig. 13 is a schematic view of another position information sharing apparatus according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. Moreover, the terms "first," "second," and the like, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
Referring to fig. 1, a schematic view of an application scenario of the embodiment of the present invention is shown, including a first terminal 110, a plurality of second terminals 120, and a server 130, where the plurality of second terminals 120 are at least one second terminal.
In this embodiment, the first terminal 110 and the second terminal 120 may be, but are not limited to, mobile terminal devices such as a mobile phone and a tablet computer, where the users corresponding to the first terminal 110 and the second terminal 120 are users in the same row, and the current positioning information of the first terminal 110 is accurate, and the positioning information of the second terminal 120 is inaccurate.
The server 130 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center. The first terminal 110 and the second terminal 120 are both in communication with the server 130. The first terminal 110 sends the location sharing information to the second terminal 120 through the server 130, so as to update the inaccurate positioning information of the second terminal 120 to the accurate positioning information of the first terminal 110.
It should be noted that the first terminal and the second terminal in this embodiment are not limited to terminals, and are only for convenience of description, so in this embodiment, the first terminal represents a terminal whose located position information is accurate, and the second terminal represents a terminal whose located position information is inaccurate, and the first terminal shares accurate position information with the second terminal; in addition, the first terminal can share the position information to a plurality of second terminals at the same time, so that the number of the second terminals is at least one.
The embodiment provides a position information sharing system, where the sharing system includes a first terminal, a second terminal, and a server, and the system can share position information of the first terminal to the second terminal, and a specific position information sharing method may be as shown in fig. 2, and includes:
s210, the first terminal sends a position information sharing request to the server.
Specifically, the first terminal sends a location information sharing request to the server in response to a location information obtaining request sent by at least one second terminal.
S220, the server responds to the position information sharing request, obtains first position information and additional information of the first terminal located at present, packages the first position information and the additional information, generates sharing information and returns the sharing information to the first terminal.
And S230, the second terminal acquires the shared information of the first terminal and sends a shared information validity judgment request comprising the shared information to a server, wherein the shared information validity judgment request also comprises the current positioning information of the second terminal.
S240, the server responds to the shared information validity judgment request, analyzes the shared information, and judges whether the shared information is valid or not according to the current positioning information of the second terminal and the result obtained by analysis; and when the sharing information is effective, updating the positioning information of the second terminal into the first position information.
According to the method, the first terminal, the second terminal and the server are interacted, the position information accurately positioned by the first terminal is shared with the second terminal, the position information inaccurately positioned by the second terminal is updated, and the second terminal obtains the accurate positioning information and executes subsequent preset actions.
Please refer to fig. 3, which illustrates a location information sharing method, applicable to a server side, the method specifically includes:
s310, responding to a position information sharing request sent by a first terminal, and obtaining first position information of the first terminal located at present.
Before a first terminal sends a position information sharing request to a server, the server also receives a position information acquisition request sent by at least one second terminal to the first terminal, namely, when a user of the second terminal finds that the current positioning information of the second terminal is inaccurate or cannot be positioned currently and needs to acquire the current accurate positioning information, the server sends the position information acquisition request to the first terminal through the second terminal, wherein the position information acquisition request can be an instant message or a message in a preset format of a system and the like; the server forwards the position information acquisition request to the first terminal so as to trigger the first terminal to send the position information sharing request to the server.
The location information sharing request may include first location information currently located by a first terminal, and when the server receives the location information sharing request, the server may obtain the first location information from the location information sharing request.
S320, acquiring additional information, packaging the first position information and the additional information, generating sharing information and returning the sharing information to the first terminal.
The additional information here is for assisting in determining validity of the shared information in the following, and any additional information that can contribute to determining validity of the shared information may be applied in this embodiment, for example, determining timeliness, determining identity of a user related to the shared location information, and the like, and specifically, the additional information in this embodiment may include: a list of users that need to be shared for location information, and/or a first timestamp of the current time.
In specific implementation, there are three cases:
1. the additional information is a user list of position information needing to be shared;
2. the additional information is a first timestamp of a current time;
3. the additional information is a list of users needing location information to be shared and a first timestamp of the current time.
The content of the additional information may be determined according to actual situations, and the embodiment is not particularly limited.
The user list of the location information to be shared may be included in the location information sharing request, that is, the server may directly obtain the user list of the location information to be shared from the location information sharing request; or the server may obtain a user list of the location information to be shared from the first terminal when the server packages the information after receiving the location information sharing request. The user list of the position information to be shared is established by the user of the first terminal according to the requirement of actual position information sharing. Specifically, the user selects a user needing to be shared with the position information from the instant messaging software according to the request of the peer user, generates a user list and sends the user list to the server; the instant software can be social software in general sense, or can be software customized for internal communication specifically for the personnel in a business or company.
The first timestamp of the current time is the timestamp of the current time acquired when the server packages the information.
A specific method for encapsulating the first location information and the additional information may be as shown in fig. 4, and includes:
and S410, carrying out data coding on the first position information and the additional information according to a preset rule.
Different types of data are coded according to different coding modes, each coding mode has a unique ID for identification, and the identifications are recorded at the front end of the data area, so that a decoder can decode the data according to the coding mode used.
When the specific coding is performed, a suitable coding mode can be selected according to the type of the data to perform coding, and the coding mode includes digital coding, character coding and the like. And according to the selected coding mode, coding the first position information and the additional information to generate a binary data stream.
And S420, adding extra codes in the data codes to generate final binary code information.
Some extra codes are added in the binary data coding to generate the final binary coding information, wherein the extra codes can be error correcting codes, and the result can be corrected during decoding.
And S430, generating the sharing information in an image form according to the binary coding information.
And arranging the finally generated binary coding information according to a preset image format, performing corresponding operation, and finally generating the sharing information in the image form.
The image-form shared information in the embodiment may specifically be a two-dimensional code as an example, that is, the two-dimensional code carries position information to be shared; the two-dimensional code has the characteristics of concise appearance, easiness in storage, high data storage capacity, high safety and the like.
And after the server generates the two-dimensional code carrying the sharing information, returning the generated two-dimensional code to the first terminal.
S330, responding to a shared information validity judgment request which is sent by at least one second terminal and comprises the shared information, analyzing the shared information, wherein the validity judgment request further comprises the current positioning information of the second terminal, and judging whether the shared information is valid or not according to the current positioning information of the second terminal and the result obtained by analysis.
The method comprises the steps that after receiving sharing information returned by a server, a first terminal provides the sharing information to a second terminal, and when additional information comprises a user list needing shared position information, the first terminal can send the sharing information to the corresponding second terminal according to the list; when the additional information does not include the user list of the position information to be shared, the second terminal user can actively acquire the shared information, for example, by scanning the two-dimensional code. After the second terminal acquires the sharing information, a sharing information validity judgment request is sent to the server, so that the server judges whether the currently received sharing information is valid.
After receiving the shared information, the server firstly parses the shared information, and a specific parsing process may refer to fig. 5, which includes:
and S510, receiving the sharing information in the image form sent by the second terminal.
Because the shared information validity judgment request sent by the second terminal contains the shared information, the server can directly acquire the shared information in the form of the image from the request.
And S520, carrying out image recognition on the sharing information in the image form to obtain binary information.
Since the shared information is in the form of an image, it is first subjected to image recognition, and the method used here is actually the inverse process of the above step S430, and finally the encoded binary information can be obtained.
S530, decoding and correcting the binary information to obtain an analysis result of the shared information.
According to a preset decoding rule, the binary information is decoded into original data information, namely first position information and additional information, so that a result of analyzing the shared information is obtained.
Specifically, taking a two-dimensional code as an example, when the second terminal receives the shared information in the form of the two-dimensional code sent by the first terminal, the user of the second terminal may press the two-dimensional code for a long time and select an option of "analyze the two-dimensional code" from an option list popped up after the long-time pressing operation, and after the option is selected, the server starts to analyze the two-dimensional code; or the second terminal scans the two-dimensional code of the first terminal and sends the two-dimensional code to the server for analysis.
The method for generating the shared information in the form of the two-dimensional code and the method for analyzing the shared information can be both referred to a method for generating and decoding the two-dimensional code in the prior art, and are not repeated herein.
After the analysis result is obtained, the validity of the shared information is determined, and a method for determining the validity of the shared information is shown in fig. 6 and includes:
s610, judging whether a user corresponding to the second terminal exists in the user list of the position information to be shared, and/or acquiring a second timestamp when the second terminal sends the validity judgment request of the shared information, and judging whether the time length between the first timestamp and the second timestamp is less than the preset time length.
There are three cases from the additional information described in step S320, and for these three cases, the determination is performed according to the determination conditions in step S610.
If the additional information includes the first timestamp of the current time, the server needs to acquire a second timestamp when the second terminal sends the sharing information validity judgment request when performing validity judgment.
It should be noted that, for the server, which items of information are specifically included in the additional information are known, that is, for such a system, when the additional information is preset, one or both of a user list of the location information to be shared and a first timestamp of the current time are set, so that, when the additional information only includes the user list of the location information to be shared, the server does not need to acquire a second timestamp when the second terminal sends the validity judgment request of the shared information; and when the additional information comprises the first timestamp of the current time, the server needs to acquire a second timestamp when the second terminal sends the validity judgment request of the shared information.
This is also discussed in three cases:
1. the additional information is a user list of position information needing to be shared;
at this time, it is necessary to determine whether the user corresponding to the second terminal that sends the request for determining the validity of the shared information exists in the user list of the shared location information.
2. The additional information is a first timestamp of a current time;
at this time, it needs to be determined whether the time interval between the first time stamp and the second time stamp is less than a preset time, and in this embodiment, the preset time may be 5 minutes.
3. The additional information is a list of users needing location information to be shared and a first timestamp of the current time.
At this time, it is required to determine whether a user corresponding to the second terminal that sends the request for determining the validity of the shared information exists in the user list of the shared location information, and determine whether a time interval between the first time stamp and the second time stamp is less than a preset time, where in this embodiment, the preset time may be 5 minutes.
And S620, if yes, calculating a linear distance between the first position information and the current positioning information of the second terminal according to the first position information and the current positioning information of the second terminal.
And for the three different situations, if the judgment result is yes, calculating the linear distance between the first terminal and the second terminal according to the current positioning information of the first terminal and the second terminal.
And S630, when the straight line distance is smaller than a preset distance, determining that the shared information is effective.
And when the calculated distance between the first terminal and the second terminal is smaller than the preset distance, judging that the shared information received by the second terminal is effective. In this embodiment, the preset distance may be 200 meters.
And S340, when the sharing information is effective, updating the positioning information of the second terminal into the first position information.
And when judging that the sharing information sent by the second terminal is effective, the server sends a position updating instruction to the second terminal and updates the positioning information of the second terminal into the first position information.
It should be noted that after the one or more second terminals receive the shared information sent by the first terminal, on the premise that the additional condition is satisfied, the shared information may be sent to other second terminals, and the first terminal does not need to send the shared information to each second terminal one by one, which reduces the workload of the first terminal user. For example, the additional information is a first timestamp of the current time, the server generates sharing information including the first location information and the first timestamp and returns the sharing information to the first terminal after responding to the location sharing request of the first terminal, and the first terminal sends the sharing information to the second terminal; the second terminal user can send the sharing information to other second terminals, and the corresponding second terminal position information can be updated as long as the time interval between the first timestamp and the corresponding second timestamp is less than the preset time length and the linear distance between the first terminal and the corresponding second terminal is less than the preset distance.
After updating the location information of the second terminal to the first location information, the method further comprises:
and executing preset actions, wherein the preset actions comprise card punching, check-in, marking or registering and the like.
Please refer to fig. 7, which illustrates another location information sharing method provided in an embodiment of the present invention, applied to a second terminal side, where the second terminal in the embodiment is a terminal with inaccurate location information, and the method includes:
and S710, obtaining the sharing information of the first terminal, and sending a sharing information validity judgment request comprising the sharing information to a server, wherein the sharing information validity judgment request further comprises the current positioning information of the second terminal.
In this embodiment, after the second terminal sends a position information acquisition request to the first terminal, the first terminal sends sharing information generated according to the positioning information of the first terminal to the second terminal; after receiving the shared information, the second terminal sends a shared information validity judgment request including the shared information to the server, and judges the validity of the received shared information, and the specific judgment process may refer to the method in step S330, which is not described herein again.
And S720, receiving first position information which is returned by the server when the sharing information is judged to be effective and updates the current positioning information.
And when the shared information is judged to be effective, the second terminal receives the analyzed first position information sent by the server, and updates the current positioning information into the first position information in the shared information.
After the position updating is completed, the second terminal triggers and executes preset actions, namely, operations of card punching, sign-in, marking, registration and the like are completed at the second terminal.
Referring to fig. 8, an embodiment of the present invention provides a location information sharing device, which can execute the location information sharing method described in fig. 3 to 6 in the embodiment, where the device specifically includes:
the information obtaining module 810 is configured to obtain first location information currently located by a first terminal in response to a location information sharing request sent by the first terminal.
The encapsulating module 820 is configured to obtain additional information, encapsulate the first location information and the additional information, generate shared information, and return the shared information to the first terminal. The additional information includes: a list of users that need to be shared for location information, and/or a first timestamp of the current time.
The validity judging module 830 is configured to respond to a shared information validity judging request including the shared information sent by at least one second terminal, analyze the shared information, where the validity judging request further includes current location information of the second terminal, and judge whether the shared information is valid according to the current location information of the second terminal and a result obtained by the analysis.
An updating module 840, configured to update the positioning information of the second terminal to the first location information when the sharing information is valid.
Referring to fig. 9, the encapsulation module 820 includes:
a first encoding module 910, configured to perform data encoding on the first location information and the additional information according to a preset rule.
A second encoding module 920, configured to add an additional code to the data encoding to generate final binary encoding information.
A generating module 930, configured to generate the sharing information in an image form according to the binary coding information.
Referring to fig. 10, the validity determination module 830 includes: an analysis module 1010 and a comprehensive judgment module 1020.
Referring to fig. 11, the parsing module 1010 includes:
an information receiving module 1110, configured to receive shared information in an image format sent by the second terminal;
the image recognition module 1120 is configured to perform image recognition on the shared information in the image form to obtain binary information;
the decoding module 1130 is configured to decode and correct errors of the binary information, so as to obtain an analysis result of the shared information.
Referring to fig. 12, the comprehensive judgment module 1020 includes:
the first determining module 1210 is configured to determine whether a user corresponding to the second terminal exists in the user list of the location information to be shared, and/or obtain a second timestamp when the second terminal sends the shared information analysis request, and determine whether a time interval between the first timestamp and the second timestamp is less than a preset time interval.
A calculating module 1220, configured to calculate a linear distance between the first location information and the current location information of the second terminal according to the first location information and the current location information of the second terminal if the determination result of the first determining module is yes.
The second determining module 1230 is configured to determine that the shared information is valid when the linear distance is smaller than a preset distance.
Further, the apparatus further comprises:
a first receiving module 850, configured to receive a location information obtaining request sent by the at least one second terminal to the first terminal, so that the server forwards the location information obtaining request to the first terminal.
And the preset action execution module 860 is used for executing preset actions, and the preset actions comprise card punching, check-in, marking and registration.
Referring to fig. 13, an embodiment of the present invention further provides another location information sharing apparatus, which is capable of executing the location information sharing method shown in fig. 7 of this embodiment, and the apparatus includes:
a first sending module 1310, configured to send a location information obtaining request to a first terminal.
The shared information processing module 1320 is configured to acquire shared information of a first terminal, and send a shared information validity determination request including the shared information to a server, where the shared information validity determination request further includes current location information of a second terminal.
The update instruction receiving module 1330 is configured to receive first location information, which is returned by the server when the sharing information is determined to be valid, and is used for updating the current location information.
The triggering module 1340 is configured to trigger execution of a preset action, where the preset action includes a card punch, a check-in, a mark, and a registration.
The device provided in the above embodiment can execute the method provided in the corresponding embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above device embodiments, reference may be made to the corresponding method provided in the embodiments of the present invention, and details are not described herein again.
The present embodiment also provides a computer-readable storage medium, where computer-executable instructions are stored in the storage medium, and the computer-executable instructions are loaded by a processor and execute the method for sharing location information in any of the embodiments.
The present embodiment also provides a location information sharing system, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded by the processor and executes the location information sharing method described in fig. 2 of the present embodiment.
The present embodiment also provides a corresponding device, and fig. 14 provides a schematic diagram of a hardware structure of a device for sharing location information, where the device includes one or more processors 1410 and a memory 1420, and fig. 14 takes one processor as an example. The apparatus further comprises a receiving means 1430 and a transmitting means 1440, the processor 1410, the memory 1420, the receiving means 1430 and the transmitting means 1440 may be connected by a bus or other means, as exemplified by a bus in fig. 14.
The memory 1420, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules (for example, the modules shown in fig. 8 to 13) corresponding to the location information sharing method in the embodiment of the present invention. The processor 1410 executes various functional applications and data processing by executing nonvolatile software programs, instructions and modules stored in the memory 1420, that is, implements the methods described in fig. 3 to 7 in the above embodiments.
The memory 1420 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store information on the number of acquired reminders for the application program, and the like. Further, memory 1420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device.
The receiving device 1430 is used for receiving requests and related information sent by other devices.
The transmitting means 1440 is used to transmit requests and related information to other devices.
The apparatus in embodiments of the present invention may exist in a variety of forms, including but not limited to: mobile communication devices, ultra-mobile personal computer devices, portable entertainment devices, servers, and the like.
According to the invention, under the condition that the first terminal is accurately positioned and the second terminal is inaccurately positioned, the position sharing information is generated according to the position information of the first terminal and is sent to the second terminal, so that the second terminal can also obtain accurate current positioning information; by means of the mobile terminal with accurate positioning information, the problem that the mobile terminal with an incomplete positioning function is inaccurate in positioning is solved.
The invention can be particularly applied to an application scene based on positioning attendance, when a user finds that the positioning information of the user does not accord with the actual position of the user when the user needs to punch a card through positioning, the invention can seek help for the users in the same row, and relatively accurate positioning information can be obtained through the help of the users in the same row, thereby improving the effective rate of the user punching information; the method can enhance the entertainment of the mobile client and the interest of the user on the mobile client.
The present specification provides method steps as described in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive labor. The steps and sequences recited in the embodiments are but one manner of performing the steps in a multitude of sequences and do not represent a unique order of performance. In the actual system or interrupted product execution, it may be performed sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
The configurations shown in the present embodiment are only partial configurations related to the present application, and do not constitute a limitation on the devices to which the present application is applied, and a specific device may include more or less components than those shown, or combine some components, or have an arrangement of different components. It should be understood that the methods, apparatuses, and the like disclosed in the embodiments may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a division of one logic function, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or unit modules.
Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (15)

1. A method for sharing location information, comprising:
a first terminal sends a position information sharing request to a server;
the server responds to the position information sharing request, acquires first position information and additional information currently positioned by the first terminal, packages the first position information and the additional information, generates sharing information and returns the sharing information to the first terminal; the additional information comprises a user list of the position information to be shared and/or a first time stamp of the current time;
the second terminal acquires the shared information of the first terminal and sends a shared information validity judgment request comprising the shared information to a server, wherein the shared information validity judgment request also comprises the current positioning information of the second terminal;
the server responds to the shared information validity judgment request, analyzes the shared information, and judges whether the shared information is valid or not according to the current positioning information of the second terminal and a result obtained by analysis; and when the sharing information is effective, updating the positioning information of the second terminal into the first position information.
2. A position information sharing method is applied to a server and comprises the following steps:
responding to a position information sharing request sent by a first terminal, and acquiring first position information currently positioned by the first terminal;
acquiring additional information, packaging the first position information and the additional information, generating sharing information and returning the sharing information to the first terminal; the additional information comprises a user list of the position information to be shared and/or a first time stamp of the current time;
responding to a shared information validity judgment request which comprises the shared information and is sent by at least one second terminal, analyzing the shared information, wherein the validity judgment request also comprises the current positioning information of the second terminal, and judging whether the shared information is valid according to the current positioning information of the second terminal and the result obtained by analysis;
and when the sharing information is effective, updating the positioning information of the second terminal into the first position information.
3. The method according to claim 2, wherein the responding to the location information sharing request sent by the first terminal further comprises:
and receiving a position information acquisition request sent by the at least one second terminal to the first terminal.
4. The method according to claim 2, wherein the encapsulating the first location information and the additional information to generate shared information includes:
performing data encoding on the first position information and the additional information according to a preset rule;
adding extra codes in the data codes to generate final binary code information;
and generating the sharing information in an image form according to the binary coding information.
5. The method according to claim 4, wherein the analyzing the shared information in response to a request for determining validity of the shared information, which includes the shared information, sent by at least one second terminal comprises:
receiving sharing information in an image form sent by the second terminal;
carrying out image recognition on the sharing information in the image form to obtain binary information;
and decoding and correcting the binary information to obtain an analysis result of the shared information.
6. The method according to claim 2, wherein the determining whether the shared information is valid according to the current positioning information of the second terminal and a result obtained by the analysis comprises:
judging whether a user corresponding to the second terminal exists in the user list of the position information to be shared, and/or acquiring a second timestamp when the second terminal sends the validity judgment request of the shared information, and judging whether the time length between the first timestamp and the second timestamp is less than a preset time length;
if yes, calculating a linear distance between the first position information and the second terminal according to the first position information and the current positioning information of the second terminal;
and when the linear distance is smaller than a preset distance, determining that the shared information is effective.
7. The method according to claim 2, wherein when the shared information is valid, after updating the positioning information of the second terminal to the first position information, the method further comprises:
and executing preset actions, wherein the preset actions comprise card punching, check-in, marking and registration.
8. A position information sharing method is applied to a second terminal and comprises the following steps:
the method comprises the steps of obtaining sharing information of a first terminal, and sending a sharing information validity judgment request comprising the sharing information to a server, wherein the sharing information validity judgment request further comprises current positioning information of a second terminal; the sharing information is generated by encapsulating, by the server, first position information currently located by the first terminal and additional information, where the additional information includes: a list of users needing to be shared with location information, and/or a first timestamp of the current time;
and receiving first position information which is returned by the server when the sharing information is judged to be effective and updates the current positioning information.
9. The method according to claim 8, wherein after receiving the first location information returned by the server to update the current location information, the method comprises:
and triggering and executing preset actions, wherein the preset actions comprise card punching, check-in, marking and registration.
10. The method according to claim 8, further comprising, before the obtaining the shared information generated by the first terminal:
and sending a position information acquisition request to the first terminal.
11. A position information sharing apparatus, comprising:
the information acquisition module is used for responding to a position information sharing request sent by a first terminal and acquiring first position information currently positioned by the first terminal;
the packaging module is used for acquiring additional information, packaging the first position information and the additional information, generating sharing information and returning the sharing information to the first terminal; the additional information comprises a user list of the position information to be shared and/or a first time stamp of the current time;
the validity judging module is used for responding to a sharing information validity judging request which is sent by at least one second terminal and comprises the sharing information, analyzing the sharing information, wherein the validity judging request also comprises the current positioning information of the second terminal, and judging whether the sharing information is valid or not according to the current positioning information of the second terminal and the result obtained by analyzing;
and the updating module is used for updating the positioning information of the second terminal into the first position information when the sharing information is effective.
12. A position information sharing apparatus, comprising:
the shared information processing module is used for acquiring shared information of a first terminal and sending a shared information validity judgment request comprising the shared information to a server, wherein the shared information validity judgment request also comprises current positioning information of a second terminal; the sharing information is generated by encapsulating, by the server, first position information currently located by the first terminal and additional information, where the additional information includes: a list of users needing to be shared with location information, and/or a first timestamp of the current time;
and the updating instruction receiving module is used for receiving first position information which is returned when the server judges that the sharing information is effective and updates the current positioning information.
13. A computer storage medium, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded by a processor and executes the location information sharing method according to any one of claims 1 to 10.
14. A location information sharing system, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the location information sharing method according to claim 1.
15. A location information sharing device, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the location information sharing method according to any one of claims 2 to 10.
CN201811420063.7A 2018-11-26 2018-11-26 Position information sharing method, device, equipment and storage medium Active CN109348413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811420063.7A CN109348413B (en) 2018-11-26 2018-11-26 Position information sharing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811420063.7A CN109348413B (en) 2018-11-26 2018-11-26 Position information sharing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109348413A CN109348413A (en) 2019-02-15
CN109348413B true CN109348413B (en) 2020-10-02

Family

ID=65318250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811420063.7A Active CN109348413B (en) 2018-11-26 2018-11-26 Position information sharing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109348413B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023150933A1 (en) * 2022-02-09 2023-08-17 Telefonaktiebolaget Lm Ericsson (Publ) Trust validation of location information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639632A (en) * 2015-02-04 2015-05-20 杭州万色城电子商务有限公司 Method for accurate orientation and statistic operation
CN106899700A (en) * 2017-04-27 2017-06-27 电子科技大学 A kind of method for secret protection of the position shared system in mobile social networking
CN107682255A (en) * 2017-11-17 2018-02-09 腾讯科技(深圳)有限公司 Method for message transmission, device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090528A (en) * 2006-06-16 2007-12-19 华为技术有限公司 Channel resource allocating method in trunking service and trunking communication system
US8332142B2 (en) * 2006-12-26 2012-12-11 Rohm Co., Ltd. Position display apparatus
JP4952433B2 (en) * 2007-08-08 2012-06-13 ソニー株式会社 Information processing apparatus and method, and information processing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639632A (en) * 2015-02-04 2015-05-20 杭州万色城电子商务有限公司 Method for accurate orientation and statistic operation
CN106899700A (en) * 2017-04-27 2017-06-27 电子科技大学 A kind of method for secret protection of the position shared system in mobile social networking
CN107682255A (en) * 2017-11-17 2018-02-09 腾讯科技(深圳)有限公司 Method for message transmission, device and storage medium

Also Published As

Publication number Publication date
CN109348413A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN107784552B (en) Information push task execution method and device, computer equipment and storage medium
CN101142566B (en) Method and system for detecting concurrent logins
CN106686105B (en) Message pushing method, computing device, server and information sharing system
CN104301875A (en) Short message processing method and device
CN112087744A (en) Method, system, device and storage medium for identifying terminal model
CN106656998B (en) server communication method and device
CN110311886A (en) Server leak detection method, device, equipment and storage medium
CN113835902A (en) Data processing method and device, computer equipment and storage medium
CN109348413B (en) Position information sharing method, device, equipment and storage medium
CN106454403B (en) Data display method, equipment and system
CN115039392A (en) Message processing method, device and system and server
CN109547924B (en) Position information sharing method, device, equipment and storage medium
CN109586979B (en) Message transmission method and device
CN110865973B (en) Data processing method and equipment and related device
CN110913038A (en) IP address determination method, device, server and computer readable storage medium
CN107370731B (en) Method and device for realizing communication between different applications based on natural language
CN113486996A (en) Two-dimensional code image processing method and device, storage medium and electronic device
CN107395583B (en) Method and device for realizing communication between different applications based on natural language
CN114270389A (en) Information acquisition method, device, system, electronic equipment and storage medium
CN114650439A (en) Information monitoring method, terminal, server and computer readable storage medium
CN113824625B (en) Information interaction method and device
WO2020053635A1 (en) Resource recommendation method in near-field transmission and apparatus therefor
CN110706011A (en) APP promotion data processing method and device, terminal and readable medium
CN111159509B (en) Data processing method and related product
CN114143030B (en) Verification processing method and device, electronic equipment and storage medium

Legal Events

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