CN111751861B - Building entrance detection method and mobile terminal - Google Patents

Building entrance detection method and mobile terminal Download PDF

Info

Publication number
CN111751861B
CN111751861B CN201910853565.7A CN201910853565A CN111751861B CN 111751861 B CN111751861 B CN 111751861B CN 201910853565 A CN201910853565 A CN 201910853565A CN 111751861 B CN111751861 B CN 111751861B
Authority
CN
China
Prior art keywords
positioning
entrance
current
mobile terminal
building
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
CN201910853565.7A
Other languages
Chinese (zh)
Other versions
CN111751861A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201910853565.7A priority Critical patent/CN111751861B/en
Publication of CN111751861A publication Critical patent/CN111751861A/en
Application granted granted Critical
Publication of CN111751861B publication Critical patent/CN111751861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/48Determining position by combining or switching between position solutions derived from the satellite radio beacon positioning system and position solutions derived from a further system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Navigation (AREA)

Abstract

The invention discloses a building entrance detection method and a mobile terminal, wherein the method comprises the following steps: in the process of entering and exiting a building, the mobile terminal acquires positioning information by using a GPS; judging whether the GPS positioning precision variation difference value in unit time is greater than or equal to a preset threshold value or not by taking the acquired positioning information as a basis; when the GPS positioning accuracy change difference is larger than or equal to a preset threshold value, determining that the position of the mobile terminal is the current entrance of the building, and acquiring coordinate information of the current entrance; the entrance of the building is automatically identified, and a good basis is provided for positioning accuracy.

Description

Building entrance detection method and mobile terminal
Technical Field
The invention relates to the technical field of positioning, in particular to a building entrance detection method and a mobile terminal.
Background
The entrance of the building is an indoor and outdoor boundary area, and the entrance of the building needs to be clearly marked on a map during positioning, so that the coordinates of the entrance of the building need to be determined and marked on the map. At present, most indoor and outdoor judgment methods are single-point judgment, and judgment and identification are generally carried out by utilizing some difference characteristics of indoor and outdoor, such as light stroboflash, geomagnetism and the like, but the judgment methods are poor in performance at building entrance, and the indoor and outdoor areas are often not separated, so that the entrance position of the building cannot be accurately found, and the positioning accuracy is influenced.
Disclosure of Invention
The embodiment of the invention discloses a building entrance detection method and a mobile terminal, which are used for detecting a building entrance and providing a basis for positioning accuracy.
In a first aspect of an embodiment of the present invention, a method for detecting a building entrance may include:
acquiring Positioning information by using a Global Positioning System (GPS) in the process of entering and exiting a building by the mobile terminal;
judging whether the GPS positioning precision variation difference value in unit time is greater than or equal to a preset threshold value or not by taking the acquired positioning information as a basis;
and when the GPS positioning precision variation difference is larger than or equal to the preset threshold, determining that the position of the mobile terminal is the current entrance of the building, and acquiring the coordinate information of the current entrance.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, when the GPS positioning accuracy variation difference is greater than or equal to the preset threshold, after determining that the location of the mobile terminal is located at a current entrance of the building and acquiring coordinate information of the current entrance, the method further includes:
sending a positioning request carrying the coordinate information to a positioning engine server, so that the positioning engine server indicates the position of the current entrance in a current positioning map of the mobile terminal according to the coordinate information;
and receiving a current positioning map which indicates the position of the current entrance and is returned by the positioning engine server, and outputting and displaying the current positioning map.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the sending a location request carrying the coordinate information to a location engine server, so that the location engine server indicates the location of the current entry in a current location map of the mobile terminal according to the coordinate information includes:
sending a positioning request carrying the coordinate information to a positioning engine server, so that the positioning engine server obtains a target entrance name corresponding to the current entrance of the building according to the incidence relation between the entrance name and the longitude and latitude information of the building, and indicates the position of the current entrance on a current positioning map of the mobile terminal and correspondingly marks the target entrance name;
the receiving and outputting a current positioning map indicating the position of the current entrance returned by the positioning engine server for display comprises:
and receiving, outputting and displaying a current positioning map which indicates that the current entrance position and the corresponding marked target entrance name are returned by the positioning engine server.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the obtaining of the coordinate information of the current portal, the method further includes:
judging whether the target entrance name corresponding to the current entrance is found or not according to the pre-stored incidence relation between the entrance name of the building and the latitude and longitude information;
when the target entry name is not found, the step of sending the positioning request carrying the coordinate information to a positioning engine server is executed;
and when the target entrance name is found, sending a positioning request carrying the coordinate information and the target entrance name to the positioning engine server, so that the positioning engine server indicates the position of the current entrance and marks the target entrance name correspondingly on a current positioning map of the mobile terminal.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:
acquiring the current longitude and latitude coordinates of the mobile terminal in the process of entering and exiting a building;
judging whether a target entrance position corresponding to the current longitude and latitude coordinates is found or not according to a pre-stored corresponding relation between the entrance position of the building and the longitude and latitude coordinates;
when the target entry position is found, indicating the target entry position in a current positioning map of the mobile terminal according to the current longitude and latitude coordinates;
and when the target entrance position is not found, executing the step of acquiring the positioning information by using a Global Positioning System (GPS).
A second aspect of an embodiment of the present invention discloses a mobile terminal, which may include:
the acquisition unit is used for acquiring positioning information by utilizing a Global Positioning System (GPS) in the process that the mobile terminal enters and exits a building;
the judging unit is used for judging whether the GPS positioning precision variation difference value in unit time is greater than or equal to a preset threshold value or not according to the acquired positioning information;
and the determining unit is used for determining that the position of the mobile terminal is the current entrance of the building and acquiring the coordinate information of the current entrance when the judging unit judges that the positioning precision variation difference is greater than or equal to the preset threshold.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the mobile terminal further includes:
a communication unit, configured to, when the determining unit determines that the positioning accuracy variation difference is greater than or equal to the preset threshold, and determines that the location of the mobile terminal is located at a current entrance of the building, and after obtaining coordinate information of the current entrance, send a positioning request carrying the coordinate information to a positioning engine server, so that the positioning engine server indicates the location of the current entrance in a current positioning map of the mobile terminal according to the coordinate information; receiving a current positioning map which indicates the position of the current entrance and is returned by the positioning engine server;
a display unit for outputting a current positioning map indicating a position of the current portal on the mobile terminal.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the coordinate information is latitude and longitude coordinate information, and the communication unit is configured to send a positioning request carrying the coordinate information to a positioning engine server, so that a manner that the positioning engine server indicates the position of the current portal in a current positioning map of the mobile terminal according to the coordinate information is specifically:
the communication unit is used for sending a positioning request carrying the coordinate information to a positioning engine server, so that the positioning engine server obtains a target entrance name corresponding to a current entrance of the building according to the incidence relation between the entrance name and the latitude and longitude information of the building, indicates the position of the current entrance on a current positioning map of the mobile terminal and correspondingly marks the target entrance name;
the manner of the communication unit being used for receiving the current positioning map indicating the position of the current entrance returned by the positioning engine server is specifically:
the communication unit is used for receiving a current positioning map which indicates that the position of the current entrance and the name of the corresponding marked target entrance are returned by the positioning engine server;
the manner of the display unit being used for outputting the current positioning map indicating the position of the current entrance on the mobile terminal is specifically as follows:
and the display unit is used for outputting the position of the current entrance and the current positioning map correspondingly marked with the name of the target entrance on the mobile terminal.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the determining unit is further configured to, after the determining unit obtains the coordinate information of the current entrance, determine whether to find the name of the target entrance corresponding to the current entrance based on a pre-stored association between an entrance name and latitude and longitude information of the building; when the judging unit determines that the target entry name is not found, triggering the communication unit to execute the step of sending the positioning request carrying the coordinate information to a positioning engine server;
the communication unit is further configured to send a location request carrying the coordinate information and the target entry name to the location engine server when the determining unit determines that the target entry name is found, so that the location engine server indicates the location of the current entry and marks the target entry name correspondingly on a current location map of the mobile terminal.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the mobile terminal further includes: an indication unit;
the obtaining unit is further used for obtaining the current longitude and latitude coordinates of the mobile terminal in the process of entering and exiting the building;
the judging unit is further configured to judge whether a target entrance position corresponding to the current longitude and latitude coordinate is found according to a pre-stored correspondence between the entrance position of the building and the longitude and latitude coordinate; and triggering the acquisition unit to execute the step of acquiring the positioning information by utilizing the Global Positioning System (GPS) when the target entrance position is determined not to be found.
And the indicating unit is used for indicating the target entrance position in a current positioning map of the mobile terminal according to the current longitude and latitude coordinates when the target entrance position is found.
A third aspect of an embodiment of the present invention discloses a mobile terminal, which may include:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the building entrance detection method disclosed by the first aspect of the embodiment of the invention.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium storing a computer program, where the computer program causes a computer to execute the method for detecting a building entrance disclosed in the first aspect of the embodiments of the present invention.
A fifth aspect of embodiments of the present invention discloses a computer program product, which, when run on a computer, causes the computer to perform some or all of the steps of any one of the methods of the first aspect.
A sixth aspect of the present embodiment discloses an application publishing platform, where the application publishing platform is configured to publish a computer program product, where the computer program product is configured to, when running on a computer, cause the computer to perform part or all of the steps of any one of the methods in the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, in the process of moving the mobile terminal in and out of the building, the positioning information is further acquired through the GPS, then whether the positioning precision variation difference value in unit time is greater than or equal to the preset threshold value is judged, and if the judgment result is yes, the position of the mobile terminal is determined to be the current entrance of the building.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a building entrance detection method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a method for detecting a building entrance according to another embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a method for detecting a building entrance according to another embodiment of the present invention;
FIG. 4 is a schematic diagram of a GPS positioning accuracy variation curve during entrance and exit of a building according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the disclosure;
fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the disclosure;
fig. 7 is a schematic structural diagram of a mobile terminal according to another embodiment of the disclosure;
fig. 8 is a schematic structural diagram of a mobile terminal according to another embodiment of the disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides a building entrance detection method, which is used for automatically and accurately detecting a building entrance by a mobile terminal and providing a good basis for positioning accuracy. The embodiment of the invention also correspondingly provides the mobile terminal.
A mobile terminal may refer to, among other things, a device providing voice, video, or data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. A mobile terminal, which may be a mobile terminal such as a mobile telephone (or "cellular" telephone) and a computer having mobile terminal characteristics, such as a portable, pocket, hand-held, computer-included, or vehicle-mounted mobile device, may communicate with one or more core networks via a Radio Access Network (RAN), which may exchange speech and/or data with the RAN. For example, personal Communication Service (PCS) phones, cordless phones, session Initiation Protocol (SIP) phones, wireless Local Loop (WLL) stations, personal Digital Assistants (PDAs), and the like. A mobile terminal may also be called a system, a Subscriber Unit (SU), a Subscriber Station (SS), a Mobile Station (MS), a Remote Station (RS), an Access Point (AP), a remote device (RT), an Access Terminal (AT), a User Terminal (UT), a User Agent (UA), a User Equipment (UE), or a User Equipment (UE). Or the mobile terminal may also be a wearable device, such as a smart watch, smart bracelet, or the like.
Further, the operating system of the mobile terminal includes, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Black Berry operating system, a Windows Phone8 operating system, and the like.
The following describes the technical solution of the present invention in detail with reference to specific embodiments from the perspective of a mobile terminal.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for detecting a building entrance according to an embodiment of the present invention; as shown in fig. 1, the method for detecting the entrance of the building may include:
101. and the mobile terminal acquires positioning information by using a GPS in the process of entering and exiting the building.
The positioning information may be a positioning message, and at least includes the number of satellites, signal strength, satellite distribution information, and the like.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a GPS positioning accuracy variation curve during entrance and exit of a building according to an embodiment of the present invention. As can be seen from fig. 4, if the GPS positioning accuracy continuously changes with the change of the distance from the indoor space during the process of continuously positioning the building (indoor) by the GPS outside (outdoor), when the building (outdoor), the GPS signal is shielded less, the positioning accuracy is higher, and the positioning accuracy starts to change greatly at the inflection point of the building entrance position, and after passing through the building entrance position, the GPS positioning accuracy continuously decreases until the GPS signal is not searched. The process of continuously positioning from inside (indoor) to outside (outdoor) of the building through the GPS is just opposite to the above process, and specifically, the GPS positioning accuracy variation curve shown in fig. 4 can be referred to.
Based on the above description, implementation scenarios of the embodiments of the present invention include, but are not limited to, the following two types:
a1: a tester carries the mobile terminal to go in and out of a building and detect a building entrance so as to establish a building entrance fingerprint library and provide a good basis for accurately positioning the building entrance. Optionally, the mobile terminal starts a certain positioning software (such as a Baidu map, a Gade map, or a Google map) for positioning under the operation of the user, and further continuously acquires positioning information by using a GPS after the mobile terminal is positioned to the building.
A2: the user can open the function of automatically identifying the building entrance when in daily positioning or daily use, and can automatically identify the building entrance when the user goes in and out of the building entrance, so that an accuracy basis is provided for positioning the user.
With reference to the above description, further optionally, the obtaining, by the mobile terminal, the positioning information by using the GPS in the process of entering or exiting the building specifically may include: after the mobile terminal is positioned to a building, positioning information is acquired by using a GPS. In this embodiment, when a building is located, the positioning information can be continuously acquired by the GPS at a high speed to perform building entrance detection. For example, when the destination of the navigation is a building, after the building is located, the building has arrived near or at the entrance, and the GPS is used to perform building entrance location, so as to accurately detect the building entrance by using the characteristic that the GPS has a large change in location accuracy at the building entrance.
102. And the mobile terminal judges whether the positioning precision variation difference value in unit time is greater than or equal to a preset threshold value or not according to the acquired positioning information. When the positioning precision variation difference is greater than or equal to the preset threshold, turning to step 103; and when the positioning precision variation difference value is smaller than the preset threshold value, ending the process.
As can be seen from fig. 4, the GPS positioning accuracy changes greatly at the corner of the building entrance position, and according to this feature, in the embodiment of the present invention, a reasonable unit time may be preset, and the minimum variation difference of the GPS positioning accuracy at the building entrance position may be measured through a mass experiment and used as the preset threshold. Therefore, in the embodiment of the invention, the positioning information is continuously acquired through the GPS, and if the GPS positioning precision variation difference value in unit time is greater than or equal to the preset threshold value, the mobile terminal is positioned at the entrance position of the building, so that the entrance position of the building can be automatically identified through the mobile terminal.
As an optional implementation manner, the determining, by the mobile terminal, whether the difference of the positioning accuracy change in the unit time is greater than or equal to a preset threshold based on the obtained positioning information may specifically include: and the mobile terminal calculates a GPS positioning accuracy value according to the positioning information.
103. And the mobile terminal determines the position as the current entrance of the building and acquires the coordinate information of the current entrance.
And the coordinate information of the current entrance is longitude and latitude coordinate information.
Optionally, the mobile terminal acquires a building entrance name corresponding to the coordinate information, and then stores the coordinate indicated by the coordinate information and the target building entrance name in association with each other in a building entrance fingerprint database.
Further optionally, after obtaining the coordinate information, the mobile terminal sends the coordinate information to the positioning engine server, and the positioning engine server finds information of the target building according to the building name, obtains a building entrance name corresponding to the coordinate information, and then stores the coordinate indicated by the coordinate information and the building entrance name in the building entrance fingerprint library in an associated manner.
By implementing the embodiment of the invention, the entrance of the building can be automatically identified by utilizing the characteristic that the positioning accuracy of the GPS is influenced when the GPS passes through the entrance of the building, so as to establish the entrance fingerprint library of the building and provide a good basis for the positioning accuracy.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a method for detecting a building entrance according to another embodiment of the present invention; as shown in fig. 2, the method for detecting the entrance of the building may include:
201. and the mobile terminal acquires positioning information by using a GPS in the process of entering and exiting the building.
202. And the mobile terminal judges whether the positioning precision variation difference value in unit time is greater than or equal to a preset threshold value or not according to the acquired positioning information. When the positioning accuracy variation difference is greater than or equal to the preset threshold, turning to step 203; and when the positioning precision variation difference value is smaller than the preset threshold value, ending the process.
203. And the mobile terminal determines the position as the current entrance of the building and acquires the coordinate information of the current entrance.
For more descriptions of steps 201-203, refer to the descriptions of steps 101-103 in the first embodiment, which are not repeated herein.
As an optional implementation manner, after acquiring the coordinate information of the current entrance, the mobile terminal determines whether to find a target entrance name corresponding to the current entrance based on a pre-stored association relationship between the entrance name of the building and the latitude and longitude information; when the target entry name is not found, executing step 204; and when the target entrance name is found, sending a positioning request carrying the coordinate information and the target entrance name to the positioning engine server, so that the positioning engine server indicates the position of the current entrance and correspondingly marks the target entrance name on a current positioning map of the mobile terminal. In the embodiment, the mobile terminal firstly stores the incidence relation between the entrance name and the latitude and longitude information of the building, and after the coordinate information of the current entrance is obtained, firstly determines whether the corresponding target entrance name can be found according to the incidence relation, if so, the positioning request carrying the coordinate information and the target entrance name is sent to the positioning engine server, and if not, the positioning request carrying the coordinate information is sent to the positioning engine server.
Further optionally, the mobile terminal may periodically obtain the association relationship between the entrance name of the building and the latitude and longitude information from the positioning engine server and store the association relationship. Therefore, the mobile terminal confirms the entrance name, and the positioning engine server only needs to complete the real-time display and labeling of the positioning map.
As another optional implementation manner, after obtaining the coordinate information of the current entrance, the mobile terminal finds the name of the target entrance corresponding to the current entrance based on the pre-stored association relationship between the entrance name and the latitude and longitude information, detects whether a location sharing command is received, and if receiving a location sharing instruction, obtains a map corresponding to the current location, indicates a location corresponding to the coordinate information on the map, marks the name of the target entrance, and shares the location sharing command with the chat object. Through the embodiment, the mobile terminal can not only automatically identify the building entrance, but also complete the indication of the building entrance on the map.
204. And the mobile terminal sends the positioning request carrying the coordinate information to the positioning engine server, so that the positioning engine server indicates the position of the current entrance in the current positioning map of the mobile terminal according to the coordinate information.
It should be noted that, if the mobile terminal performs positioning through a certain positioning software (such as a Baidu map, google map, or Goods map), the mobile terminal automatically identifies the current entrance of the building according to the change of the positioning accuracy of the GPS, and after obtaining the coordinate information of the current entrance, sends the positioning request carrying the coordinate information to the positioning engine server corresponding to the positioning software, and the positioning engine server can further indicate the coordinate position in the current your status map (i.e. the map corresponding to the positioning software) of the mobile terminal. In the implementation mode, the mobile terminal carries out building positioning through positioning software, further utilizes the GPS to detect the coordinate information of the entrance of the building, and finally completes the indication of the current entrance on the positioning map through the positioning engine server, so that the accurate positioning of the entrance of the building is realized. Optionally, the positioning engine server indicating the current portal in the positioning map may include: displaying a preset icon at a position corresponding to the coordinate information, and pointing to the preset icon through a color indication arrow beside the preset icon, or thickening or displaying the preset icon in color at the position corresponding to the coordinate information, and the like.
205. And the mobile terminal receives the current positioning map which indicates the position of the current entrance and is returned by the positioning engine server and outputs and displays the current positioning map.
As an optional implementation manner, when the current positioning map displayed by the mobile terminal is not marked with the entrance name of the building, step 204 may specifically include: the mobile terminal also sends a positioning request carrying the coordinate information to the positioning engine server, so that the positioning engine server obtains a target entrance name corresponding to the current entrance of the building according to the incidence relation between the entrance name and the latitude and longitude information of the building, and indicates the position of the current entrance and the corresponding labeled target entrance name on the current positioning map of the mobile terminal. In the embodiment, the entrance names of all entrances of a building are obtained in advance, longitude and latitude coordinates of all the entrances are measured, then an association relationship between the entrance names and the longitude and latitude information is established in a positioning engine, and further after the mobile terminal obtains the longitude and latitude coordinates of the current entrance, the positioning engine server further determines the entrance name of the current entrance, and marks the entrance name on the current positioning map, so that a user can know or the user can inform others of knowing the specific position of the entrance in the building.
Correspondingly, the mobile terminal receives the current positioning map which indicates the position of the current entrance and the name of the corresponding labeling target entrance and is returned by the positioning engine server, and outputs and displays the current positioning map. Therefore, the mobile terminal receives the current positioning map which indicates the position of the current entrance and is marked with the name of the target entrance and returned by the positioning engine server, and outputs and displays the current positioning map, so that the user can accurately know the current position of the user.
It can be seen that, in the above embodiment, the mobile terminal can automatically identify the entrance of the building, and then send the positioning request carrying the entrance to the positioning engine server, so that the server indicates the positioning location on the current positioning map in real time due to positioning, the mobile terminal receives the current positioning map and outputs and displays the current positioning map, and the entrance of the building is automatically identified by utilizing the characteristic that the positioning accuracy of the GPS is affected when the GPS passes through the entrance of the building, so as to provide a good basis for the positioning accuracy.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating a method for detecting a building entrance according to another embodiment of the present invention; as shown in fig. 3, the method for detecting the entrance of the building may include:
301. and the mobile terminal acquires the current longitude and latitude coordinates in the process of entering and exiting the building.
302. And the mobile terminal judges whether to search a target entrance position corresponding to the current longitude and latitude coordinates according to the corresponding relation between the entrance position of the building and the longitude and latitude coordinates which is stored in advance. When the target entry position is not found, the process goes to step 303, and when the target entry position is found, the process goes to step 306.
Wherein the entry location may be an entry name. In the embodiment of the invention, the mobile terminal stores the corresponding relation between the previously identified longitude and latitude coordinates and the entrance position, so as to establish the corresponding building entrance fingerprint database, thereby detecting whether the corresponding entrance position exists or not through the longitude and latitude coordinates when positioning is carried out later, and directly positioning if the corresponding entrance position exists, thereby improving the positioning speed.
303. The mobile terminal acquires positioning information using a GPS.
304. And the mobile terminal judges whether the positioning precision variation difference value in unit time is greater than or equal to a preset threshold value or not according to the acquired positioning information. When the positioning accuracy variation difference is greater than or equal to a preset threshold, turning to step 305; and when the positioning precision variation difference value is smaller than a preset threshold value, ending the process.
305. And the mobile terminal determines the position as the current entrance of the building and acquires the coordinate information of the current entrance.
306. And the mobile terminal indicates the position of the target entrance in the current positioning map according to the current longitude and latitude coordinates.
In the embodiment of the invention, the mobile terminal acquires the current longitude and latitude coordinates in real time, judges whether the position corresponding to the current longitude and latitude coordinates is a building entrance or not according to the building entrance fingerprint database, and directly performs positioning without using a GPS (global positioning system) for continuous positioning if the position corresponding to the current longitude and latitude coordinates is the building entrance, thereby simplifying the positioning process.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the disclosure; as shown in fig. 5, the mobile terminal may include:
an obtaining unit 510, configured to obtain positioning information by using a global positioning system GPS during a process of entering or exiting a building by a mobile terminal;
a determining unit 520, configured to determine whether a GPS positioning accuracy variation difference in unit time is greater than or equal to a preset threshold according to the acquired positioning information;
a determining unit 530, configured to determine that the location of the mobile terminal is a current entrance of the building and obtain coordinate information of the current entrance when the determining unit 520 determines that the positioning accuracy variation difference is greater than or equal to a preset threshold.
By implementing the embodiment, the mobile terminal can further acquire the positioning information through the GPS in the process of getting in and out of the building, then judge whether the variation difference of the positioning precision in unit time is greater than or equal to the preset threshold value, and if so, determine that the position of the mobile terminal is the current entrance of the building.
EXAMPLE five
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the disclosure; the mobile terminal shown in fig. 6 is obtained by optimizing the mobile terminal shown in fig. 5, and the mobile terminal shown in fig. 6 further includes: a communication unit 610 and a display unit 620.
The communication unit 610 is configured to, when the determining unit 530 determines that the positioning accuracy variation difference is greater than or equal to the preset threshold value and determines that the location of the mobile terminal is the current entrance of the building, and after acquiring the coordinate information of the current entrance, send a positioning request carrying the coordinate information to the positioning engine server, so that the positioning engine server indicates the location of the current entrance in the current positioning map of the mobile terminal according to the coordinate information; receiving a current positioning map which indicates the position of the current entrance and is returned by the positioning engine server;
a display unit 620 for outputting a current positioning map indicating a location where there is a current entrance on the mobile terminal.
As an optional implementation manner, the communication unit 610 is configured to send a location request carrying coordinate information to a location engine server, so that a manner that the location engine server indicates a location of a current entry in a current location map of the mobile terminal according to the coordinate information specifically is:
the communication unit 610 is configured to send a positioning request carrying coordinate information to the positioning engine server, so that the positioning engine server obtains a name of a target entry corresponding to a current entry of the building based on an association relationship between an entry name of the building and latitude and longitude information, and indicates a position of the current entry and a name of a corresponding labeled target entry on a current positioning map of the mobile terminal;
the manner of the communication unit 610 receiving the current positioning map indicating the position of the current entrance returned by the positioning engine server is specifically as follows:
the communication unit 610 is configured to receive a current positioning map indicating a current location of the entry and a name of the corresponding labeled target entry returned by the positioning engine server;
the manner of the display unit 620 for outputting the current positioning map indicating the position of the current entrance on the mobile terminal is specifically as follows:
the display unit 620 is configured to output a current positioning map indicating a location of the current portal and a name of the corresponding labeled target portal on the mobile terminal.
Further optionally, the determining unit 520 is further configured to determine, after the determining unit 530 obtains the coordinate information of the current entrance, whether to find the target entrance name corresponding to the current entrance according to a pre-stored association relationship between the entrance name of the building and the latitude and longitude information; and, when the determining unit 520 determines that the target entry name is not found, triggering the communication unit 610 to execute a step of sending a location request carrying coordinate information to a location engine server;
the communication unit 610 is further configured to send a positioning request carrying the coordinate information and the name of the target entry to the positioning engine server when the determining unit 520 determines that the name of the target entry is found, so that the positioning engine server indicates the position of the current entry and the name of the corresponding labeled target entry on a current positioning map of the mobile terminal.
As another optional implementation, after obtaining the coordinate information of the current entrance, the mobile terminal finds the name of the target entrance corresponding to the current entrance based on the pre-stored association relationship between the entrance name and the latitude and longitude information of the building, detects whether a location sharing command is received, and if a location sharing instruction is received, obtains a map corresponding to the current location, indicates a location corresponding to the coordinate information on the map, marks the name of the target entrance, and shares the location with the chat object. Through the embodiment, the mobile terminal can not only automatically identify the building entrance, but also complete the indication of the building entrance on the map.
EXAMPLE six
Referring to fig. 7, fig. 7 is a schematic structural diagram of a mobile terminal according to another embodiment of the disclosure; fig. 7 is a result of optimization based on the mobile terminal shown in fig. 5, where the mobile terminal shown in fig. 7 further includes: an indication unit 710;
the obtaining unit 510 is further configured to obtain a current longitude and latitude coordinate of the mobile terminal when the mobile terminal enters or exits the building;
the determining unit 520 is further configured to determine whether to find a target entry location corresponding to the current longitude and latitude coordinate based on a pre-stored correspondence between the entry location of the building and the longitude and latitude coordinate; and when it is determined that the target entry location is not found, triggering the obtaining unit 510 to perform a step of obtaining positioning information by using a global positioning system GPS.
The indicating unit 710 is configured to, when the target entry location is found, indicate the target entry location in the current positioning map of the mobile terminal according to the current longitude and latitude coordinates.
In the embodiment, the mobile terminal acquires the current longitude and latitude coordinate in real time, judges whether the position corresponding to the current longitude and latitude coordinate is a building entrance or not according to the building entrance fingerprint database, and directly performs positioning without using a GPS (global positioning system) for continuous positioning if the position corresponding to the current longitude and latitude coordinate is the building entrance, so that the positioning process can be simplified.
EXAMPLE seven
Referring to fig. 8, fig. 8 is a schematic structural diagram of a mobile terminal according to another embodiment of the disclosure; the mobile terminal shown in fig. 8 may include: at least one processor 810, such as a CPU, a communication bus 830 is used to enable communication connections between these components. The memory 820 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 820 may optionally be at least one storage device located remotely from the processor 810 as previously described. Wherein, the processor 810 can be combined with the mobile terminal described in fig. 5 to fig. 7, a set of program codes is stored in the memory 810, and the processor 810 calls the program codes stored in the memory 820 to execute the following operations:
in the process of entering and exiting a building, a Global Positioning System (GPS) is utilized to acquire positioning information; judging whether the GPS positioning precision variation difference value in unit time is greater than or equal to a preset threshold value or not by taking the acquired positioning information as a basis; and when the GPS positioning accuracy change difference is larger than or equal to a preset threshold value, determining that the position of the mobile terminal is the current entrance of the building, and acquiring the coordinate information of the current entrance.
As an alternative implementation, the processor 810 may be further configured to perform the following operations:
when the GPS positioning precision variation difference is larger than or equal to a preset threshold value, determining that the position of the mobile terminal is a current entrance of a building, and after acquiring coordinate information of the current entrance, sending a positioning request carrying the coordinate information to a positioning engine server, so that the positioning engine server indicates the position of the current entrance in a current positioning map of the mobile terminal according to the coordinate information; and receiving a current positioning map which indicates the position of the current entrance and is returned by the positioning engine server, and outputting and displaying the current positioning map.
As an alternative implementation, the processor 810 may be further configured to perform the following operations:
sending a positioning request carrying coordinate information to a positioning engine server, so that the positioning engine server obtains a target entrance name corresponding to a current entrance of a building according to the incidence relation between the entrance name and longitude and latitude information of the building, and indicates the position of the current entrance and the corresponding labeled target entrance name on a current positioning map of a mobile terminal;
and receiving, outputting and displaying a current positioning map which indicates the position of the current entrance and the name of the corresponding marked target entrance and is returned by the positioning engine server.
As an alternative implementation, the processor 810 may be further configured to perform the following operations:
after coordinate information of the current entrance is obtained, whether a target entrance name corresponding to the current entrance is found is judged according to a pre-stored association relation between the entrance name of the building and the longitude and latitude information; when the target entry name is not found, a step of sending a positioning request carrying coordinate information to a positioning engine server is executed; and when the target entry name is found, sending a positioning request carrying the coordinate information and the target entry name to the positioning engine server, so that the positioning engine server indicates the position of the current entry and correspondingly marks the target entry name on a current positioning map of the mobile terminal.
As an alternative implementation, the processor 810 may be further configured to perform the following operations:
acquiring the current longitude and latitude coordinates of the mobile terminal in the process of entering and exiting the building; judging whether a target entrance position corresponding to the current longitude and latitude coordinates is found or not according to the corresponding relation between the entrance position of the building and the longitude and latitude coordinates stored in advance; when the target entry position is found, indicating the target entry position in a current positioning map of the mobile terminal according to the current longitude and latitude coordinates; and when the target entrance position is not found, the step of acquiring the positioning information by using the global positioning system GPS is executed.
The embodiment of the present invention also discloses a computer readable storage medium, which stores a computer program, wherein the computer program enables a computer to execute the method for detecting a building entrance disclosed in fig. 1 to 3.
An embodiment of the present invention further discloses a computer program product, which, when running on a computer, causes the computer to execute part or all of the steps of any one of the methods disclosed in fig. 1 to 3.
An embodiment of the present invention further discloses an application publishing platform, where the application publishing platform is configured to publish a computer program product, where when the computer program product runs on a computer, the computer is enabled to execute part or all of the steps of any one of the methods disclosed in fig. 1 to fig. 3.
It will be understood by those skilled in the art that all or part of the steps of the methods of the embodiments described above may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, including Read-Only Memory (ROM), random Access Memory (RAM), programmable Read-Only Memory (PROM), erasable Programmable Read-Only Memory (EPROM), one-time Programmable Read-Only Memory (OTPROM), electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM) or other Memory capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
The above detailed description is provided for the method for detecting a building entrance and the mobile terminal disclosed in the embodiments of the present invention, and specific examples are applied herein to explain the principles and embodiments of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method for detecting a building entrance, comprising:
acquiring the current longitude and latitude coordinates of a mobile terminal in the process of entering and exiting a building;
judging whether a target entrance position corresponding to the current longitude and latitude coordinates is found or not according to a pre-stored corresponding relation between the entrance position of the building and the longitude and latitude coordinates;
when the target entry position is found, indicating the target entry position in a current positioning map of the mobile terminal according to the current longitude and latitude coordinates;
when the target entrance position is not found, positioning information is acquired by a Global Positioning System (GPS);
judging whether the GPS positioning precision variation difference value in unit time is greater than or equal to a preset threshold value or not by taking the acquired positioning information as a basis;
and when the GPS positioning precision variation difference is larger than or equal to the preset threshold, determining that the position of the mobile terminal is the current entrance of the building, and acquiring the coordinate information of the current entrance.
2. The method according to claim 1, wherein when the GPS positioning accuracy variation difference is greater than or equal to the preset threshold, after determining that the mobile terminal is located at a current entrance of the building and acquiring coordinate information of the current entrance, the method further comprises:
sending a positioning request carrying the coordinate information to a positioning engine server, so that the positioning engine server indicates the position of the current entrance in a current positioning map of the mobile terminal according to the coordinate information;
and receiving a current positioning map which indicates the position of the current entrance and is returned by the positioning engine server, and outputting and displaying the current positioning map.
3. The method according to claim 2, wherein the coordinate information is latitude and longitude coordinate information, and the sending a positioning request carrying the coordinate information to a positioning engine server so that the positioning engine server indicates the position of the current portal in a current positioning map of the mobile terminal according to the coordinate information comprises:
sending a positioning request carrying the coordinate information to a positioning engine server, so that the positioning engine server obtains a target entrance name corresponding to the current entrance of the building according to the incidence relation between the entrance name and the latitude and longitude information of the building, and indicates the position of the current entrance and correspondingly marks the target entrance name on a current positioning map of the mobile terminal;
the receiving and outputting a current positioning map indicating the position of the current entrance returned by the positioning engine server for display comprises:
and receiving, outputting and displaying a current positioning map which indicates that the current entrance position and the corresponding marked target entrance name are returned by the positioning engine server.
4. The method of claim 3, wherein after the obtaining the coordinate information of the current portal, the method further comprises:
judging whether the target entrance name corresponding to the current entrance is found or not according to the pre-stored incidence relation between the entrance name of the building and the latitude and longitude information;
when the target entry name is not found, the step of sending the positioning request carrying the coordinate information to a positioning engine server is executed;
and when the target entrance name is found, sending a positioning request carrying the coordinate information and the target entrance name to the positioning engine server, so that the positioning engine server indicates the position of the current entrance and marks the target entrance name correspondingly on a current positioning map of the mobile terminal.
5. A mobile terminal, comprising:
the acquiring unit is used for acquiring the current longitude and latitude coordinates of the mobile terminal in the process of entering and exiting the building;
the judging unit is used for judging whether a target entrance position corresponding to the current longitude and latitude coordinate is found or not according to the corresponding relation between the entrance position of the building and the longitude and latitude coordinate stored in advance;
the indicating unit is used for indicating the target entrance position in a current positioning map of the mobile terminal according to the current longitude and latitude coordinates when the target entrance position is found;
the acquisition unit is also used for acquiring positioning information by utilizing a Global Positioning System (GPS) when the target entrance position is not found;
the judging unit is further used for judging whether the GPS positioning precision variation difference value in unit time is larger than or equal to a preset threshold value or not according to the acquired positioning information;
and the determining unit is used for determining that the position of the mobile terminal is the current entrance of the building and acquiring the coordinate information of the current entrance when the judging unit judges that the positioning precision variation difference is greater than or equal to the preset threshold.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
a communication unit, configured to, when the determining unit determines that the positioning accuracy variation difference is greater than or equal to the preset threshold, and determines that the location of the mobile terminal is located at a current entrance of the building, and after obtaining coordinate information of the current entrance, send a positioning request carrying the coordinate information to a positioning engine server, so that the positioning engine server indicates the location of the current entrance in a current positioning map of the mobile terminal according to the coordinate information; receiving a current positioning map which indicates the position of the current entrance and is returned by the positioning engine server;
and the display unit is used for outputting a current positioning map indicating the position of the current entrance on the mobile terminal.
7. The mobile terminal according to claim 6, wherein the coordinate information is latitude and longitude coordinate information, and the communication unit is configured to send a positioning request carrying the coordinate information to a positioning engine server, so that the manner in which the positioning engine server indicates the location of the current portal in a current positioning map of the mobile terminal according to the coordinate information is specifically:
the communication unit is used for sending a positioning request carrying the coordinate information to a positioning engine server, so that the positioning engine server obtains a target entrance name corresponding to a current entrance of the building according to the incidence relation between the entrance name and the latitude and longitude information of the building, indicates the position of the current entrance on a current positioning map of the mobile terminal and correspondingly marks the target entrance name;
the manner of the communication unit being used for receiving the current positioning map indicating the position of the current entrance returned by the positioning engine server is specifically:
the communication unit is used for receiving a current positioning map which indicates that the position of the current entrance and the name of the corresponding marked target entrance are returned by the positioning engine server;
the manner of the display unit being used for outputting the current positioning map indicating the position of the current entrance on the mobile terminal is specifically as follows:
and the display unit is used for outputting the position of the current entrance and a current positioning map correspondingly marked with the name of the target entrance on the mobile terminal.
8. The mobile terminal of claim 7, wherein:
the judging unit is further configured to judge whether to find the target entrance name corresponding to the current entrance according to a pre-stored association relationship between the entrance name and the longitude and latitude information of the building after the determining unit obtains the coordinate information of the current entrance; when the judging unit determines that the target entrance name is not found, the communication unit is triggered to execute the step of sending the positioning request carrying the coordinate information to a positioning engine server;
the communication unit is further configured to send a positioning request carrying the coordinate information and the target entry name to the positioning engine server when the determination unit determines that the target entry name is found, so that the positioning engine server indicates the position of the current entry and marks the target entry name correspondingly on a current positioning map of the mobile terminal.
CN201910853565.7A 2019-09-10 2019-09-10 Building entrance detection method and mobile terminal Active CN111751861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910853565.7A CN111751861B (en) 2019-09-10 2019-09-10 Building entrance detection method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910853565.7A CN111751861B (en) 2019-09-10 2019-09-10 Building entrance detection method and mobile terminal

Publications (2)

Publication Number Publication Date
CN111751861A CN111751861A (en) 2020-10-09
CN111751861B true CN111751861B (en) 2023-01-24

Family

ID=72672872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910853565.7A Active CN111751861B (en) 2019-09-10 2019-09-10 Building entrance detection method and mobile terminal

Country Status (1)

Country Link
CN (1) CN111751861B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106605123A (en) * 2014-08-29 2017-04-26 三星电子株式会社 System for determining location of entrance and area of interest
CN106851578A (en) * 2017-02-23 2017-06-13 烟台中飞海装科技有限公司 Personnel location system and method in complicated unknown indoor environment
CN108668233A (en) * 2017-03-31 2018-10-16 高德软件有限公司 A kind of building entrance detection method and system
CN109085624A (en) * 2018-07-04 2018-12-25 百度在线网络技术(北京)有限公司 Indoor and outdoor localization method, device and computer equipment based on positioning signal strength
CN109633721A (en) * 2019-01-10 2019-04-16 广东小天才科技有限公司 A kind of indoor and outdoor judgment method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10018732B2 (en) * 2015-12-21 2018-07-10 Clarion Co., Ltd. Information processing apparatus and information processing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106605123A (en) * 2014-08-29 2017-04-26 三星电子株式会社 System for determining location of entrance and area of interest
CN106851578A (en) * 2017-02-23 2017-06-13 烟台中飞海装科技有限公司 Personnel location system and method in complicated unknown indoor environment
CN108668233A (en) * 2017-03-31 2018-10-16 高德软件有限公司 A kind of building entrance detection method and system
CN109085624A (en) * 2018-07-04 2018-12-25 百度在线网络技术(北京)有限公司 Indoor and outdoor localization method, device and computer equipment based on positioning signal strength
CN109633721A (en) * 2019-01-10 2019-04-16 广东小天才科技有限公司 A kind of indoor and outdoor judgment method and system

Also Published As

Publication number Publication date
CN111751861A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
EP2616774B1 (en) Indoor positioning using pressure sensors
US9179265B2 (en) Reducing location search space
US8588823B2 (en) System and method for providing location information service using mobile code
CN109275090B (en) Information processing method, device, terminal and storage medium
CN111757244B (en) Building positioning method and electronic equipment
CN111174778B (en) Building entrance determining method and device based on pedestrian dead reckoning
CN115150739A (en) Building positioning method and device, electronic equipment and storage medium
CN107218943B (en) Indoor navigation method and device
CN113411743B (en) Terminal positioning method and device and terminal
KR101622579B1 (en) Apparatus and method for providing location information service in portable terminal
CN111751861B (en) Building entrance detection method and mobile terminal
KR101417922B1 (en) Method and Apparatus for Determining Position of Terminal
CN110672086B (en) Scene recognition method, device, equipment and computer readable medium
US20050060118A1 (en) Terminal and an associated system, method and computer program product for obtaining the terminal location based upon connections of the terminal
CN111757465A (en) Clustering positioning method, service equipment and system
US11085992B2 (en) System and method for positioning a terminal device
CN111751850B (en) Building entrance detection method based on machine learning and mobile terminal
KR101197586B1 (en) A location recognition system using wireless fidelity and method of thereof
CN111143490A (en) Offline positioning method of electronic equipment, service equipment and system
CN116528359B (en) Indoor positioning method, system and device
CN113242517B (en) Positioning control method, storage medium and equipment
CN109429331B (en) Positioning method, positioning device and storage medium
US11653172B2 (en) Determining whether a tracking device is within an area of interest based on at least one set of radio signal observation results captured by a tracking device
CN115150740A (en) Indoor fingerprint acquisition method and device, electronic equipment and storage medium
CN111757463B (en) Indoor positioning method and terminal equipment

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