CN115022943A - Method for positioning geographic position and electronic equipment - Google Patents

Method for positioning geographic position and electronic equipment Download PDF

Info

Publication number
CN115022943A
CN115022943A CN202111604977.0A CN202111604977A CN115022943A CN 115022943 A CN115022943 A CN 115022943A CN 202111604977 A CN202111604977 A CN 202111604977A CN 115022943 A CN115022943 A CN 115022943A
Authority
CN
China
Prior art keywords
fence
target
time
geo
current scene
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.)
Granted
Application number
CN202111604977.0A
Other languages
Chinese (zh)
Other versions
CN115022943B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111604977.0A priority Critical patent/CN115022943B/en
Publication of CN115022943A publication Critical patent/CN115022943A/en
Application granted granted Critical
Publication of CN115022943B publication Critical patent/CN115022943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • 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/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application provides a method for positioning a geographic position and electronic equipment, and relates to the technical field of computers. By the method, after the trigger of the effective time fence in the target geo-fence is detected, the effective geo-fence in the target geo-fence is registered, if the trigger of the effective time fence in the target geo-fence is detected, the trigger of the target geo-fence is determined, and the target geo-fence trigger indicates that the electronic device is located in the target area. The method optimizes the accuracy of the geo-fence in the electronic device and reduces the power consumption of the geo-fence.

Description

Method for positioning geographic position and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method for locating a geographic location and an electronic device.
Background
With the popularization of the mobile internet, applications based on the current user location are increasing, for example, a geo-fencing function is provided in a travel reminding application, that is, when a user enters a specified area, a corresponding prompt is made or a corresponding response is made. Geofencing is a new application of Location Based Service (LBS), which is a virtual fence enclosing a virtual geographic boundary. When a mobile device enters, leaves, or is active within a particular geographic area, the mobile device may receive automatic notifications and alerts related to the particular geographic area.
Disclosure of Invention
The application provides an optimized method for positioning a geographic position and an electronic device.
In some scenes, after a user orders an airline ticket from a ticket purchasing website by using a mobile phone, a travel reminding application on the mobile phone registers a geo-fence based on longitude and latitude information of an airport, and when a sensing module on the mobile phone detects that the geo-fence is triggered, a display module of the mobile phone displays travel reminding information to the user. However, in some implementations, once the geo-fence is registered, the sensing module on the mobile phone starts to monitor the geographic location of the mobile phone all the time in real time, and determines whether the geo-fence is triggered, which results in excessive power consumption of the mobile phone. For example, the airport fence can be used as a geo fence, and once the airport fence is registered, the sensing module on the mobile phone starts to monitor the geographic position of the mobile phone all the time in real time to determine whether the airport fence is triggered.
In some embodiments provided herein, geofences may have an effective time attribute, and an airport fence may be understood to include a time fence and a geofence associated with the time fence (which is used to determine the time to register the geofence, and may also be understood to be used to determine the effective time of the geofence): subscribing (subscription may also be understood as registration) to an airport fence in advance, registering (or understanding as first effective) a time fence in the airport fence first, and setting an effective time when to start registering the geofence and then to sense whether the geofence is triggered, for example, when an airport fence is determined 5 days ago, but the effective time may be the fifth day (when the time fence is triggered), then even if the user passes the geographic location in the first four days, the sensing module does not sense the geofence event. Therefore, after an airport fence is registered, the sensing module on the mobile phone does not immediately start to monitor the geographic position of the mobile phone all the time in real time to judge whether the geographic fence corresponding to the airport fence is triggered, but only starts to register the geographic fence when the effective time of the geographic fence starts (when the time fence corresponding to the airport fence is triggered), so that the geographic position of the mobile phone can be monitored after the geographic fence is registered to judge whether the geographic fence is triggered, and the electric quantity of the mobile phone is saved.
In a first aspect, the present application provides a method for locating a geographic location, which is applied to an electronic device, where the electronic device registers with a target geofence, and the method includes: detecting whether an effective time fence in a target geo-fence is triggered, wherein the effective time fence trigger is used for indicating the time of reaching a preset registered effective geo-fence; registering an effective time fence in the target geo-fence if an effective time fence trigger in the target geo-fence is detected; after registering an effective geofence in the target geofence, detecting whether the effective geofence of the target geofence is triggered, and if the effective geofence trigger of the target geofence is detected, determining that the target geofence is triggered, where the effective geofence trigger of the target geofence is used to indicate that the location of the electronic device is within the target area.
In this way, the target geo-fence includes an effective time fence and an effective geo-fence, the business logic processing module of the mobile phone registers the target geo-fence with the context awareness module, the context awareness module registers the effective time fence of the target geo-fence in response to the registration instruction, and when the effective time fence is triggered, the context awareness module registers the effective geo-fence of the target geo-fence and destroys the effective time fence of the target geo-fence. Because the situation awareness module does not register the effective geo-fence before the effective time fence is triggered, the situation awareness module cannot monitor the position of the electronic device, and the electricity consumption of the mobile phone is reduced. Meanwhile, false triggering of the effective geo-fence is avoided, so that operation based on the target geo-fence cannot be executed, accuracy of operation based on triggering of the target geo-fence is improved, and user experience is improved. For example, a user orders an airplane ticket in day 11 month 1, the business logic processing module registers the entrance fence in the context awareness module after the ticket is issued, if the expected departure time is 12 month 1 day, the triggering condition of the first time fence (i.e., the effective time fence of the entrance fence) is that the time length from the expected departure time is less than or equal to 4 hours, if the user passes through the airport in day 11 month 2, the effective time fence in the entrance fence is not triggered, and then the effective geo fence is not registered, and the position where the mobile phone is located is not monitored by the mobile phone, so that the electricity consumption for locating the geographic position is reduced, meanwhile, because the effective geo fence is not registered, the entrance fence is not triggered, so that the mobile phone does not display the prompt information of entering the airport, and the experience of reminding the user of going out for use is improved.
According to a first aspect, before detecting whether an effective time fence in the target geofence triggers, the method further comprises: acquiring travel data of a user; and registering the effective time fence of the target geo-fence of each scene according to the travel data and the scenes of each trip. In this way, registration of the effective time fence in the target geofence is determined based on the trip data and the travel scenario, such that the triggering condition of the effective time fence meets the user's needs. For example, a user on day 11 and 1 ordered an airline ticket indicating a departure time of: 12:00 on 1 st month, according to the scene of arriving at the departure station and the departure time, the effective time fence in the first airport fence can be registered as 8:00 on 1 st month and 12 th month, that is, the trigger time of the effective time fence is 8:00 on 1 st month and 12 th month, if the airline ticket indicates that the landing time is: 12 month and 1 day, 14:00, and according to the scene of arriving at the destination station and the landing time, the effective time fence in the second airport fence can be registered as 12 months and 1 day, 14:00, so that the user's travel behavior is met.
According to a first aspect, registering an active one of the target geofences, comprises: according to a current travel scene, acquiring a target position corresponding to the current travel scene from travel data; and registering an effective geo-fence of the current trip scene according to the target position, wherein the target area of the effective geo-fence is the area where the target position is located. In this way, the registration of the valid geofence in the target geofence is matched to the user's trip, further improving the accuracy of the target geofence. For example, the ticket buying time of the user is 1 month and 1 day, and the departure time of the train is 1 month and 5 days, so that the effective time fence can be triggered at 1 month and 5 days according to the departure time of the user, the effective geo-fence is registered, and the effective geo-fence in the target geo-fence is not registered before 1 month and 5 days, so that the position of the electronic device cannot be monitored, that is, the problem of position false detection cannot occur.
According to a first aspect, prior to registering the target geofence, the method further comprises: acquiring travel data of a user; registering a target fence of a current scene according to the travel data of the user and the scenes of all trips, wherein the target fence of the current scene comprises a target geo-fence; after determining the target geofence trigger, the method further comprises: judging whether a travel reminder of the current scene is displayed or not; and if the travel prompt of the current scene is determined to be displayed, displaying the travel prompt of the current scene.
Therefore, the target fence of the current scene is registered according to the travel data of the user, the target fence of the current scene comprises the target geo-fence, the electronic device can display the trip reminding of the current scene according to the triggering of the target geo-fence (namely the target fence of the current scene), and the effective geo-fence is registered only when the effective time fence is triggered because the target geo-fence comprises the effective time fence and the effective geo-fence, so that the electronic device detects the position of the electronic device only after the effective time fence is triggered, the power consumption is reduced, the problem of false triggering when the user passes through the target position is avoided, the accuracy of the target geo-fence is improved, and the accuracy of the trip reminding provided for the user is improved.
According to the first aspect, if it is determined that the travel reminder of the current scene is displayed, before the travel reminder of the current scene is displayed, the method further includes: detecting whether a PUSH fence of a first travel application is triggered, wherein the PUSH fence of the first travel application is triggered to indicate that an electronic device receives a PUSH message sent by a server of the first travel application; if the PUSH fence trigger of the first travel application is detected, judging whether a travel prompt of the current scene is displayed or not; after determining to display the travel reminder of the current scene, the method further includes: and according to the triggered fence, releasing the target fence of the current scene or ignoring the PUSH message of the current scene acquired next time.
In some scenarios, if only a fence with one dimension is registered (for example, only a target geo-fence is registered), since the current latitude and longitude information acquired by the mobile phone is greatly influenced by the environment, and the geographic position information acquired by the context awareness module in the mobile phone may be inaccurate, a problem of travel reminding cannot be provided for the user in time, and a problem of missed reminding or incorrect reminding exists, for example, the user has arrived at the station, and due to a network delay or signal problem, the mobile phone of the user does not receive a PUSH message indicating that the user has arrived at the station, which is sent by a server applied to the railway 12306 ″, so that the problem of missed reminding of the electronic device will occur. In the application, the electronic device registers a plurality of fences with different functions (dimensions), such as PUSH fences and target geofences of a current scene, according to the trip data; the electronic equipment monitors the information of two different dimensions simultaneously, so that the information of each dimension is mutually compensated under different scenes, the problem that the user cannot be reminded of going out in time due to inaccurate monitoring of one piece of information is avoided, and the accuracy of going out reminding is improved.
According to a first aspect, determining whether to display a trip reminder for a current scene includes: if the target fence trigger of the current scene is detected, determining to display the travel reminder of the current scene; if detecting that the PUSH fence of the first trip application is triggered, analyzing the received PUSH message, and judging whether the PUSH message of the current scene exists in the PUSH message or not; if the PUSH message of the current scene is determined to be acquired, determining to display the travel prompt of the current scene; and if the PUSH message of the current scene is determined not to be acquired, the travel reminding of the current scene is determined to be cancelled.
In this way, since the PUSH message generally includes a lot of content, for example, the current scene is a scene of arriving at a departure station, the PUSH message received by the electronic device may be train ticket information for train trip, and the electronic device may detect a PUSH fence trigger, and thus, the trigger of the PUSH fence cannot be used to indicate whether the user arrives at a train station. In this example, through the analysis of the PUSH message, when it is detected that the PUSH message of the current scene is acquired, the guidance information of the current scene is determined to be displayed, so that the accuracy of determining and displaying the guidance information of the current scene is improved, and the guidance information is prevented from being displayed mistakenly subsequently. When the target geo-fence is triggered, the position of the electronic equipment can be indicated, the guiding information of the scene can be determined and displayed without other operations, and the judging speed is high.
According to the first aspect, according to the triggered fence, releasing the target fence of the current scene or ignoring the PUSH message of the current scene acquired next time includes: if the PUSH fence trigger of the first travel application is determined, removing the target fence of the current scene; and if the target fence is triggered, ignoring the PUSH message of the current scene acquired next time. In this way, when the PUSH fence is triggered and the PUSH message of the current scene is determined to be acquired, the guidance information of the current scene is determined to be displayed, the target fence of the current scene is released, and unnecessary power consumption can be reduced; similarly, when the target fence of the current scene is triggered, the guidance information of the current scene can be determined to be displayed, and the PUSH message of the current scene acquired next time does not need to be processed, so that the power consumption is reduced.
According to a first aspect, the target fence of the current scene further comprises a target time fence of the current scene; detecting whether a target fence of a current scene is triggered, including: detecting whether a target geo-fence of a current scene is triggered and detecting whether a target time fence of the current scene is triggered, wherein the target time fence trigger of the current scene is used for indicating a preset specific time of the current scene. Like this, the target rail still includes target time rail, and also electronic equipment monitors three rail simultaneously, increases the target time rail of a time dimension, and the data of further richening the monitoring improve the accurate prediction to user's action, and then provides the accurate warning of going out for the user. For example, a train ticket of the user is issued 10:00 on 12 months and 1 days, and if a specific time for arriving at the departure station is preset to be 9:30, when the time reaches 9:30, the user can be predicted to arrive at the departure station, and a travel reminder for arriving at the departure station is provided for the user.
According to the first aspect, according to the triggered fence, releasing the target fence of the current scene or ignoring the PUSH message of the current scene acquired next time includes: if the target time fence trigger of the current scene is determined, removing the target geo-fence of the current scene and ignoring the PUSH message of the current scene acquired next time; if the target geo-fence trigger of the current scene is determined, removing the target time fence of the current scene and ignoring the PUSH message of the current scene acquired next time; and if the PUSH fence trigger of the first travel application is determined, removing the target geo-fence of the current scene and the target time fence of the current scene. In this way, when the target fence further includes the target time fence, if the target geo-fence is triggered or the target time fence is triggered, not only the PUSH message of the current scene acquired next time needs to be ignored, but also another fence in the target fence needs to be removed, and if the PUSH fence of the first trip application is triggered and it is determined that the PUSH message of the current scene is acquired, the target geo-fence and the target time fence are removed, so that the power consumption of the electronic device is reduced.
According to the first aspect, before detecting whether a PUSH fence of the first travel application is triggered, the method further comprises:
if the fact that an authorization relation exists between the authorization object and the user account of the user in the first trip application is detected, registering a PUSH fence of the first trip application, wherein the authorization object comprises an identification of the electronic device or the user account of the user in a server corresponding to the electronic device. In this way, when the existence relationship between the authorized object and the user account of the first travel application is detected, the PUSH fence of the first travel application is registered, so that the PUSH message can be detected in time.
According to a first aspect, the scene of travel comprises: a scene of arriving at the departure station, a scene of going on a trip, a scene of arriving at the destination station, and a scene of departing from the destination station. Therefore, the scene of the trip is the scene that the user needs to remind, the trip reminding is carried out aiming at the scene of the trip, the pertinence is achieved, and the user experience is improved.
According to a first aspect, the trigger condition for a target time fence of a scene arriving at a departure station comprises: the time difference value from the predicted departure time is less than or equal to a first preset time length; the target area of the target geofence of the scene of arrival at the origin includes: the area where the departure station is located. Therefore, the target time fence can be determined according to the travel of the user, the travel requirement of the user is met, and the travel reminding accuracy is improved.
According to a first aspect, the triggering condition of the target time fence of the scene in the trip comprises: detecting a location between an expected departure time and an expected arrival time; the target area of the target geofence for the in-flight scene includes a preset area outside of the starting station. Therefore, the target time fence of the scene in the journey can be determined according to the journey of the user, the requirement of the user on the trip is met, and the accuracy of trip reminding is improved.
According to a first aspect, the trigger condition of a target time fence of a scene arriving at a destination: the sum of the time between the time of arrival predicted and the time of error predicted; the target area of the target geofence of the scene of arrival at the destination station includes: the area of the destination station. Therefore, the target time fence of the scene reaching the destination station can be determined according to the travel of the user, the travel requirement of the user is met, and the travel reminding accuracy is improved. Meanwhile, the area where the destination station is located serves as a target area of a target geo-fence reaching the scene of the destination station, so that the setting of the target geo-fence of the scene meets the travel requirement of a user.
According to a first aspect, the trigger condition of a target time fence of a scene leaving a destination: the sum of the estimated arrival time and the preset outbound time is reached; the target area of the target geofence of the scene leaving the destination station includes: and the destination station is located in a preset area outside the area. Therefore, the target time fence and the target geographic fence of the scene leaving the destination station can determine the corresponding trigger conditions according to the journey of the user, so that the trigger of the fence meets the requirement of the user on trip, and the accuracy of trip reminding is improved.
According to the first aspect, the trigger condition of the effective time fence in the target geofences arriving at the departure station scenario and the trigger condition of the effective time fence in the target geofences in the in-transit scenario are both: the distance between the estimated departure time and the preset first trigger time is less than or equal to the preset first trigger time; the effective time fence trigger condition in the target geo-fence in the in-trip scenario and the effective time fence trigger condition in the target geo-fence in the arrival destination scenario are both: and the distance between the predicted departure time and the preset second trigger time is less than or equal to the preset second trigger time. Therefore, the triggering conditions of the fence are determined according to the predicted arrival time and the predicted departure time, so that the triggering of the fence meets the requirement of the user on trip, and the accuracy of trip reminding is improved.
According to the first aspect, before displaying the travel reminder of the current scene, the method further includes: stopping displaying the travel reminder of the previous scene; or, the display content is instructed to be updated from the travel reminder of the last scene to the travel reminder of the current scene. Therefore, the problem that the user is disturbed by the outdated trip reminding is avoided, and the use experience of the user is improved.
According to a first aspect, if the target geofence registered by the electronic device is a railway station fence, the method includes: detecting whether an effective time fence in the railway station fence is triggered, wherein the effective time fence trigger is used for indicating the time reaching a preset registered effective geographic fence; if the trigger of the effective time fence in the railway station fence is detected, registering the effective geo-fence in the railway station fence, wherein the target area of the effective geo-fence in the railway station fence is the railway station in the train journey data; after registering an effective geo-fence in the train station fences, detecting whether the effective geo-fence of the train station fences is triggered, if the effective geo-fence triggering of a target geo-fence is detected, determining that the train station fences are triggered, wherein the effective geo-fence triggering in the train station fences is used for indicating that the position of the electronic equipment is in the train station;
if the target geo-fence registered by the electronic device is an airport fence, the method comprises the following steps: detecting whether an effective time fence in an airport fence is triggered; if the trigger of the effective time fence in the airport fence is detected, registering the effective geo-fence in the airport fence, wherein the target area of the effective geo-fence in the airport fence is the airport indicated in the air ticket; after registering an active geo-fence in the airport fence, detecting whether the active geo-fence of the airport fence is triggered, and if the active geo-fence trigger of the airport fence is detected, determining that the airport fence is triggered, wherein the active geo-fence trigger in the airport fence is used for indicating that the position of the electronic device is in the airport.
In this way, the positioning can be made as to whether the electronic device is at a train station or at an airport.
In a second aspect, the present application provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs, stored on the memory, which, when executed by the one or more processors, cause the electronic device to perform the method for locating a geographical position according to any of the implementations of the first aspect and the first aspect described above.
Any one implementation manner of the second aspect and the second aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one implementation manner of the second aspect and the second aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not repeated here.
In a third aspect, the present application provides a computer-readable medium for storing a computer program, which, when run on an electronic device, causes the electronic device to perform the method for locating a geographic location according to the first aspect and any implementation manner of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings may be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic structural diagram of an exemplary illustrated electronic device;
fig. 2 is a schematic diagram of a software structure of an exemplary illustrated electronic device;
fig. 3 is a schematic diagram of a method for locating a geographic location according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating an exemplary prompt to enter an airport;
FIG. 5 is a schematic diagram illustrating flight travel reminders in various exemplary scenarios;
fig. 6 is a schematic diagram of an exemplary train trip reminder card.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second," and the like, in the description and in the claims of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first target object and the second target object, etc. are specific sequences for distinguishing different target objects, rather than describing target objects.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
In the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of processing units refers to two or more processing units; the plurality of systems refers to two or more systems.
Fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure. It should be understood that the electronic device 100 shown in fig. 1 is only one example of an electronic device, and that the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. Wherein the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
It is to be understood that in other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a hierarchical architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 2 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application.
The layered architecture of the electronic device 100 divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
As shown in fig. 2, the application layer may include a series of application packages. The application package may include applications such as a context awareness module, a service logic processing module, a service presentation module, a gallery, WLAN, bluetooth, music, games, short messages, and the like.
The context awareness module is resident to run or run in a low power consumption form and has the capability of perceiving external facts or environments. When the card reminds the service processing starting state, the context awareness module monitors registered events (such as specific time, specific place, specific event and the like), and if a user triggers one of the events, the context awareness module sends a notification to the service logic processing module. In addition, the context awareness module may also detect related events and obtain states of the events from other application programs or application framework layers or kernel layers of the application program layer through the application program interface, such as detecting bluetooth connection, network connection, monitoring user short messages, customizing timers, and the like.
The business logic processing module is used for realizing the display of various cards and the display of the notice.
And the service presentation module (such as YOYO suggestion) is used for controlling the display or disappearance of the card. For example, the service presentation module may receive a command for displaying a reminder card transmitted by the service logic processing module, and display the reminder card to the user. Correspondingly, if a card disappearing command transmitted by the service logic processing module is received, the service presenting module eliminates the card.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, resource manager, notification manager, activity manager, and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a display driver, a Wi-Fi driver, a Bluetooth driver, an audio driver, a sensor driver and the like.
It is to be understood that the layers in the software structure and the components included in each layer shown in fig. 2 do not constitute a specific limitation to the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer layers than those shown, and may include more or fewer components in each layer, which is not limited in this application.
In some embodiments, after the user purchases the air ticket through the ticket purchasing application, the ticket purchasing application may provide a travel reminder for the user according to the air ticket information of the user. Specifically, after the user purchases an airline ticket through the ticket purchasing application, the ticket purchasing application may register a geo-fence entering the airport according to the location information of the takeoff airport (i.e., longitude and latitude information of the takeoff airport). Once the geofence entering the airport is registered, the mobile phone can acquire the position of the user according to the fixed frequency, judge whether the user enters the area where the airport is located, and further judge whether the fence entering the airport is triggered. However, if the user passes through the airport on the day of non-trip, the fence entering the airport is triggered, the electronic device performs corresponding operations (such as popping up a reminding card) based on the fence entering the airport, and the actual user does not have a trip behavior, so that an incorrect reminding is provided for the user, and the use of the user is affected. For example, the user ordered a ticket for day 12, month 1 on day 11, month 1, and the user's departure airport was the captain airport. After the air ticket is issued, the mobile phone registers the geographic fence entering the airport according to the longitude and latitude of the capital airport, if the geographic fence entering the airport is triggered, a card arriving at the airport is displayed on an interface of the mobile phone, and the card can display air ticket information and prompt a user to check in. If the user passes through the capital airport on day 11, month 2, a geo-fence entering the airport is triggered, and a card indicating the entrance to the airport is popped up on the mobile phone. The mobile phone provides wrong travel reminding for the user and influences the use of the user. Meanwhile, the geographic position of the user is monitored by the mobile phone according to the preset frequency from 11/1/12/1 to judge whether the fence entering the airport is triggered or not, so that the power of the mobile phone is consumed for a long time, and the power consumption of the mobile phone is high.
Some embodiments of the present application provide a method for locating a geographic location to optimize geofences in an electronic device, reducing power consumption of the geofences. For example, in the embodiment of the present application, the electronic device 100 is a mobile phone as an example. In other embodiments, the electronic device may also be a tablet, a smart wearable device, an in-vehicle device, or the like. The application based on the positioning geographic position can be a trip reminding application, such as an airplane trip reminding application and a train trip reminding application. Or a play application such as a buy movie ticket application, a theme park application, etc.
The process of locating the geographic location in the present application is described below by taking an airplane trip reminding application as an example. Fig. 3 is an exemplary interaction diagram of internal modules when the mobile phone performs the method for locating a geographic location in the present application. The method for positioning the geographic position comprises the following procedures:
step 301: and the business logic processing module acquires airport position information and flight time information.
Illustratively, the business logic processing module of the handset may obtain airport location information as well as flight time information. The airport location information may be latitude and longitude information of a takeoff airport. The flight time information may include an expected departure time.
The business logic processing module may request information of the flight time and departure airport from a server of the ticket ordering application (i.e., the first travel application). In one example, the customer service platform (i.e., the server corresponding to the electronic device) is a glory platform, and the ticket ordering application is a cruise crossbar. An authorization relationship exists between a user's honor account (i.e. the user account of the user in a server corresponding to the electronic device) and a user's cruise longitudinal and transverse accounts (i.e. the user account of the user in the cruise longitudinal and transverse directions), when the user orders an airline ticket by using the cruise longitudinal and transverse accounts, the server in the cruise longitudinal and transverse directions sends an order abstract (the order abstract comprises time, flight number and the like) of the airline ticket to a honor platform, and the honor platform sends the order abstract to a corresponding mobile phone A according to the binding relationship between the user's honor account and a terminal (such as the mobile phone A). The service logic processing module of the mobile phone a requests the flight data of the user from the interface of the server running vertically and horizontally according to the information of the order abstract, and the flight data may include complete information of the flight, such as information of a takeoff airport, a destination, a flight number, a seat number, a boarding gate, a ticket state (such as ticket change and ticket refund), and the like. And the server which is vertical and horizontal to the flight returns the flight data to the service logic processing module of the mobile phone A. Optionally, the service logic processing module may query longitude and latitude information of the takeoff airport according to the name of the takeoff airport.
Step 302: and the business logic processing module registers the entrance airport fence and the exit airport fence to the context awareness module.
For example, the business logic processing module may register an airport fence corresponding to the alert function with the context awareness module according to the location information of the airport and the application requirements of the geofence in the alert application.
Optionally, in this example, the service logic processing module registers the entrance airport fence and the exit airport fence with the context awareness module according to the position information of the departure airport. Optionally, the service logic processing module may also register the context awareness module into the airport fence according to the position information of the departure airport. The service logic processing module can also register a target airport fence to the context awareness module according to the position information of the landing airport, and the target airport fence judges whether the position of the user is in the area of the target airport. The application takes the example that the business logic processing module registers the airport fence entrance and the airport fence exit to the context awareness module.
Step 303: the context awareness module registers a first time fence in an airport fence and registers a second time fence out of the airport fence.
For example, the process of registering any geo-fence by the context awareness module may be: after the context awareness module receives indication information indicating that the geofence is registered, registering an effective time fence and an effective geofence. The trigger time of the validation time fence is determined by the business logic processing module. After detecting the trigger of the effective time fence, the context awareness module registers the effective geo fence, and meanwhile, the context awareness module destroys the effective time fence. The effective geofence target latitude and longitude is provided by the business logic processing module. Geofences in this example are exemplified as an inbound airport fence and an outbound airport fence.
This airport fence of advancing includes: a first time fence and an entry geofence. And when the context awareness module responds to the registration instruction of the business logic processing module and registers in the airport fence, triggering the context awareness module to register the first time fence. The first time fence is used to determine whether a registration time for an entry geofence is reached, the first time fence also referred to as an effective time fence for the entry geofence, the entry geofence also being an effective geofence for the entry geofence.
This play airport rail includes: a second time fence and an exit geofence. And when the context awareness module responds to the registration instruction of the business logic processing module and registers the airport fence, triggering the context awareness module to register a second time fence. The second time fence is used to determine whether a registration time for exiting geofence is reached, the second time fence also referred to as an effective time fence for the exiting fence, the exiting geofence also being an effective geofence for the exiting fence.
The trigger condition of the first time fence and the trigger condition of the second time fence may be the same or different. In this example, the trigger condition of the first time fence is the same as the trigger condition of the second time fence. For example, the service logic processing module may indicate that the time length between the detection time and the expected takeoff time is less than or equal to 4 hours, the detection time may be denoted as T, the detection time is the time when the context awareness module detects whether the first time fence or the second time fence is triggered, the expected takeoff time is denoted as T1, if the context awareness module detects that T1-T is less than or equal to 4h, the context awareness module detects that both the first time fence and the second time fence are triggered.
Step 304: the context awareness module detects a first time fence trigger and a second time fence trigger, an entry geofence registered into an airport fence and an exit geofence registered out of the airport fence.
Illustratively, the context awareness module detects a first time fence trigger and registers an entry geofence in the airport fence. In this example, the latitude and longitude of the target entering the geo-fence is the latitude and longitude of the takeoff airport. The entry geofence is used to determine whether the user's location is within the area of the airport. Similarly, the context awareness module detects a second time fence trigger to register a departure geofence in the airport fence. The exit geofence is used to determine whether the user's location is outside the airport premises. Optionally, the target longitude and latitude entering the geofence may be consistent with the target longitude and latitude exiting the geofence.
After the context awareness module registers to enter the geo-fence, the context awareness module may determine whether the location of the user is within an area of a departure airport according to a first preset interval. The first preset interval may be 1 minute, 2 minutes, 10 minutes, etc. Similarly, after the context awareness module registers to leave the geofence, the context awareness module may determine whether the location of the user is outside the area of the takeoff airport according to a first preset interval. After the first time fence is triggered, the context awareness module destroys the first time fence. Similarly, after the second time fence is triggered, the context awareness module destroys the second time fence. The effective time fence is destroyed in time, so that the consumption of electric quantity can be reduced.
For example, the flight information of the user includes: the predicted takeoff time is: 11/20/11/2021, 28/11: 00, takeoff airport: the capital airport. The service logic processing module indicates that the triggering conditions of the first time fence and the second time fence are both: the detection time is separated from the predicted takeoff time by a time length less than or equal to n (such as n-4) hours. The detection time of the context awareness module is 28 days 7:02 at 11 months in 2021, then the context awareness module detects that the first time fence is triggered, registers to enter the geo-fence, and destroys the first time fence, wherein the longitude and latitude of the target entering the geo-fence are the longitude and latitude of the capital airport, and the context awareness module starts to monitor whether the entering geo-fence is triggered (for example, whether the position of the user is in the area of the takeoff airport every 1 minute). Meanwhile, the context awareness module detects a second time fence trigger (detection time 2021, 11, 28, 7:02), registers and destroys the second time fence, the target longitude and latitude of the departure geofence is also the longitude and latitude of the capital airport, and the context awareness module starts to monitor whether the departure geofence trigger (for example, detects whether the user's location is outside the area of the departure airport every 1 minute).
Step 305: the context awareness module detects an entry into the geofence trigger.
Illustratively, the context awareness module detects whether the position of the user is in the area of the takeoff airport according to a second preset interval, and if the context awareness module detects that the position of the user is in the area of the takeoff airport, the context awareness module detects that the user enters the geo-fence trigger. The second preset interval may be 30 seconds, 1 minute, 2 minutes, and more.
Step 306: the context awareness module indicates an entry geofence trigger.
The context awareness module reports the event triggered by entering the geofence to a business logic processing module. In this example, the entry geofence trigger event may also be used as a trigger event for an entry geofence, that is, if the context awareness module detects the entry geofence trigger, it determines that the entry geofence trigger is detected, and may indicate the entry geofence trigger to the business logic processing module.
In some embodiments, the context awareness module reports the entry geofence trigger event to the business logic processing module, while the entry geofence may be destroyed (i.e., unregistered).
Step 307: and the service logic processing module sends indication information for indicating the service presentation module to display the prompt information.
And the service logic processing module sends indication information to the service presenting module, wherein the indication information indicates the service presenting module to display prompt information, and the indication information comprises the prompt information. The prompt message may include: information of the user's entrance to the airport, detailed information of the ticket, etc.
In some embodiments, the service logic processing module may send a first unregistering instruction to the context awareness module while sending the indication information to the service presentation module, the first unregistering instruction being used to instruct the context awareness module to unregister the entry geofence. The context awareness module can unregister the entry geofence in response to the first unregister indication. Optionally, the context awareness module receives the first unregistering instruction, may detect whether an entry geofence is registered, if so, unregisters the entry geofence, and if not, ends the process of unregistering the entry geofence.
In this example, the service logic processing module sends the first deregistration instruction to the context awareness module, which can further ensure that the mobile phone is deregistered after triggering the entry of the mobile phone into the geo-fence, so as to avoid that the mobile phone continues to monitor whether the location of the user is in the airport area, thereby reducing the power consumption.
Step 308: the service presentation module displays a prompt for indicating arrival at the airport.
Illustratively, the service presentation module receives the prompt message sent by the service logic processing module, and displays the prompt message in a card mode, such as displaying the card on a desktop or displaying the card on a negative screen. The display mode may also include a notification mode display, such as: screen locking notification; a mode of voice display of the prompt message; or a prompt message is displayed through a specific vibration frequency.
In some embodiments, the reminder information may be displayed simultaneously in multiple display manners, for example, the reminder information may be displayed in a notification and vibration manner simultaneously. Or simultaneously displaying the prompt information in a card and voice playing mode.
In this example, the display mode may include a card and notification mode, that is, the service presenting module may display the prompt information in a mode of simultaneously displaying the card on the desktop, displaying the card on one negative screen, and displaying the notification. Meanwhile, the prompt information is displayed in various modes, so that the exposure probability of the prompt information can be increased, the probability that a user sees the prompt information is increased, and the problem that the user misses the prompt information and misses a trip is avoided.
Step 309: the context awareness module detects an exit geofence trigger.
This step is similar to step 305, and illustratively, the context awareness module detects whether the location of the user is outside the area of the departure airport according to a second preset interval, and if the context awareness module detects that the location of the user is outside the area of the departure airport, the context awareness module detects the departure geofence trigger. The second preset interval may be set according to practical applications, for example, 30 seconds, 1 minute, 2 minutes, and more.
Step 310: the context awareness module indicates to the business logic processing module the departure from geofence trigger.
The context awareness module reports the event triggered by leaving the geofence to a business logic processing module. In this example, the exit geofence trigger event may also be used as a trigger event for exiting the airport fence, that is, if the context awareness module detects the exit geofence trigger, it determines that the exit airport fence trigger is detected, and may indicate the airport fence trigger to the business logic processing module.
In some embodiments, the context awareness module reports the exit geofence trigger event to the business logic processing module, while the exit geofence may be destroyed.
Step 311: and the service logic processing module sends an end instruction for indicating the service presenting module to stop displaying the prompt message.
For example, when the service logic processing module determines that the airport fence trigger is triggered, an end indication may be sent to the service presentation module, and the end indication may be used to instruct the service presentation module to terminate displaying the prompt message for entering the airport.
In some embodiments, the business logic processing module can send a second unregister indication to the context awareness module, the second unregister indication to instruct the context awareness module to unregister the exit geofence. The context awareness module can unregister the exit geofence in response to the second unregister indication. Optionally, the context awareness module receives the second unregistering instruction, may detect whether an exit geofence is registered, and if so, unregisters the exit geofence, and if not, ends the process of unregistering the exit geofence.
Step 312: and the service presenting module terminates displaying the prompt message.
Illustratively, the service logic presenting module terminates displaying the prompt message, for example, if the prompt message is displayed in the form of a card, the card will disappear from the interface after the service presenting module terminates displaying the prompt message.
In some embodiments, after performing step 310, without performing steps 311 and 312, the service logic processing module may also send a display departure indication to the service presentation module, the departure indication instructing the service presentation module to display departure information for the user from the airport. The departure indication includes takeoff information, which may include: and prompting the user of the information that the airplane takes off. And the service presentation module receives the departure indication and displays the departure information.
In this example, the departure indication may instruct the service presentation module to replace the display content with the departure information of the current scene, for example, the display content of the service presentation module at time T1 is information a (the information a is prompt information for entering an airport), after 1 hour, the departure indication of the service logic processing module instructs the service presentation module to replace the information a with information B (the information B is departure information), and the service presentation module displays the departure information at time T1+1 h. The display mode does not need the service logic module to separately send the termination indication.
In some embodiments, the service logic processing module sends indication information for displaying the prompt information to the service presentation module, and at the same time, the service logic processing module sends a termination indication to the service presentation module, where the termination indication is used to indicate that the service presentation module terminates the last information displayed.
In other embodiments, the service logic processing module may set a display duration threshold, and if the duration for displaying the same information exceeds a preset display duration threshold, the service logic processing module may instruct the service presentation module to terminate displaying the information, for example, the preset display duration threshold is 4 hours, and when the service logic processing module determines that the takeoff information is displayed for 4 hours, the service logic processing module instructs to terminate displaying the takeoff information, and the service presentation module terminates displaying the takeoff information. And a display duration threshold value is set, so that the same information can be prevented from being displayed for a long time.
In this example, the geofences include an effective time fence and an effective geofence, the business logic processing module registers the geofence with the context awareness module, the context awareness module registers the effective time fence of the geofence in response to the registration indication, and the context awareness module registers the effective geofence of the geofence and destroys the effective time fence of the geofence after the effective time fence is triggered. Because the context awareness module does not register the effective geofence before the effective time fence is triggered, the context awareness module does not monitor the position of the user, and the consumption of the electric quantity of the mobile phone is reduced. Meanwhile, false triggering of the effective geo-fence is avoided, and operation based on the geo-fence cannot be executed, so that accuracy of operation based on triggering of the access point fence is improved, and user experience is improved. For example, a user orders an airline ticket in day 11 and 1, after the ticket is issued, the business logic processing module registers the user in an airport fence to the context awareness module, if the expected departure time is 12 months and 1 days, the triggering condition of the first time fence is that the time length from the expected departure time is less than or equal to 4 hours, and if the user passes through the airport in day 11 and 2 days, the user cannot register the user in the geofence because the first time fence in the airport fence is not triggered, and the mobile phone cannot monitor the position of the user, so that the power consumption for positioning the geographic position is reduced.
The method for locating the geographic position in the embodiment of the present application is described in detail below with reference to specific scenarios. The example is illustrated with a scenario of a geofence-based travel reminder application.
FIG. 4 is a schematic diagram illustrating an exemplary entry prompt into an airport. FIG. 5 is a schematic diagram of an exemplary flight travel reminder. The method for locating a geographic position in the embodiment of the present application is specifically described below with reference to fig. 4 and 5.
For example, the case of an airplane departure behavior, the case of a travel crossbar is taken as an application for ticket purchase, and the case of a glory platform is taken as a user service platform. The method comprises the steps that an authorization relation exists between a user's honor account and a user's cruise longitudinal and transverse account, the user orders an airline ticket by using the cruise longitudinal and transverse account, the ticket issuing time of the airline ticket is t0, a server of the cruise longitudinal and transverse orders sends an order abstract (the order abstract comprises time, flight number and the like) of the airline ticket to a honor platform, and the honor platform sends the order abstract to a corresponding mobile phone according to the binding relation between the user's honor account and the mobile phone. The service logic processing module of the mobile phone requests flight data of the user from an interface of a vertical and horizontal server of a flight according to the information of the order abstract, wherein the flight data can comprise complete information of the flight, such as information of a take-off airport, a destination, a flight number, a seat number, a boarding gate, ticket states (such as ticket change and ticket refund) and the like. And the server for navigation and travel returns the flight data to the service logic processing module of the mobile phone. As shown in fig. 5, the service logic processing module obtains the complete flight data of the user at time T0. The business logic processing module obtains airport location information and flight time information (e.g., predicted takeoff time: 2021, 5, month, 6, day 22:40, takeoff airport: Shenzhen Jeans airport). The business logic processing module registers the ingress and egress airport fences with the context awareness module at time T1. The service logic processing module can determine that the triggering conditions of the first time fence and the second time fence are both less than or equal to 4 hours from the expected takeoff time according to the expected takeoff time. When the context awareness module detects that the value of T4-T2 is less than or equal to 4 hours, T4 is the predicted departure time, and T2 is a certain detection time of the first time fence and the second time fence, the context awareness module detects the first time fence trigger at time T2 to register an entering geofence in the airport fence, and the context awareness module detects the second time fence trigger at time T2 to register an exiting geofence in the airport fence. At time T3, the context awareness module detects an entry geofence trigger in the entry geofence, and reports the entry geofence trigger event to the business logic processing module and destroys the entry geofence. And the service logic processing module instructs the service presenting module to display prompt information, and the prompt information instructs the user to enter the airport area. The service presentation module displays the prompt information in a card display manner at time T3, as shown in fig. 4, a card 402 is displayed in an interface 401, and the card 402 includes flight number, departure airport, destination airport, check-in counter, gate information, and the like. The context awareness module monitors whether leaving the geofence triggers at a second preset interval. When the context awareness module detects the exit geofence trigger at time T5, the context awareness module reports the exit geofence trigger event to the business logic processing module, while destroying the exit geofence. The service logic processing module may indicate an indication to the service presentation module to terminate displaying the reminder information. The service presentation module terminates displaying the reminder at time T5, i.e., the service presentation module removes card 402 from interface 401 as in fig. 4 at time T5.
The geofences of the present application can also be used in conjunction with other fences. For example, geo-fences, PUSH fences, and time fences are used in conjunction. The process of using geo-fences with other fences is described below in a specific example.
Fig. 6 is a schematic diagram of an exemplary train trip reminding card.
For example, in the train departure behavior example, the server of the ticket purchasing application is taken as an example of a server of a 12306 application, and the service platform (i.e., a server corresponding to the electronic device) is taken as an example of a glory platform. The business logic processing module of the mobile phone requests the travel data from the 12306 platform (i.e. the server of the ticket buying application). And the 12306 platform returns the journey data to the business logic processing module of the mobile phone. The travel data of the user may include a predicted departure time (e.g., 5 months, 4 days, 9:20 shown in (1) of fig. 6), a predicted arrival time (e.g., 5 months, 6 days, 9:20 shown in (1) of fig. 6), departure station latitude and longitude information, destination station latitude and longitude information, and the like. The business logic processing module registers the PUSH fence, the target fence for each scene, with the context awareness module, wherein the target fence for each scene comprises a target geo-fence (hereinafter also referred to as geo-fence) and a target time fence (hereinafter also referred to as guaranteed time fence). Table 1 shows the scenarios listed in this example, the trigger condition of the geofence, the trigger condition of the guaranteed-time fence, and the PUSH message of each scenario. Wherein, the bottom-protected time fence belongs to the time fence.
TABLE 1
Scene PUSH messages Geo-fencing Bottom-protecting time fence
Arriving departure station Obtaining PUSH information of incoming station Enter the departure station The difference of T1-T is less than or equal to T1
In the course of travel Obtaining PUSH message in journey Leave the departure station T1≤t≤T4
To the destination station Is free of Enter the destination station T4±t2
Leaving the destination station Obtaining outbound PUSH message Leaving the destination station t=T4+t3
In table 1, T is a detection time, T1 is an estimated departure time, T4 is an estimated arrival time, T1 is a first preset time (e.g., T1 ═ 30min), T2 is a delay time provided by the 12306 platform, e.g., 10min, and T3 is a third preset time (e.g., T3 ═ 60 min).
The service logic processing module may set the geofences of each scene and the warranty time fences of each scene according to the trigger conditions in table 1. The service logic processing module may indicate that the trigger condition of the effective time fence in the geofence arriving at the departure station scene is 2 hours before the expected departure time, and the service logic processing module may indicate that the trigger condition of the effective time fence of the geofence in the journey is also 2 hours before the expected departure time. When the context awareness module detects that the difference between the time and the expected arrival time is less than or equal to 2 hours (e.g., 5 months, 4 days, 7:20), the context awareness module registers the effective geofence in the geofence arriving at the departure scene and the effective geofence in the registered journey, that is, it starts to detect whether the geofence arriving at the departure scene is triggered and whether the geofence in the journey is triggered.
If the context awareness module detects that the longitude and latitude of the mobile phone are consistent with the longitude and latitude of the departure station in 5 months, 4 days, 8:20, triggering the geo-fence of the scene of the departure station, namely the context awareness module detects that the geo-fence of the scene of the departure station is triggered. The context awareness module of the mobile phone indicates the geofence trigger of the current context to the business logic processing module. The business logic processing module determines a geofence trigger for the current scenario. And the service logic processing module sends indication information for indicating the service presentation module to display the prompt information to the service presentation module. And the service logic processing module sends a releasing instruction for indicating to release the bottom-guaranteeing time fence to the context awareness module. The context awareness module removes the bottom-guaranteed time fence of the current scene. And the service presenting module displays the prompt message. And the service presentation module displays prompt information arriving at the departure station in a card form. As shown in (1) in fig. 6, a card 602 of a scene of arriving at a departure station is displayed on the desktop interface 601, prompt information of arriving at the departure station, such as a predicted departure time, a predicted arrival time, a car seat number, a destination, ticket gate information and a control 6021, is displayed in the card 602, and when the control 6021 is clicked, a ticket detail page in the 12306 application can be skipped.
In one example, the business logic processing module can indicate a time duration for displaying the card 602, and if it is determined that the time duration for displaying the card 602 exceeds a display time duration threshold, the business logic processing module instructs the business presentation module to terminate displaying the card 602.
When the context awareness module detects a PUSH fence trigger (e.g., receipt of an in-flight PUSH message). And the context awareness module of the mobile phone indicates PUSH fence triggering to the service logic processing module. And the service logic processing module determines to acquire the PUSH message of the current scene. And the service logic processing module sends indication information for indicating the service presentation module to display the prompt information to the service presentation module. And the service logic processing module sends indication information for indicating the removal of the geofence of the current scene and the bottom-guaranteed time fence of the current scene to the context awareness module. The context awareness module disassembles the geofence of the current scene and the warranty time fence of the current scene. And the service presentation module displays the prompt message of the current scene. When the current scene is a trip, the service presentation module displays prompt information as shown in (2) of fig. 6, a card 604 of the scene in the trip is displayed on the desktop interface 603, and prompt information for arriving at the departure station, such as predicted departure time, predicted arrival time, car seat number, destination, a control 6041 and a control 6042, are displayed in the card 604, and if an operation of clicking the control 6041 is detected, a ticket detail page in the 12306 application can be skipped. If the operation of clicking the control 6042 is detected, the function of the arrival reminding can be subscribed.
When the context awareness module detects a guaranteed-time fence trigger (e.g., time up to 5 months, 6 days, 9: 45). The context awareness module of the mobile phone indicates the bottom-guaranteed time fence trigger of the current scene to the service logic processing module. The business logic processing module determines the guaranteed-base time fence trigger of the current scene. And the service logic processing module sends indication information for indicating the service presentation module to display the prompt information to the service presentation module. The service logic processing module sends a release instruction for instructing release of the geo-fence to the context awareness module. The context awareness module disassembles the geofence for the current scene. And the service logic processing module ignores the PUSH message which is acquired from the current scene next time. And the service presenting module displays the prompt message. The service presentation module displays prompt information of a scene of an arrival destination, the service presentation module displays the prompt information as shown in (3) of fig. 6, a card 606 of the scene of the arrival destination is displayed on a desktop interface 605, prompt information of the arrival destination, such as an expected departure time, an expected arrival time, a car seat number, a destination, a control 6061 and information of the arrival destination, is displayed in the card 606, and if an operation of clicking the control 6061 is detected, a ticket detail page in 12306 application can be skipped.
If the context awareness module detects that the longitude and latitude of the mobile phone are consistent with the longitude and latitude of the destination station in 5, 6, 10:20 days, the geofence of the departure destination station scene is triggered, namely the context awareness module detects the geofence trigger of the departure destination station scene. The context awareness module of the mobile phone indicates the geofence trigger of the current context to the business logic processing module. The business logic processing module determines a geofence trigger for the current scenario. And the service logic processing module sends indication information for indicating the service presentation module to display the prompt information to the service presentation module. And the service logic processing module sends a release instruction for indicating release of the bottom-guaranteed time fence to the context awareness module. And the service logic processing module ignores the PUSH message which is obtained from the current scene next time. And the context awareness module removes the bottom-guaranteed time fence of the current scene. And the service presenting module displays the prompt message. The service presentation module displays the prompt information leaving the destination station in the form of a card. The reminder information may be displayed in the form of a notification. The reminder for the departure from destination scenario is not shown in fig. 6.
In this example, the business logic processing module registers a fence comprising a plurality of different functions (dimensions) of a geofence with the context awareness module. The scene perception module monitors information of three different dimensions simultaneously, so that the information of each dimension is mutually compensated under different scenes, and the problem that travel reminding cannot be timely performed on a user due to inaccurate information monitoring is avoided. Meanwhile, due to the fact that a plurality of fences are registered, the geofence with the effective time fence can reduce the consumption of electric quantity, and the application of the geofence is flexible.
It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present embodiment also provides a computer storage medium, in which computer instructions are stored, and when the computer instructions are run on an electronic device, the electronic device executes the above related method steps to implement the method for locating a geographic location in the above embodiment. The storage medium includes: a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The present embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the method for locating a geographic position in the above embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Any of the various embodiments of the present application, as well as any of the same embodiments, can be freely combined. Any combination of the above is within the scope of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (19)

1. A method for locating a geographic location, applied to an electronic device registered with a target geofence, the method comprising:
detecting whether an effective time fence in the target geofences is triggered, wherein the effective time fence trigger is used for indicating the time reaching a preset registered effective geofence;
registering an effective time fence in the target geo-fence if an effective time fence trigger in the target geo-fence is detected;
after registering an effective geofence in the target geofence, detecting whether the effective geofence of the target geofence is triggered, and if the effective geofence trigger of the target geofence is detected, determining that the target geofence is triggered, where the effective geofence trigger of the target geofence is used to indicate that the location of the electronic device is within the target area.
2. The method of claim 1, wherein prior to said detecting whether an effective time fence in said target geo-fences is triggered, said method further comprises:
acquiring travel data of a user;
and registering the effective time fence of the target geo-fence of each scene according to the travel data and the scenes of each trip.
3. The method of claim 1, wherein registering the active one of the target geofences comprises:
according to a current trip scene, acquiring a target position corresponding to the current trip scene from the trip data;
and registering the effective geo-fence of the current trip scene according to the target position, wherein the target area of the effective geo-fence is the area where the target position is located.
4. The method of any of claims 1-3, wherein prior to registering the target geofence, the method further comprises:
acquiring travel data of a user;
registering a target fence of a current scene according to travel data of a user and scenes of all trips, wherein the target fence of the current scene comprises the target geo-fence;
after the determining the target geofence trigger, the method further comprises:
judging whether a travel reminder of the current scene is displayed or not;
and if the travel prompt of the current scene is determined to be displayed, displaying the travel prompt of the current scene.
5. The method of claim 4, wherein if it is determined that the travel reminder of the current scene is displayed, before displaying the travel reminder of the current scene, the method further comprises:
detecting whether a PUSH fence of a first trip application is triggered, wherein the PUSH fence trigger of the first trip application is used for indicating that the electronic equipment receives a PUSH message sent by a server of the first trip application;
if the PUSH fence trigger of the first travel application is detected, judging whether a travel prompt of a current scene is displayed or not;
after the determining to display the travel reminder of the current scene, the method further includes:
and according to the triggered fence, releasing the target fence of the current scene or ignoring the PUSH message of the current scene acquired next time.
6. The method of claim 5, wherein the determining whether to display the travel reminder for the current scene comprises:
if the target fence trigger of the current scene is detected, determining to display the travel reminder of the current scene;
if detecting that the PUSH fence of the first trip application is triggered, analyzing the received PUSH message, and judging whether the PUSH message of the current scene exists in the PUSH message;
if the PUSH message of the current scene is determined to be acquired, determining to display the travel prompt of the current scene;
and if the PUSH message of the current scene is determined not to be acquired, determining to cancel displaying the travel prompt of the current scene.
7. The method of claim 5, wherein the releasing the target fence of the current scene or ignoring a next acquired PUSH message of the current scene according to the triggered fence comprises:
if the PUSH fence trigger of the first travel application is determined, removing the target fence of the current scene;
and if the target fence is determined to be triggered, ignoring the PUSH message of the current scene acquired next time.
8. The method of claim 5, wherein the target fence of the current scene further comprises a target time fence of the current scene;
the detecting whether the target fence of the current scene is triggered includes:
detecting whether a target geofence of the current scene is triggered and detecting whether a target time fence of the current scene is triggered, wherein the target time fence trigger of the current scene is used for indicating that a preset specific time of the current scene is reached.
9. The method of claim 8, wherein the releasing the target fence of the current scene or ignoring a PUSH message of the current scene obtained next time according to the triggered fence comprises:
if the target time fence trigger of the current scene is determined, removing the target geo-fence of the current scene and ignoring the PUSH message of the current scene acquired next time;
if the target geo-fence trigger of the current scene is determined, removing the target time fence of the current scene and ignoring the PUSH message of the current scene acquired next time;
and if the PUSH fence trigger of the first travel application is determined, removing the target geo-fence of the current scene and the target time fence of the current scene.
10. The method of claim 5, wherein before the detecting whether the PUSH fence of the first travel application is triggered, the method further comprises:
if the fact that an authorized relation exists between an authorized object and a user account of a user in a first trip application is detected, registering a PUSH fence of the first trip application, wherein the authorized object comprises an identification of the electronic equipment or the user account of the user in a server corresponding to the electronic equipment.
11. The method according to any one of claims 4 to 10, wherein the scene of travel comprises: a scene of arriving at the departure station, a scene of going on a trip, a scene of arriving at the destination station, and a scene of departing from the destination station.
12. The method of claim 11, wherein the trigger condition for the target time fence of the scene of arrival at the departure station comprises: the time difference value from the predicted departure time is less than or equal to a first preset time length;
the target area of the target geofence of the scene arriving at the origin includes: the area of the departure station.
13. The method of claim 11, wherein the trigger condition for the target time fence for the scene in the trip comprises: detecting that the time is between the expected departure time and the expected arrival time;
a target area of a target geofence of the in-trip scene comprises a preset area outside of the origin.
14. The method of claim 11, wherein the trigger condition for the target time fence of the scene of arrival at the destination: the sum of the time between the time of arrival predicted and the time of error predicted;
the target area of the target geofence of the scene of arrival at the destination station includes: the area of the destination station.
15. The method of claim 11, wherein the trigger condition for the target time fence of the departure destination's scene is: the sum of the estimated arrival time and the preset outbound time is reached;
the target area of the target geofence of the scene leaving the destination station includes: and the destination station is located in a preset area outside the area.
16. The method of claim 11, wherein the trigger condition for the effective time fence in the target geo-fence of the arrival departure scenario and the trigger condition for the effective time fence in the target geo-fence of the in-travel scenario are both: the distance between the estimated departure time and the preset first trigger time is less than or equal to the preset first trigger time;
the trigger condition of the effective time fence in the target geo-fence in the in-trip scenario and the trigger condition of the effective time fence in the target geo-fence in the arrival destination scenario are both: and the distance between the predicted departure time and the preset second trigger time is less than or equal to the preset second trigger time.
17. The method of claim 4, wherein prior to displaying the travel reminder for the current scene, the method further comprises:
stopping displaying the travel reminder of the previous scene;
alternatively, the first and second liquid crystal display panels may be,
and indicating to update the display content from the travel reminder of the last scene to the travel reminder of the current scene.
18. The method according to claim 1, wherein if the target geo-fence registered by the electronic device is a train station fence, the method specifically comprises:
detecting whether an effective time fence in the railway station fence is triggered, wherein the effective time fence trigger is used for indicating the time reaching a preset registered effective geographic fence; if the trigger of the effective time fence in the railway station fence is detected, registering the effective geo-fence in the railway station fence, wherein the target area of the effective geo-fence in the railway station fence is a railway station indicated by a railway ticket; after registering an effective geo-fence in a train station fence, detecting whether the effective geo-fence of the train station fence is triggered, if the effective geo-fence trigger of a target geo-fence is detected, determining that the train station fence is triggered, wherein the effective geo-fence trigger in the train station fence is used for indicating that the position of the electronic equipment is in the train station;
if the target geo-fence registered by the electronic device is an airport fence, the method specifically includes: detecting whether an active time fence in the airport fence is triggered; if the trigger of the effective time fence in the airport fence is detected, registering the effective geo-fence in the airport fence, wherein the target area of the effective geo-fence in the airport fence is the airport indicated in the air ticket; detecting whether an effective geo-fence of an airport fence is triggered after registering the effective geo-fence in the airport fence, and determining that the airport fence is triggered if the effective geo-fence trigger of the airport fence is detected, wherein the effective geo-fence trigger in the airport fence is used for indicating that the position of the electronic device is in the airport.
19. An electronic device, comprising:
one or more processors;
a memory;
and one or more computer programs, wherein the one or more computer programs are stored on the memory, and when executed by the one or more processors, cause the electronic device to perform the method of locating a geographical location of any of claims 1-18.
CN202111604977.0A 2021-12-24 2021-12-24 Method for positioning geographic position and electronic equipment Active CN115022943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111604977.0A CN115022943B (en) 2021-12-24 2021-12-24 Method for positioning geographic position and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111604977.0A CN115022943B (en) 2021-12-24 2021-12-24 Method for positioning geographic position and electronic equipment

Publications (2)

Publication Number Publication Date
CN115022943A true CN115022943A (en) 2022-09-06
CN115022943B CN115022943B (en) 2023-04-14

Family

ID=83064813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111604977.0A Active CN115022943B (en) 2021-12-24 2021-12-24 Method for positioning geographic position and electronic equipment

Country Status (1)

Country Link
CN (1) CN115022943B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709180A (en) * 2022-09-09 2023-09-05 荣耀终端有限公司 Geofence generation method and server
CN116723460A (en) * 2022-09-19 2023-09-08 荣耀终端有限公司 Method for creating personal geofence and related equipment thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255928A (en) * 2010-05-17 2011-11-23 卢涵 Wireless mobile communication terminal with hybrid location function
CN102404297A (en) * 2010-09-19 2012-04-04 浙江易商科技有限公司 Taxis calling system
CN106454720A (en) * 2015-08-10 2017-02-22 三星电子株式会社 Method of managing geo-fence and electronic device thereof
CN109165915A (en) * 2018-08-06 2019-01-08 爱动超越人工智能科技(北京)有限责任公司 The automatic attendance system and method for outdoor study personnel based on LBS and Internet of Things
CN111369797A (en) * 2018-12-25 2020-07-03 航天信息股份有限公司 Vehicle monitoring method, electronic fence construction method, electronic fence and device
CN111479215A (en) * 2020-03-04 2020-07-31 视联动力信息技术股份有限公司 Position information processing method and device, electronic equipment and storage medium
CN113574558A (en) * 2019-03-15 2021-10-29 三星电子株式会社 Electronic device and method for dynamic geo-fencing
CN113783989A (en) * 2021-07-30 2021-12-10 荣耀终端有限公司 Method and device for displaying card
CN113780978A (en) * 2021-08-12 2021-12-10 上海瑾盛通信科技有限公司 Arrival reminding method and device, storage medium and electronic equipment
CN113805988A (en) * 2021-08-12 2021-12-17 荣耀终端有限公司 Method and device for processing card

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255928A (en) * 2010-05-17 2011-11-23 卢涵 Wireless mobile communication terminal with hybrid location function
CN102404297A (en) * 2010-09-19 2012-04-04 浙江易商科技有限公司 Taxis calling system
CN106454720A (en) * 2015-08-10 2017-02-22 三星电子株式会社 Method of managing geo-fence and electronic device thereof
CN109165915A (en) * 2018-08-06 2019-01-08 爱动超越人工智能科技(北京)有限责任公司 The automatic attendance system and method for outdoor study personnel based on LBS and Internet of Things
CN111369797A (en) * 2018-12-25 2020-07-03 航天信息股份有限公司 Vehicle monitoring method, electronic fence construction method, electronic fence and device
CN113574558A (en) * 2019-03-15 2021-10-29 三星电子株式会社 Electronic device and method for dynamic geo-fencing
CN111479215A (en) * 2020-03-04 2020-07-31 视联动力信息技术股份有限公司 Position information processing method and device, electronic equipment and storage medium
CN113783989A (en) * 2021-07-30 2021-12-10 荣耀终端有限公司 Method and device for displaying card
CN113780978A (en) * 2021-08-12 2021-12-10 上海瑾盛通信科技有限公司 Arrival reminding method and device, storage medium and electronic equipment
CN113805988A (en) * 2021-08-12 2021-12-17 荣耀终端有限公司 Method and device for processing card

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709180A (en) * 2022-09-09 2023-09-05 荣耀终端有限公司 Geofence generation method and server
CN116709180B (en) * 2022-09-09 2024-03-22 荣耀终端有限公司 Geofence generation method and server
CN116723460A (en) * 2022-09-19 2023-09-08 荣耀终端有限公司 Method for creating personal geofence and related equipment thereof
CN116723460B (en) * 2022-09-19 2024-04-23 荣耀终端有限公司 Method for creating personal geofence and related equipment thereof

Also Published As

Publication number Publication date
CN115022943B (en) 2023-04-14

Similar Documents

Publication Publication Date Title
US20210076181A1 (en) Method and system for integratedly managing vehicle operation state
CN115022943B (en) Method for positioning geographic position and electronic equipment
KR102004022B1 (en) Coalescing geo-fence events
AU2018333084B2 (en) Lost device detection using geospatial location data
US20150054981A1 (en) Method, electronic device, and computer program product
CN115022459B (en) Travel reminding method and electronic equipment
US20140136012A1 (en) Vehicle association with driver using mobile technologies
US11605280B2 (en) Location identification system and location identification method
CN114374764B (en) Subway trip reminding method and electronic equipment
CN114661381A (en) Subway trip detection method and electronic equipment
KR101626235B1 (en) Traveler hurry status monitor
CN115022461B (en) Subway trip detection method and electronic equipment
CN115016713A (en) Travel event subscription method and electronic equipment
CN115034733B (en) Travel reminding method and electronic equipment
CN115022448A (en) Subway trip detection method and electronic equipment
CN115022271B (en) Travel reminding method and electronic equipment
CN115018436B (en) Travel reminding method and electronic equipment
CN115018437B (en) Travel reminding method and electronic equipment
CN115018435B (en) Travel reminding method and electronic equipment
US20220230546A1 (en) Vehicle dispatch management control device, vehicle dispatch management device, vehicle dispatch management system, vehicle dispatch management method, and computer program product
US20220114898A1 (en) System for determining aircraft turnaround time based on geospatial data and aircraft location data
CN108055401B (en) Elastic frame processing method and device, storage medium and electronic equipment
CN115033308A (en) Subway trip detection method and electronic 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