CN105472726B - Position determination method and device - Google Patents
Position determination method and device Download PDFInfo
- Publication number
- CN105472726B CN105472726B CN201410436995.6A CN201410436995A CN105472726B CN 105472726 B CN105472726 B CN 105472726B CN 201410436995 A CN201410436995 A CN 201410436995A CN 105472726 B CN105472726 B CN 105472726B
- Authority
- CN
- China
- Prior art keywords
- user
- terminal
- information
- altitude information
- location
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000013475 authorization Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 16
- 238000004891 communication Methods 0.000 description 14
- 238000012545 processing Methods 0.000 description 10
- 230000004044 response Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Landscapes
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a position determining method and a position determining device, wherein the method comprises the following steps: a first terminal acquires altitude information of the first terminal; the first terminal determines the position information of a first user according to the altitude information; the first user is a user to which the first terminal belongs; and when judging that a second user is an authorized object, the first terminal sends the position information of the first user to the second terminal, wherein the second terminal is used by the second user. The method and the device can enable the authorized user to accurately position the position of the user by sending the position information to the authorized user.
Description
Technical Field
The present disclosure relates to the field of communications, and in particular, to a method and an apparatus for determining a location.
Background
In real life, a scene that several friends agree to gather in a busy business center, some people arrive first and some people arrive later, and a situation that contact is needed to determine a specific meeting position is often encountered.
In the related technology, a user generally describes specific feature information such as a specific location, a landmark building and the like to an opposite party in a call through a telephone call, finds a specific position according to the information described in the call, and sometimes cannot contact the opposite party through the telephone call due to reasons such as signals or is unfamiliar with the environment, cannot conveniently and quickly find the position of the opposite party according to the feature information and the like in a business center or an office building dense area.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a location determining method and apparatus capable of determining a location of a person in a building.
According to a first aspect of embodiments of the present disclosure, there is provided a position determination method, the method including:
a first terminal acquires altitude information of the first terminal;
the first terminal determines the position information of a first user according to the altitude information; the first user is a user to which the first terminal belongs;
and when judging that a second user is an authorized object, the first terminal sends the position information of the first user to the second terminal, wherein the second terminal is used by the second user.
Optionally, the location information of the first user includes the number of floors where the first user is located; the first terminal determines the position information of the first user according to the altitude information, and the method comprises the following steps:
the first terminal acquires the floor height of a building where the first user is located;
and the first terminal calculates the floor number of the first user according to the altitude information and the floor height.
Optionally, the acquiring, by the first terminal, the floor height of the building where the first user is located includes:
the first terminal acquires the layer height input by the first user; or,
and the first terminal acquires the layer height from a server.
Optionally, the location information of the first user includes altitude information of the first user; the first terminal determines the position information of the first user according to the altitude information, and the method comprises the following steps:
the first terminal determines altitude information of itself as the altitude information of the first user.
Optionally, before the first terminal determines the location information of the first user according to the altitude information, the method further includes:
the first terminal acquires longitude and latitude information of the first terminal;
correspondingly, the first terminal determines the position information of the first user according to the altitude information and the latitude and longitude information.
Optionally, the location information of the first user includes a location where the first user is located and a floor number; the first terminal determines the position information of the first user according to the altitude information and the latitude and longitude information, and the method comprises the following steps:
the first terminal determines the location of the first user according to the longitude and latitude information;
the first terminal acquires the floor height corresponding to the place;
and the first terminal determines the floor number of the first user according to the altitude information and the floor height corresponding to the place.
Optionally, the location information of the first user includes a location and altitude information of the first user; the first terminal determines the position information of the first user according to the altitude information and the latitude and longitude information, and the method comprises the following steps:
the first terminal determines the location of the first user according to the longitude and latitude information;
the first terminal determines altitude information of itself as the altitude information of the first user.
Optionally, the determining, by the first terminal, a location where the first user is located according to the latitude and longitude information includes:
and the first terminal sends the longitude and latitude information to a server and receives a place corresponding to the longitude and latitude information sent by the server.
Optionally, the obtaining, by the first terminal, the floor height corresponding to the location includes:
and the first terminal sends the place to a server and receives the layer height corresponding to the place sent by the server.
Optionally, the obtaining, by the first terminal, altitude information of the first terminal includes:
the first terminal acquires the actual altitude information of the first terminal; or,
the first terminal locally acquires preset altitude information from the first terminal; or,
and the first terminal locally acquires preset altitude information corresponding to the second user from the first terminal.
According to a second aspect of embodiments of the present disclosure, there is provided a position determination method, the method including:
a second terminal receives position information of a first user sent by a first terminal, wherein the first user is a user to which the first terminal belongs; the position information is sent when the first terminal judges that the second user is an authorized object; the second user is a user to which the second terminal belongs;
and the second terminal displays the position information of the first user.
Optionally, the location information of the first user includes altitude information of the first user; before the second terminal displays the location information of the first user, the method further includes:
the second terminal acquires the floor height of a building where the first user is located;
the second terminal calculates the floor number of the first user according to the altitude information and the floor height of the first user;
and the second terminal updates the altitude information of the first user in the position information of the first user by using the floor number of the first user.
Optionally, the acquiring, by the second terminal, the floor height of the building where the first user is located includes:
the second terminal acquires the floor height of the building where the first user is located from the server; or,
and the second terminal acquires the altitude information of the second terminal and the floor number of the second user, and calculates the floor height of the building of the first user according to the altitude information of the second terminal and the floor number of the second user.
According to a third aspect of the embodiments of the present disclosure, there is provided a position determination apparatus including an acquisition unit, a determination unit, and a transmission unit, wherein,
the acquisition unit is configured to acquire altitude information of the first terminal;
the determining unit is configured to determine the position information of the first user according to the altitude information acquired by the acquiring unit; the first user is a user to which the first terminal belongs;
the sending unit is configured to send the position information of the first user determined by the determining unit to a second terminal when judging that a second user is an authorized object, and the second terminal is a terminal used by the second user.
Optionally, the location information of the first user includes the number of floors where the first user is located; the determination unit includes:
a first obtaining subunit, configured to obtain a floor height of a building in which the first user is located;
and the calculating subunit is configured to calculate the number of floors where the first user is located according to the altitude information and the floor height.
Optionally, the obtaining subunit is specifically configured to:
acquiring the layer height input by the first user; or,
and acquiring the layer height from a server.
Optionally, the location information of the first user includes altitude information of the first user; the determining unit is specifically configured to: determining altitude information of a first terminal as altitude information of the first user.
Optionally, the obtaining unit is further configured to: acquiring longitude and latitude information of the first terminal;
correspondingly, the determining unit is specifically configured to: and determining the position information of the first user according to the altitude information and the latitude and longitude information.
Optionally, the location information of the first user includes a location where the first user is located and a floor number; the determination unit includes:
the first determining subunit is configured to determine the location of the first user according to the latitude and longitude information;
a second obtaining subunit, configured to obtain a layer height corresponding to the location;
and the second determining subunit is configured to determine the floor number where the first user is located according to the altitude information and the floor height corresponding to the location.
Optionally, the location information of the first user includes a location and altitude information of the first user; the determination unit includes:
the first determining subunit is configured to determine the location of the first user according to the latitude and longitude information;
a third determination subunit configured to determine altitude information of the first terminal as altitude information of the first user.
Optionally, the first determining subunit is specifically configured to: and sending the longitude and latitude information to a server, and receiving a place corresponding to the longitude and latitude information sent by the server.
Optionally, the second obtaining subunit is specifically configured to: and sending the place to a server, and receiving the layer height corresponding to the place sent by the server.
Optionally, the obtaining unit is specifically configured to: acquiring actual altitude information of the first terminal; or locally acquiring preset altitude information from the first terminal; or locally acquiring preset altitude information corresponding to the second user from the first terminal.
According to a fourth aspect of embodiments of the present disclosure, there is provided a position determination apparatus, the apparatus comprising: a receiving unit and a display unit, wherein,
the receiving unit is configured to receive position information of a first user sent by a first terminal, wherein the first user is a user to which the first terminal belongs; the position information is sent when the first terminal judges that the second user is an authorized object; the second user is a user to which the second terminal belongs;
the display unit is configured to display the position information of the first user.
Optionally, the location information of the first user includes altitude information of the first user; the device further comprises:
an acquisition unit configured to acquire a floor height of a building in which the first user is located;
the calculating unit is configured to calculate the number of floors where the first user is located according to the altitude information and the floor height of the first user;
and the updating unit is configured to update the altitude information of the first user in the position information of the first user by using the floor number where the first user is located.
Optionally, the obtaining unit is specifically configured to: acquiring the floor height of a building where the first user is located from a server; or acquiring the altitude information of the second terminal and the floor number of the second user, and calculating the floor height of the building of the first user according to the altitude information of the second terminal and the floor number of the second user.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps that a first terminal obtains altitude information of the first terminal, the first terminal determines position information of a first user according to the altitude information, the first user is a user to which the first terminal belongs, the first terminal sends the position information of the first user to a second terminal when the first terminal judges that a second user is an authorized object, and the second terminal is a terminal used by the second user, so that the position of the first user in a building can be determined according to the altitude information of the first terminal.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1A is a diagram illustrating an application scenario in accordance with an illustrative embodiment;
FIG. 1B is a schematic diagram of another application scenario shown in an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of position determination according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating another method of position determination according to an exemplary embodiment;
FIG. 4A is a flow chart illustrating another method of position determination according to an exemplary embodiment;
FIG. 4B is a flow chart illustrating another method of position determination according to an exemplary embodiment;
FIG. 5A is a flow chart illustrating another method of position determination according to an exemplary embodiment;
FIG. 5B is a flow chart illustrating another method of position determination according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating a position determining device in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a position determining device in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating an apparatus for a terminal to log into a remote server in accordance with an example embodiment;
fig. 9 is a schematic structural diagram of a server in an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1A is a diagram illustrating an example of a scenario in which the location determining method of the present disclosure is applied, which includes: a first terminal 110 and a second terminal 120; the first terminal 110 and the second terminal 120 are connected to communicate the relevant information in the location determination method of the present disclosure. The communication method between the first terminal 110 and the second terminal 120 is not limited, and may be, for example, communication via the internet, a local area network, or the like.
In a possible implementation manner, the disclosed location determining method may be more specifically applied to instant messaging tools of the first terminal 110 and the second terminal 120, such as chat, wechat, and the like, and at this time, the first terminal 110 and the second terminal 120 may communicate the relevant information in the disclosed location determining method through the instant messaging tools in the terminals. At this time, referring to fig. 1B, the first terminal 110 and the second terminal 120 may be connected to the server 130 of the instant messenger through the internet, and the information to be transmitted between the two terminals may be forwarded through the server 130 of the instant messenger.
In the present disclosure, a user using a first terminal is referred to as a first user, and a user using a second terminal is referred to as a second user, that is, the first user is a user to which the first terminal belongs, and the second user is a user to which the second terminal belongs. The first user and the second user in the present disclosure may be represented by a user identification. When the embodiment is applied to an instant messaging tool of a terminal, the user identifier may be implemented by a user name of a user in the instant messaging tool, for example, a user name of a first user in a chat of the instant messaging tool is: juli1, the first user identification may be: juli 1; the user name of the second user in the instant messaging tool is as follows: juli2, the second subscriber identity may be: juli 2.
In conjunction with the above-mentioned scene diagrams, the implementation of the location determination method of the present disclosure is further explained by the embodiments shown in fig. 2 to fig. 3.
Fig. 2 is a flow chart illustrating a method of position determination according to an exemplary embodiment, which may be applied to a first terminal side, as shown in fig. 2, and which includes the following steps.
In step S201, the first terminal acquires altitude information of the first terminal.
The first terminal obtains altitude information of the first terminal in various implementations, which are exemplified as follows:
in a possible implementation manner, a sensor capable of measuring the altitude information of the first terminal may be arranged in the first terminal in advance, and then the first terminal may directly acquire the actual altitude information of the first terminal through the arranged sensor. In this implementation manner, the first terminal may send the real location information of the first terminal to the second terminal, so that the second terminal can accurately determine the location of the first user.
In a second possible implementation manner, the first user may set a fixed value in the first terminal in advance as the altitude information of the first terminal, for example, 10m or 20m, and so on, and then the first terminal may locally acquire the preset altitude information of the first terminal from the first terminal. In this implementation, the location information of the second user determined by the first terminal is obtained according to the fixed value, that is, the location information of the first user determined by the first terminal is the location information that the first user wants the other users to obtain, and may not be the true location information of the first user, and when the first user does not want the other users to obtain the true location information of the first user, the implementation can protect the privacy of the first user.
In a third possible implementation manner, the first user may set, in the first terminal, altitude information corresponding to each authorized object in advance, where the altitude information corresponding to different authorized objects may be the same or different, for example, it is assumed that the authorized objects include: user 1 to user 5, the first user setting: the altitude information corresponding to the users 1-2 is real altitude information, the altitude information corresponding to the users 3 and 4 is 10m, and the altitude information corresponding to the user 5 is 0 m; then, in this step, the second terminal may locally obtain preset altitude information corresponding to the first user from the second terminal, for example, the second user is user 1, in this step, the first terminal obtains the actual altitude information of the first terminal, the second user is user 3, in this step, the first terminal obtains the altitude information 10m corresponding to user 3, and so on. The third implementation mode combines the first implementation mode and the second implementation mode, so that each user can obtain the position information of the first user according to the intention of the first user, and only part of users can obtain the real position information of the first user, thereby protecting the privacy of the first user.
The first terminal may acquire altitude information of the first terminal according to a variety of triggering conditions, for example, the triggering may be triggered when the first terminal receives a request about location information sent by the second terminal, or may be automatically triggered periodically by the first terminal. And, the implementation method of the trigger condition is various, for example, if the trigger condition is triggered when the first terminal receives a request about the location information sent by the second terminal, a trigger button may be preset in the second terminal, the trigger button may be implemented by software, and when the second user clicks the trigger button, the second terminal sends the request about the location information to the first terminal, thereby triggering the first terminal to acquire the altitude information of the first terminal. In a possible implementation manner, when the embodiment is applied to an instant messaging tool of a terminal, the trigger button may be specifically disposed in the instant messaging tool, and the disclosure is not limited to the specific position of the setting. For example, if the triggering condition is that the first terminal periodically and automatically triggers, a triggering period for acquiring the altitude information may be set in the first terminal in advance, and accordingly, the first terminal may periodically acquire the altitude information of the first terminal according to the triggering period.
In step S202, the first terminal determines the location information of the first user according to the altitude information.
The implementation manner of the position information of the first user is various. For example, the location information of the first user may include altitude information of the first user; or, the position information of the first user may include the number of floors where the first user is located; alternatively, the location information of the first user may include: the location of the first user and the altitude information of the first user; alternatively, the location information of the first user may include: the location of the first user and the number of floors the first user is located on; and so on.
In combination with the implementation possibility of the above location information, the possible implementation of this step is as follows:
in a first possible implementation, if the location information of the first user includes altitude information of the first user; this step may include:
the first terminal determines altitude information of the first terminal itself as altitude information of the first user.
In a second possible implementation manner, if the location information of the first user includes the number of floors where the first user is located; this step may include:
the method comprises the steps that a first terminal obtains the floor height of a building where a first user is located;
and the first terminal calculates the floor number of the first user according to the altitude information and the floor height.
Wherein the floor height may be used to indicate the floor height of each floor of the building in which the first user is located.
The floor height may be input into the first terminal by the first user, and in this case, the obtaining, by the first terminal, the floor height of the building where the first user is located may include: the first terminal acquires the floor height input by the first user as the floor height of a building where the first user is located;
alternatively, the floor height may be obtained by the first terminal from a server. At this time, the server may preset information of floor heights of different buildings, and the acquiring, by the first terminal, the floor height of the building where the first user is located may include: the first terminal acquires information of a building where the first user is located, the information of the building where the first user is located is sent to the server, the floor height sent by the server is received, and the floor height sent by the server is searched and obtained according to the information of the building where the first user is located. The information about the building in which the first user is located may be input into the first terminal by the first user, and the obtaining, by the first terminal, the information about the building in which the first user is located may include: the first terminal acquires the building information input by the first user as the information of the building where the first user is located.
In a third possible implementation manner, the location information of the first user may include a location and altitude information of the first user, and then in step S201, the first terminal obtains longitude and latitude information of the first terminal in addition to the altitude information, where this step may include:
the first terminal determines the location of the first user according to the latitude and longitude information of the first terminal;
the first terminal determines altitude information of the first terminal itself as altitude information of the first user.
The determining, by the first terminal, the location of the first user according to the longitude and latitude information of the first terminal may include:
and the first terminal sends the longitude and latitude information to a server and receives a place corresponding to the longitude and latitude information sent by the server. At this time, the server receives the longitude and latitude information, can search a place corresponding to the received longitude and latitude information, and sends the searched place to the first terminal.
Or, the latitude and longitude information of different locations may be set in the first terminal in advance, and the first terminal may directly find the location corresponding to the latitude and longitude information of the first terminal according to the information set in advance in the first terminal itself as the location where the first user is located.
In a fourth possible implementation manner, the location information of the first user may include a location where the first user is located and a floor number, and then in step S201, the first terminal obtains the longitude and latitude information of the first terminal in addition to the altitude information, where this step may include:
the first terminal determines the location of the first user according to the longitude and latitude information;
the first terminal acquires the floor height corresponding to the place;
and the first terminal determines the floor number of the first user according to the altitude information of the first terminal and the floor height corresponding to the place.
The implementation of determining, by the first terminal, the location of the first user according to the latitude and longitude information may refer to the related description in the third possible implementation manner, which is not described herein again.
The step of setting the floor height corresponding to the different location in the server in advance may include the step of the first terminal acquiring the floor height corresponding to the location:
and the first terminal sends the place to a server and receives the layer height corresponding to the place sent by the server.
Or, the layer heights corresponding to the different locations may be set in the first terminal in advance, and the first terminal may search for the layer height corresponding to the location of the first user according to information set in the first terminal itself in advance.
The location may be a building, a position on a street, etc. When the place is a building, the corresponding floor height can be the floor height of each floor of the building; when the place is a certain position on a certain street, the corresponding floor height can be default, and correspondingly, the determined floor number of the first user can be 1 or default and the like.
In step S203, the first terminal sends the location information of the first user to the second terminal when determining that the second user is an authorized object.
The authorization object refers to a user authorized to obtain the location information of the first user from the first terminal. The authorization object may be preset in the first terminal, specifically, all users may be set as the authorization object by default by the system, or a user that can be the authorization object may be set autonomously by the first user. Specifically, when the location determining method of the present disclosure is applied to an instant messenger, all users in the instant messenger of the first user who contact the first user may be set as authorized objects, or a part of all users in the instant messenger who contact the first user may be designated as authorized objects by the first user, for example, it is assumed that the instant messenger has user 1, user 2, …, and user 6 in michat; then, users 1 to 6 may all be set as authorization objects by default, or some users, such as user 1, user 3, and user 5, may be designated as authorization objects by the first user.
When the authorization object is preset, the user identifier of each authorized user may be stored in the first terminal in advance, and in this step, the first terminal may search whether the pre-stored user identifier includes the second user identifier, if the second user identifier is included, the first terminal determines that the second user is the authorization object, and if the second user identifier is not included, the first terminal determines that the second user is not the authorization object.
In this disclosure, if the first terminal determines that the second user is not an authorized object, the first terminal may not send the location information of the first user to the second terminal.
In this step, the first terminal may further set different authorization time periods for different authorization objects besides determining that the second user is an authorization object, and this step may further include: and the second terminal judges that the current time is in the authorization time period corresponding to the first user. For example, assume that the authorization period set for the second user is: 10 to 12 points, if the current time is 10: and 30, the current time is in the authorization time period corresponding to the second user, and if the current time is 9 points, the current time is not in the authorization time period corresponding to the second user. At this time, if the first terminal determines that the current time is not within the authorization time period corresponding to the second user, the first terminal may not send the location information of the first user to the second terminal.
In this embodiment, the first terminal acquires altitude information of the first terminal, determines position information of the first user according to the altitude information, and sends the position information of the first user to the second terminal when the second user is determined to be an authorized object, so that the position of the first user in a building is determined.
Fig. 3 is a flow chart illustrating another position determination method according to an exemplary embodiment, which may be applied to a second terminal side, as shown in fig. 3, and which includes the following steps.
In step S301, the second terminal receives the location information of the first user sent by the first terminal, where the location information is sent when the first terminal determines that the second user is an authorized object.
If the position information that the second terminal wants to display is the number of floors where the first user is located, and the position information of the first user received by the second terminal includes the altitude information of the first user, or the location and the altitude information of the first user, an implementation step may further be included between step S301 and step S302, where the second terminal determines the number of floors where the first user is located according to the altitude information of the first user, and updates the altitude information of the first user in the position information of the first user by using the number of floors where the first user is located, for example, in a possible implementation manner, step S301 and step S302 may include:
the second terminal acquires the floor height of a building where the first user is located;
the second terminal calculates the number of floors where the first user is located according to the altitude information of the first user and the floor height;
and the second terminal updates the altitude information of the first user in the position information of the first user by using the floor number of the first user.
The second terminal acquiring the floor height of the building where the first user is located may include:
the second terminal locally acquires the floor height of a building where the first user is located from the second terminal; or,
the second terminal acquires the floor height of the building where the first user is located from the server; or,
the second terminal acquires the altitude information of the second terminal and the number of floors where the second user is located, and calculates the floor height of the building where the first user is located according to the altitude information of the second terminal and the number of floors where the second user is located, specifically, the floor height can be equal to the altitude information of the second terminal/the number of floors where the second user is located.
The above is only one implementation method for the second terminal to determine the floor number of the first user according to the altitude information of the first user, and the specific implementation for the second terminal to determine the floor number of the first user according to the altitude information of the first user may also be implemented by referring to the method for the first terminal to determine the floor number of the first user according to the altitude information of the first user, which is described in step S202, and is not described in detail here.
In step S302, the second terminal displays the location information of the first user.
In this embodiment, the second terminal receives and displays the location information of the first user sent by the first terminal, so that the second terminal cooperates with the first terminal to determine the location information of the first user.
Fig. 4A is a flow diagram illustrating another location determination method in accordance with an example embodiment in which location information of a first user may include: the number of floors where the first user is located; the method is particularly suitable for the situation that the second user knows the building where the first user is located but does not know the specific position of the first user in the building, and the first terminal indicates the real position information of the first user to the second terminal.
As shown in fig. 4A, the method includes the following steps.
In step S401, the first terminal acquires altitude information of the first terminal itself.
In this embodiment, this step can be implemented by the first implementation manner described in step S201.
In step S402, the first terminal determines the location information of the first user according to the altitude information of the first terminal.
For implementation of this step, please refer to the related description in step S202, which is not described herein.
In step S403, the second terminal sends a request for location information to the first terminal, the request including the second subscriber identity.
Wherein, the step is an optional step.
In step S404, the first terminal receives a request of the second terminal for altitude information, determines whether the second user is an authorized object according to a second user identifier included in the request, and if it is determined that the second user is not the authorized object, performs step S405, and if it is determined that the second user is the authorized object, performs step S406.
Here, the implementation of this step may refer to the related description in step S203, which is not described herein again.
In step S405, the first terminal sends a request failure response to the second terminal, and the second terminal prompts to the second user that the request for altitude information fails according to the request failure response; the flow branches to end.
Wherein, the second terminal may prompt the second user that the request for altitude information fails, and the disclosure is not limited thereto. For example, the second user may be prompted by a prompt box or the like that the request for altitude information failed.
In step S406, the first terminal transmits the location information of the first user to the second terminal.
In step S407, the second terminal receives the location information of the first user.
Here, the implementation of this step may refer to the related description in step S301, and is not described here again.
In step S408, the second terminal displays the location information of the first user.
The second terminal specifically displays the location information of the first user, and the disclosure is not limited thereto.
In this embodiment, for example, the location information of the first user includes the number of floors where the first user is located, if the location information of the first user includes the altitude information of the first user, an implementation step of determining, by the second terminal, the number of floors where the first user is located according to the altitude information of the first user and updating the altitude information of the first user in the location information of the first user by using the number of floors where the first user is located may also be included between step S407 and step S408, and for concrete implementation, reference is made to the relevant description in step S301, which is not repeated herein.
In this embodiment, the first terminal obtains the altitude information of the first terminal, determines the location information of the first user according to the altitude information, and sends the location information of the first user to the second terminal when the second user is determined to be an authorized object, thereby determining the location of the first user in the building.
Fig. 4B is a flow diagram illustrating another location determination method in accordance with an example embodiment in which location information of a first user may include: the number of floors where the first user is located; the method is particularly suitable for the situation that the second user knows the building where the first user is located but does not know the specific position of the first user in the building, and the first terminal indicates the position information of the first user to the second terminal differently according to the preset information of the first user.
As shown in fig. 4B, the method includes the following steps.
In step S411, the second terminal sends a request for location information to the first terminal, where the request includes the second subscriber identity.
Wherein, the step is an optional step.
In step S412, the first terminal receives a request of the second terminal for altitude information, determines whether the second user is an authorized object according to a second user identifier included in the request, performs step S413 if it is determined that the second user is not an authorized object, and performs step S414 if it is determined that the second user is an authorized object.
Here, the implementation of this step may refer to the related description in step S203, which is not described herein again.
In step S413, the first terminal sends a request failure response to the second terminal, and the second terminal prompts the second user that the request for the altitude information fails according to the request failure response; the flow branches to end.
Wherein, the second terminal may prompt the second user that the request for altitude information fails, and the disclosure is not limited thereto. For example, the second user may be prompted by a prompt box or the like that the request for altitude information failed.
In step S414, the first terminal obtains the altitude information of the first terminal itself according to the second user identifier.
In this embodiment, this step can be implemented by the second and third possible implementation manners described in step S201.
In step S415, the first terminal determines the location information of the first user according to the altitude information of the first terminal.
For implementation of this step, please refer to the related description in step S202, which is not described herein.
In step S416, the first terminal transmits the location information of the first user to the second terminal.
In step S417, the second terminal receives the location information of the first user.
Here, the implementation of this step may refer to the related description in step S301, and is not described here again.
In step S418, the second terminal displays the location information of the first user.
The second terminal specifically displays the location information of the first user, and the disclosure is not limited thereto.
In this embodiment, for example, the location information of the first user includes the number of floors where the first user is located, if the location information of the first user includes the altitude information of the first user, an implementation step of determining, by the second terminal, the number of floors where the first user is located according to the altitude information of the first user and updating the altitude information of the first user in the location information of the first user by using the number of floors where the first user is located may also be included between step S417 and step S418, and for concrete implementation, reference is made to the relevant description in step S301, which is not repeated herein.
In this embodiment, when the first terminal determines that the second user is an authorized object, the first terminal obtains altitude information corresponding to the second user, determines the position information of the first user according to the altitude information, and sends the position information of the first user to the second terminal, so that the position of the first user in a building is determined.
Fig. 5A is a flow diagram illustrating another location determination method in accordance with an example embodiment in which location information of a first user may include: the location and the altitude information of the first user; the method is particularly suitable for the case where the second user does not know the location of the first user at all and the first terminal indicates to the second terminal the true location information of the first user.
As shown in fig. 5A, the method includes the following steps.
In step S501, the first terminal acquires altitude information and latitude and longitude information of the first terminal itself.
In this embodiment, the first terminal may obtain the altitude information of the first terminal itself through the first implementation manner described in step S201.
Similar to the implementation of the first terminal in acquiring altitude information, when acquiring the longitude and latitude information of the first terminal, the first terminal may acquire the actual longitude and latitude information of the second terminal in a GPS or other manner. In this implementation manner, the second terminal may send the real location information of the second terminal to the second terminal, so that the second terminal can accurately determine the location where the first user is located.
In step S502, the first terminal determines the location information of the first user according to the altitude information and the latitude and longitude information of the first terminal.
For implementation of this step, please refer to the related description in step S202, which is not described herein.
In step S503, the second terminal sends a request for location information to the first terminal, the request including the second subscriber identity.
Wherein, the step is an optional step.
In step S504, the first terminal receives a request of the second terminal regarding altitude information and latitude and longitude information, determines whether the second user is an authorized object according to a second user identifier included in the request, and if it is determined that the second user is not the authorized object, performs step S505, and if it is determined that the second user is the authorized object, performs step S506.
Here, the implementation of this step may refer to the related description in step S203, which is not described herein again.
In step S505, the first terminal sends a request failure response to the second terminal, and the second terminal prompts the second user that the request for altitude information fails according to the request failure response; the flow branches to end.
Wherein, the second terminal may prompt the second user that the request for altitude information fails, and the disclosure is not limited thereto. For example, the second user may be prompted by a prompt box or the like that the request for altitude information failed.
In step S506, the first terminal transmits the location information of the first user to the second terminal.
In step S507, the second terminal receives the location information of the first user.
In step S508, the second terminal obtains the floor height of the building where the first user is located, calculates the number of floors where the first user is located according to the altitude information of the first user and the floor height, and updates the altitude information of the first user in the position information of the first user using the number of floors where the first user is located.
Here, the implementation of this step may refer to the related description in step S301, and is not described here again.
In step S509, the second terminal displays the location information of the first user.
The second terminal specifically displays the location information of the first user, and the disclosure is not limited thereto.
In this embodiment, the first terminal obtains the altitude information and the latitude and longitude information of the first terminal, determines the location information of the first user according to the altitude information and the latitude and longitude information, and sends the location information of the first user to the second terminal when the second user is determined to be an authorized object, so that the determination of the location of the first user in the building is realized.
Fig. 5B is a flow diagram illustrating another location determination method in accordance with an example embodiment in which location information of a first user may include: the location of the first user and the number of floors; the method is particularly suitable for the situation that the second user does not know the position of the first user at all, and the first terminal indicates the position information of the first user to the second terminal according to the preset information of the first user.
As shown in fig. 5B, the method includes the following steps.
In step S511, the second terminal sends a request for location information to the first terminal, the request including the second subscriber identity.
Wherein, the step is an optional step.
In step S512, the first terminal receives a request of the second terminal for altitude information and latitude and longitude information, determines whether the second user is an authorized object according to a second user identifier included in the request, and if the second user is not determined to be an authorized object, performs step S513, and if the second user is determined to be an authorized object, performs step S514.
Here, the implementation of this step may refer to the related description in step S203, which is not described herein again.
In step S513, the first terminal sends a request failure response to the second terminal, and the second terminal prompts to the second user that the request for altitude information fails according to the request failure response; the flow branches to end.
Wherein, the second terminal may prompt the second user that the request for altitude information fails, and the disclosure is not limited thereto. For example, the second user may be prompted by a prompt box or the like that the request for altitude information failed.
In step S514, the first terminal obtains the altitude information and the latitude and longitude information of the first terminal according to the second user identifier.
In this embodiment, the first terminal obtaining the altitude information of the first terminal according to the second user identifier may be implemented by the second and third possible implementation manners described in step S201.
Similar to the altitude information obtained by the first terminal, the implementation of the first terminal obtaining the latitude and longitude information in this step is as follows:
in a first possible implementation manner, the first user may set longitude and latitude information of a certain specified building in the first terminal in advance as the longitude and latitude information of the first terminal, and then the first terminal may locally acquire the preset longitude and latitude information directly from the first terminal. In this implementation, the location information acquired by the first terminal and sent to the second terminal is determined according to the longitude and latitude information preset by the first user, that is, the location where the first user is located and acquired by the second terminal is a location where the first user wishes to indicate to other users, but may not be the actual location of the first user, and when the first user does not wish to acquire the actual location information of the first user, the implementation can protect the privacy of the first user.
In a second possible implementation manner, the first user may set, in the first terminal, longitude and latitude information corresponding to each authorized object in advance, where the longitude and latitude information corresponding to different authorized objects may be the same or different, for example, it is assumed that the authorized objects include: user 1 to user 5, the first user setting: the longitude and latitude information corresponding to the users 1-2 is real altitude information, the longitude and latitude information corresponding to the users 3 and 4 is longitude and latitude information of the building 1, and the longitude and latitude information corresponding to the user 5 is longitude and latitude information of the building 2; then, in this step, the first terminal may locally obtain, from the first terminal, the preset longitude and latitude information corresponding to the second user, for example, the second user is user 1, in this step, the first terminal obtains the true longitude and latitude information of the first terminal, the second user is user 3, in this step, the first terminal obtains the longitude and latitude information of the building 1, and the like. The second implementation manner enables each user to obtain the location of the first user according to the intention of the first user, and only part of the users can obtain the real position information of the first user, so that the privacy of the first user can be protected.
In step S515, the first terminal determines location information of the first user according to altitude information and longitude and latitude information of the first terminal.
For implementation of this step, please refer to the related description in step S202, which is not described herein.
In step S516, the first terminal sends the location information of the first user to the second terminal.
In step S517, the second terminal receives the location information of the first user.
Here, the implementation of this step may refer to the related description in step S301, and is not described here again.
In step S518, the second terminal displays the location information of the first user.
The second terminal specifically displays the location information of the first user, and the disclosure is not limited thereto.
In this embodiment, taking the location information of the first user as an example, where the first user is located and the number of floors, if the location information of the first user includes the location and the altitude information of the first user, an implementation step may also be included between step S517 and step S518, where the second terminal determines the number of floors where the first user is located according to the altitude information of the first user, and updates the altitude information of the first user in the location information of the first user by using the number of floors where the first user is located, for concrete implementation, refer to the relevant descriptions in step S508 and step S301, which is not described herein again.
In this embodiment, when the first terminal determines that the second user is an authorized object, the altitude information and the latitude and longitude information corresponding to the second user are obtained, the position information of the first user is determined according to the altitude information and the latitude and longitude information, and the position information of the first user is sent to the second terminal, so that the determination of the position of the first user in a building is realized.
Fig. 6 is a schematic diagram illustrating a position determining apparatus according to an exemplary embodiment, the apparatus 600 includes an obtaining unit 610, a determining unit 620, and a transmitting unit 630, wherein,
the acquiring unit 610 is configured to acquire altitude information of the first terminal;
the determining unit 620 is configured to determine the position information of the first user according to the altitude information acquired by the acquiring unit 610; the first user is a user to which the first terminal belongs;
the sending unit 630 is configured to send the location information of the first user determined by the determining unit 620 to a second terminal when it is determined that a second user is an authorized object, where the second terminal is a terminal used by the second user.
Optionally, the location information of the first user includes the number of floors where the first user is located; the determining unit 620 may include:
a first obtaining subunit, configured to obtain a floor height of a building in which the first user is located;
and the calculating subunit is configured to calculate the number of floors where the first user is located according to the altitude information and the floor height.
Optionally, the obtaining subunit may be specifically configured to:
acquiring the layer height input by a first user; or,
and acquiring the layer height from a server.
Optionally, the location information of the first user includes altitude information of the first user; the determining unit 620 may be specifically configured to: determining altitude information of a first terminal as altitude information of the first user.
Optionally, the obtaining unit 610 may be further configured to: acquiring longitude and latitude information of the first terminal;
correspondingly, the determining unit 620 may be specifically configured to: and determining the position information of the first user according to the altitude information and the latitude and longitude information.
Optionally, the location information of the first user includes a location where the first user is located and a floor number; the determining unit 620 may include:
the first determining subunit is configured to determine the location of the first user according to the latitude and longitude information;
a second obtaining subunit, configured to obtain a layer height corresponding to the location;
and the second determining subunit is configured to determine the floor number where the first user is located according to the altitude information and the floor height corresponding to the location.
Optionally, the location information of the first user includes a location and altitude information of the first user; the determining unit 620 may include:
the first determining subunit is configured to determine the location of the first user according to the latitude and longitude information;
a third determination subunit configured to determine altitude information of the first terminal as altitude information of the first user.
Optionally, the first determining subunit may be specifically configured to: and sending the longitude and latitude information to a server, and receiving a place corresponding to the longitude and latitude information sent by the server.
Optionally, the second obtaining subunit may be specifically configured to: and sending the place to a server, and receiving the layer height corresponding to the place sent by the server.
Optionally, the obtaining unit 610 may be specifically configured to: acquiring actual altitude information of the first terminal; or locally acquiring preset altitude information from the first terminal; or locally acquiring preset altitude information corresponding to the second user from the first terminal.
In this embodiment, the device obtains the altitude information of the first terminal, determines the location information of the first user according to the altitude information, and sends the location information of the first user to the second terminal when the second user is determined to be an authorized object, thereby determining the location of the first user in a building.
Fig. 7 is a schematic diagram illustrating another position determining apparatus according to an example embodiment, the apparatus 700 may include: a receiving unit 710 and a display unit 720, wherein,
the receiving unit 710 is configured to receive location information of a first user sent by a first terminal, where the first user is a user to which the first terminal belongs; the position information is sent when the first terminal judges that the second user is an authorized object; the second user is a user to which the second terminal belongs;
the display unit 720 is configured to display the location information of the first user.
Optionally, the location information of the first user includes altitude information of the first user; the apparatus may further include:
an acquisition unit configured to acquire a floor height of a building in which the first user is located;
the calculating unit is configured to calculate the number of floors where the first user is located according to the altitude information and the floor height of the first user;
and the updating unit is configured to update the altitude information of the first user in the position information of the first user by using the floor number where the first user is located.
Optionally, the obtaining unit may be specifically configured to: acquiring the floor height of a building where the first user is located from a server; or acquiring the altitude information of the second terminal and the floor number of the second user, and calculating the floor height of the building of the first user according to the altitude information of the second terminal and the floor number of the second user.
In this embodiment, the device receives and displays the location information of the first user sent by the first terminal, so that the device cooperates with the first terminal to determine the location information of the first user.
Fig. 8 is a block diagram illustrating an apparatus 800 for displaying contact information in accordance with an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a client or server, enable the client or server to perform a method of position determination, the method comprising:
a first terminal acquires altitude information of the first terminal;
the first terminal determines the position information of a first user according to the altitude information; the first user is a user to which the first terminal belongs;
and when the first terminal judges that the second user is an authorized object, the first terminal sends the position information of the first user to the second terminal, and the second terminal is a terminal used by the second user.
Another non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a client or server, enable the client or server to perform a method of position determination, the method comprising:
the method comprises the steps that a second terminal receives position information of a first user sent by a first terminal, wherein the first user is a user to which the first terminal belongs; the position information is sent when the first terminal judges that the second user is an authorized object; the second user is a user to which the second terminal belongs;
the second terminal displays the location information of the first user.
Fig. 9 is a schematic structural diagram of a server in an embodiment of the present disclosure. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (20)
1. A method of position determination, the method comprising:
when a first terminal judges that a second user is a first preset authorized object, acquiring first altitude information of the first terminal, wherein the first altitude information is altitude information of a first user, and the first user is a user to which the first terminal belongs;
the first terminal determines the position information of the first user according to the first altitude information;
the first terminal sends the position information of the first user to a second terminal, and the second terminal is a terminal used by the second user;
the first terminal acquires second altitude information which is locally acquired from the first terminal and is preset when a second user is judged to be a second preset authorized object;
and the first terminal sends the second altitude information to a second terminal, and the second terminal is a terminal used by the second user.
2. The method of claim 1, wherein the location information of the first user comprises a number of floors the first user is located on; the first terminal determines the position information of a first user according to the first altitude information, and the method comprises the following steps:
the first terminal acquires the floor height of a building where the first user is located;
and the first terminal calculates the floor number of the first user according to the first altitude information and the floor height.
3. The method of claim 2, wherein the obtaining, by the first terminal, the floor height of the building in which the first user is located comprises:
the first terminal acquires the layer height input by the first user; or,
and the first terminal acquires the layer height from a server.
4. The method of claim 1, wherein the location information of the first user comprises altitude information of the first user; the first terminal determines the position information of a first user according to the first altitude information, and the method comprises the following steps:
the first terminal determines first altitude information of the first terminal as altitude information of the first user.
5. The method of claim 1, wherein before the first terminal determines the location information of the first user based on the first altitude information, the method further comprises:
the first terminal acquires longitude and latitude information of the first terminal;
correspondingly, the first terminal determines the position information of the first user according to the first altitude information and the latitude and longitude information.
6. The method of claim 5, wherein the location information of the first user comprises a location of the first user and a floor number; the first terminal determines the position information of the first user according to the first altitude information and the latitude and longitude information, and the method comprises the following steps:
the first terminal determines the location of the first user according to the longitude and latitude information;
the first terminal acquires the floor height corresponding to the place;
and the first terminal determines the floor number of the first user according to the first altitude information and the floor height corresponding to the location.
7. The method of claim 5, wherein the location information of the first user comprises a location and an altitude information of the first user; the first terminal determines the position information of the first user according to the first altitude information and the latitude and longitude information, and the method comprises the following steps:
the first terminal determines the location of the first user according to the longitude and latitude information;
the first terminal determines first altitude information of the first terminal as altitude information of the first user.
8. The method according to claim 6 or 7, wherein the determining, by the first terminal, the location of the first user according to the latitude and longitude information comprises:
and the first terminal sends the longitude and latitude information to a server and receives a place corresponding to the longitude and latitude information sent by the server.
9. The method according to claim 6, wherein the obtaining, by the first terminal, the floor height corresponding to the location comprises:
and the first terminal sends the place to a server and receives the layer height corresponding to the place sent by the server.
10. The method of claim 1, wherein the second altitude information is altitude information set according to the second user.
11. A position determination apparatus, characterized in that the apparatus comprises a first acquisition unit, a determination unit and a first transmission unit, a second acquisition unit and a second transmission unit, wherein,
the first obtaining unit is configured to obtain first altitude information of a first terminal when a second user is judged to be a first preset authorized object, wherein the first altitude information is altitude information of a first user, and the first user is a user to which the first terminal belongs;
the determination unit is configured to determine the position information of the first user according to the altitude information acquired by the acquisition unit;
the first sending unit is configured to send the position information of the first user determined by the determining unit to a second terminal, and the second terminal is a terminal used by the second user;
the second obtaining unit is configured to obtain second altitude information which is preset locally from the first terminal when the second user is judged to be a second preset authorized object;
the second transmitting unit is configured to transmit the second altitude information to a second terminal, which is a terminal used by the second user.
12. The apparatus of claim 11, wherein the location information of the first user comprises a number of floors the first user is located on; the determination unit includes:
a first obtaining subunit, configured to obtain a floor height of a building in which the first user is located;
and the calculating subunit is configured to calculate the number of floors where the first user is located according to the first altitude information and the floor height.
13. The apparatus of claim 12, wherein the acquisition subunit is specifically configured to:
acquiring the layer height input by the first user; or,
and acquiring the layer height from a server.
14. The apparatus of claim 11, wherein the location information of the first user comprises altitude information of the first user; the determining unit is specifically configured to: determining first altitude information of a first terminal as altitude information of the first user.
15. The apparatus of claim 11, wherein the obtaining unit is further configured to: acquiring longitude and latitude information of the first terminal;
correspondingly, the determining unit is specifically configured to: and determining the position information of the first user according to the first altitude information and the latitude and longitude information.
16. The apparatus of claim 15, wherein the location information of the first user comprises a location of the first user and a floor number; the determination unit includes:
the first determining subunit is configured to determine the location of the first user according to the latitude and longitude information;
a second obtaining subunit, configured to obtain a layer height corresponding to the location;
and the second determining subunit is configured to determine the floor number where the first user is located according to the first altitude information and the floor height corresponding to the location.
17. The apparatus of claim 15, wherein the location information of the first user comprises a location and an altitude information of the first user; the determination unit includes:
the first determining subunit is configured to determine the location of the first user according to the latitude and longitude information;
a third determining subunit configured to determine first altitude information of the first terminal as altitude information of the first user.
18. The apparatus according to claim 16 or 17, wherein the first determining subunit is specifically configured to: and sending the longitude and latitude information to a server, and receiving a place corresponding to the longitude and latitude information sent by the server.
19. The apparatus according to claim 16, wherein the second acquisition subunit is specifically configured to: and sending the place to a server, and receiving the layer height corresponding to the place sent by the server.
20. The apparatus of claim 11, wherein the second altitude information is altitude information set according to the second user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410436995.6A CN105472726B (en) | 2014-08-29 | 2014-08-29 | Position determination method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410436995.6A CN105472726B (en) | 2014-08-29 | 2014-08-29 | Position determination method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105472726A CN105472726A (en) | 2016-04-06 |
CN105472726B true CN105472726B (en) | 2020-06-02 |
Family
ID=55609880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410436995.6A Active CN105472726B (en) | 2014-08-29 | 2014-08-29 | Position determination method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105472726B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106441335A (en) * | 2016-10-14 | 2017-02-22 | 深圳天珑无线科技有限公司 | Vehicle navigation method and vehicle navigation device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102595310A (en) * | 2012-01-19 | 2012-07-18 | 中国联合网络通信集团有限公司 | Method for sharing geographical position between mobile terminals, presence server and mobile terminal |
CN103376107A (en) * | 2012-04-27 | 2013-10-30 | 日立民用电子株式会社 | Positional information providing system, navigation system, and terminal device |
CN103787159A (en) * | 2014-02-03 | 2014-05-14 | 王浩 | Intelligent elevator scheduling system based on big data and cloud computing |
CN103874200A (en) * | 2014-03-19 | 2014-06-18 | 北京邮电大学 | Floor recognition method and system |
-
2014
- 2014-08-29 CN CN201410436995.6A patent/CN105472726B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102595310A (en) * | 2012-01-19 | 2012-07-18 | 中国联合网络通信集团有限公司 | Method for sharing geographical position between mobile terminals, presence server and mobile terminal |
CN103376107A (en) * | 2012-04-27 | 2013-10-30 | 日立民用电子株式会社 | Positional information providing system, navigation system, and terminal device |
CN103787159A (en) * | 2014-02-03 | 2014-05-14 | 王浩 | Intelligent elevator scheduling system based on big data and cloud computing |
CN103874200A (en) * | 2014-03-19 | 2014-06-18 | 北京邮电大学 | Floor recognition method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105472726A (en) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2640646C2 (en) | Method and device for cloud card transmission | |
EP3113466B1 (en) | Method and device for warning | |
CN106970640B (en) | Unmanned aerial vehicle flight control forbidding method and device | |
US10292004B2 (en) | Method, device and medium for acquiring location information | |
US20160295625A1 (en) | Method and apparatus for network access | |
US10064000B2 (en) | Method, apparatus, and storage medium for acquiring terminal information | |
EP3076632B1 (en) | Method and apparatus for accessing a network | |
EP3136699A1 (en) | Method and device for connecting external equipment | |
CN108173744B (en) | Information processing method and device | |
CN109314913B (en) | Access control limiting method and device | |
EP3125615A1 (en) | Method, apparatus and system for smart device to access router | |
EP3026876A1 (en) | Method for acquiring recommending information, terminal and server | |
CN105911573A (en) | Aerial device retrieving method and device | |
CN104219625A (en) | Position information processing method, device and mobile terminal | |
US10111026B2 (en) | Detecting method and apparatus, and storage medium | |
CN106533907B (en) | Information sending method and device | |
CN105282295A (en) | Candidate contact recommendation method and device | |
EP2950242A1 (en) | Method and apparatus for determining position | |
EP2985697A1 (en) | Method and device for controlling router plug-in | |
CN105472726B (en) | Position determination method and device | |
US9674768B2 (en) | Method and device for accessing wireless network | |
CN106028277A (en) | Reminding message processing method and apparatus | |
CN106161808B (en) | Method and device for updating information of telephone number, terminal equipment and server | |
US10193991B2 (en) | Methods and apparatuses for providing information of video capture device | |
US10110735B2 (en) | Method and apparatus for prompting message on battery level |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200422 Address after: No.018, floor 8, building 6, yard 33, middle Xierqi Road, Haidian District, Beijing 100085 Applicant after: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd. Applicant after: Xiaomi Technology Co.,Ltd. Address before: 100085, Haidian District, Beijing Qinghe Street No. 68, Huarun colorful city shopping center two, 13 layers Applicant before: Xiaomi Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |