CN116418831A - Service implementation method based on position location, data processing method and device - Google Patents

Service implementation method based on position location, data processing method and device Download PDF

Info

Publication number
CN116418831A
CN116418831A CN202111652256.7A CN202111652256A CN116418831A CN 116418831 A CN116418831 A CN 116418831A CN 202111652256 A CN202111652256 A CN 202111652256A CN 116418831 A CN116418831 A CN 116418831A
Authority
CN
China
Prior art keywords
bus
data
station
taking
travel
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.)
Pending
Application number
CN202111652256.7A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111652256.7A priority Critical patent/CN116418831A/en
Priority to PCT/CN2022/138753 priority patent/WO2023124986A1/en
Publication of CN116418831A publication Critical patent/CN116418831A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • 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/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • 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/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/42Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for mass transport vehicles, e.g. buses, trains or aircraft
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application discloses a service implementation method based on position location, a data processing method and a device. Can be applied to a terminal. The bus taking service method based on the position location comprises the following steps: when a travel time period is entered, starting position positioning to obtain a current position; and if the current position is a bus stop, executing bus taking service. The travel time period is learned according to historical data of bus taking and traveling. The data processing method comprises the following steps: detecting bus taking payment operation, wherein the bus taking payment operation comprises bus taking payment operation and/or bus taking payment operation; responding to the bus taking payment operation, and acquiring bus station taking data, wherein the bus station taking data comprises time information, current position information and motion state, and the position information comprises longitude and latitude coordinates; and recording the bus station taking data.

Description

Service implementation method based on position location, data processing method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a service implementation method, a data processing method and a device based on location positioning.
Background
With the rapid development of the internet, location-based services (LBS) are increasingly used. Key technologies for location services include location positioning. Position location refers to determining the location of a terminal, such as determining the coordinates of the current location of the terminal, or the type of location of the terminal, such as whether the current location of the terminal is a bus stop.
The buses are used as main urban transportation means in cities, bus station scenes are closely related to lives of people, and the position service surrounding the bus stations can bring more convenience and better use experience for people.
In bus stations or similar scenes, how to better realize position positioning, and further provide better bus travel service for users so as to improve user experience is a problem to be solved at present.
Disclosure of Invention
The embodiment of the application provides a service implementation method based on position location, a data processing method and a device.
In a first aspect, a method for implementing a service based on location positioning is provided, including: when a travel time period is entered, starting position positioning to obtain a current position; and if the current position is a bus stop, executing bus taking service. The travel time period is learned according to historical data of bus taking and traveling.
Optionally, the travel time period includes a commute time period, and the commute time period includes an on-duty commute time period and/or an off-duty commute time period.
Optionally, when entering the travel time period, a position positioning process may be started according to the target bus station, in the position positioning process, whether the current position is the target bus station may be determined each time the current position is obtained according to position positioning, and if so, bus taking service is performed. The target bus station is learned according to the historical data of the bus taking and traveling of the user.
In the implementation manner, the position is positioned only when the travel time period is entered, so that the power consumption of the terminal can be saved; and when the position positioning result is a bus stop, the bus taking service is executed, so that the bus taking travel intelligent service is realized, and the convenience of bus taking of a user is improved. On the other hand, the travel time period is obtained according to the history data learning (data mining) of the bus travel of the user, so that the travel time period accords with the bus taking and traveling habit of the user, and the position positioning can be started based on the bus taking and traveling habit of the user.
In one possible implementation manner, after the starting the position location when the travel time period is entered, the method further includes: if the current position is not a bus station, determining a target bus station which needs to go to in the travel time period, and detecting arrival according to the position and the motion state of the terminal; and if the arrival of the target bus station is determined according to the arrival detection, executing the bus taking service.
In the implementation manner, when the bus stop is not the current position, the terminal determines the target bus stop to be moved to, and when the bus stop is reached, the bus taking service is executed, so that the intelligent service of bus taking and traveling can be realized.
In one possible implementation manner, the determining the target bus station that needs to be moved to in the trip time period, and performing the arrival detection according to the position and the motion state of the terminal, includes: if the travel time period is a commute time period on duty and the current position is the position of the home, detecting whether the user leaves the current position; when the current position is detected to be away, determining a target bus station which needs to be moved to in the commute time period and starting the arrival detection; or if the travel time period is a commute time period of the next shift and the current position is the position of the office place, detecting whether the current position is away from the current position; when it is detected that the current position has been left, a target bus station to which the user needs to travel in the commute time period for the next shift is determined, and the arrival detection is started.
In the implementation manner, when entering the attendance time period of working, firstly determining whether the current position is the position of the home, if so, determining the target bus station when detecting leaving the home, and starting arrival detection; similarly, when entering the attendance time period of the next shift, firstly determining whether the current position is the position of the office place, if so, determining the target bus station when detecting that the bus station leaves the office place, and starting the arrival detection. Because the arrival detection needs to be combined with position positioning (such as satellite positioning), the power consumption overhead of the terminal is high, and by adopting the implementation mode, the arrival detection is only carried out when the arrival detection leaves the home or office location, so that the power consumption of the terminal can be reduced.
In one possible implementation, the detecting whether to leave the current location includes: detecting a signal of a wireless local area network accessed at the current position; when the signal of the wireless local area network cannot be detected, determining that the current position is left.
Alternatively, the terminal may subscribe to an event in which a wireless lan signal (such as a Wi-Fi signal) changes, and when a signal of the wireless lan to which the terminal accesses at the current location cannot be received, the terminal may learn the event and determine that the terminal has left the current location based on the event. Further, at this time, the terminal may cancel the subscription to the event, so as to save power consumption of the terminal.
In one possible implementation, the determining the target bus station to which the travel time period is required to travel includes: inquiring bus stops in a set range taking the longitude and latitude coordinates as the center in bus travel data according to the longitude and latitude coordinates of the current position; the bus travel data comprise at least one longitude and latitude coordinate and bus station information corresponding to the at least one longitude and latitude coordinate; and determining the queried bus stop as a target bus stop which needs to be moved to in the travel time period.
In the implementation manner, the basis for determining the target bus station is bus trip data stored by the terminal, and the bus trip data are obtained through data mining according to bus station taking data collected by the terminal, so that the trip habit (such as a trip line in a certain trip time period) of a user can be reflected, and the target bus station determined according to the bus trip data accords with the trip habit of the user.
In one possible implementation, the arrival detection includes: determining the overtime time of the arrival detection according to the deadline of the trip time period; before the timeout time arrives, positioning according to a motion state duty ratio starting position, obtaining a current position, and determining whether the target bus station is reached or not according to the distance between the current position and the target bus station; the motion duty ratio is used for representing the proportion of the time length of the terminal in motion in the time interval between the current time and the last position locating time to the time interval; and ending the arrival detection when the timeout time arrives.
Optionally, the positioning according to the motion state duty ratio starting position includes: when it is determined that the motion duty cycle is greater than or equal to a set threshold based on the detected motion state, position location is initiated.
In the implementation manner, on one hand, the overtime time of the arrival detection is determined according to the deadline of the travel time period, and the arrival detection process is ended when the overtime time arrives, so that the duration of the arrival detection of the terminal can be controlled, and the power consumption expense (such as the power consumption expense caused by satellite positioning in the arrival detection process) of the terminal caused by the overlong arrival detection is avoided; on the other hand, when the motion duty ratio is greater than or equal to the set threshold value during the arrival detection, the terminal is indicated to be in a motion state most of the time, and the position location (such as satellite location) is performed at the moment, so that the power consumption caused by invalid position location can be reduced.
In one possible implementation, if the root determination does not reach the target bus stop, the method further includes: determining the time for positioning the next starting position according to the distance between the current position and the target bus station and the motion state; when the time for starting the position positioning next time arrives, determining the current motion duty ratio; and if the current moving duty ratio is greater than or equal to the set threshold value, starting position positioning to obtain a current position, and determining whether the target bus station is reached or not according to the distance between the current position and the target bus station.
In the implementation manner, on one hand, the next position positioning time is determined according to the distance between the current position and the target bus station and the motion state of the terminal, and the position positioning is performed only when the position positioning time arrives, so that the time or the times of the position positioning of the terminal can be controlled, and the power consumption expense of the terminal caused by the excessive position positioning is avoided; on the other hand, when the position location time arrives, if the motion duty ratio is greater than or equal to the set threshold value, the terminal is indicated to be in a motion state for most of the time, and at this time, the terminal position location (such as satellite location) is performed, so that the power consumption caused by ineffective position location can be reduced.
In one possible implementation, the determining to reach the target bus station according to the arrival detection includes: obtaining the distance between the longitude and latitude coordinates of the current position and the longitude and latitude coordinates corresponding to the target bus station according to the arrival detection, and determining that the target bus station is reached if the distance is smaller than a set threshold value; or according to the arrival detection, obtaining the distance between the longitude and latitude coordinates of the current position and the longitude and latitude coordinates corresponding to the target bus station and obtaining the cell signal of the current position, and if the distance is smaller than or equal to a set threshold value, the cell signal of the current position is matched with the cell signal of the cell where the target bus station is located and the signal intensity is larger than the set threshold value, determining that the target bus station is reached.
Optionally, after obtaining the cell signal of the current position, if the cell signal of the current position is matched with the cell signal of the cell where the target bus station is located and the signal strength is greater than a set threshold, determining that the target bus station is reached.
In one possible implementation, the method further includes: acquiring a departure station in the travel time period, and executing the bus taking service when the departure station is detected to enter the range of the departure station; and/or acquiring a transfer station in the travel time period, and executing the bus taking service when the range of the transfer station is detected to be entered.
Optionally, the terminal subscribes to a geofence of the departure station and/or the transfer station, and the geofence is used for indicating the geographic range of the departure station and/or the transfer station; and when the terminal detects that the terminal enters the geofence, indicating that the terminal has arrived at the getting-off station and/or the transfer station, and executing bus taking service.
By adopting the implementation mode, the bus taking service can be executed when the bus reaches the transfer station after the bus enters the travel time period, so that the bus taking service can be executed when the bus reaches the bus station on the whole line, and the intelligent service of the bus taking and traveling is realized on the whole travel line.
In one possible implementation manner, the obtaining the get-off station in the travel time period includes: inquiring a bus travel data set, wherein the bus travel data set is learned according to historical bus travel data, the bus travel data set comprises at least one data record, and the data record at least comprises travel time period and bus station information; acquiring a data record which is matched with the travel time period and provided with a departure mark in the bus travel data set, and acquiring a departure station in the travel time period according to bus station information in the data record;
in a possible implementation manner, the acquiring the transfer station in the travel time period includes: inquiring a bus travel data set, wherein the bus travel data set is learned according to historical bus travel data, the bus travel data set comprises at least one data record, and the data record at least comprises travel time period and bus station information; and acquiring a data record which is matched with the travel time period and provided with a transfer identifier in the bus travel data set, and acquiring a transfer station in the travel time period according to bus station information in the data record.
In the implementation manner, since the basis of determining the departure station or the transfer station is bus travel data stored by the terminal, the bus travel data stored by the terminal is determined according to bus station taking data acquired by the terminal, and the travel habit (such as a travel route in a certain travel time period) of the user can be reflected, so that the departure station and/or the transfer station which the user possibly arrives can be determined based on the travel habit of the user, and bus taking service provided by the terminal can be obtained when the user (terminal) arrives at the departure station and/or the transfer station.
In one possible implementation, the method further includes: when detecting user operation related to a bus travel application program, starting position positioning to obtain longitude and latitude coordinates of a current position; and inquiring corresponding bus station information according to the longitude and latitude coordinates of the current position.
In one possible implementation manner, the performing the bus taking service includes at least one of the following:
displaying an identification code, wherein the identification code is used for bus riding payment;
prompting the use of a bus taking application program to pay for bus taking;
recommending an application program for bus taking payment;
Prompting the bus station which arrives currently;
and obtaining the arrival time of the bus at the bus stop where the current position is located, and outputting the arrival time.
In one possible implementation, the method further includes: collecting bus taking and traveling data to obtain bus taking and traveling history data; mining historical data of the bus taking and traveling to obtain bus traveling data for position positioning; the bus travel data comprises at least one data record, and each data record in the at least one data record comprises a travel time period, bus station position information and a bus station name; the bus station position information comprises longitude and latitude coordinates of a bus station and/or a clustering category to which the longitude and latitude coordinates belong.
In one possible implementation manner, the at least one data record in the bus trip data further includes: a boarding and disembarking identifier and/or a transfer identifier.
In one possible implementation manner, the at least one data record in the bus trip data further includes: cell signal information, the cell signal information including a cell identity.
In one possible implementation manner, the collecting the data of the bus traveling includes: acquiring bus station taking data when bus taking payment operation is detected, wherein the bus station taking data comprises time information, current position information and motion state, and the position information comprises longitude and latitude coordinates; the bus taking payment operation comprises bus on-board payment operation and/or bus off-board payment operation.
In a second aspect, a data processing method is provided, including: detecting bus taking payment operation, wherein the bus taking payment operation comprises bus taking payment operation and/or bus taking payment operation; responding to the bus taking payment operation, and acquiring bus station taking data, wherein the bus station taking data comprises time information, current position information and motion state, and the position information comprises longitude and latitude coordinates; and recording the bus station taking data.
In the implementation manner, on one hand, the data acquisition process is started under the drive of an event (namely, bus taking payment operation is detected), so that the data acquisition can be controlled to be performed in a certain time and/or space, the power consumption of a terminal can be saved, and the data acquisition can be performed in a targeted manner; on the other hand, the acquired data accords with the behavior habit of the bus trip of the user, and a data base and a source are provided for the subsequent acquisition of the bus trip data for position location based on the acquired data.
In one possible implementation manner, the bus station taking data further includes: cell signal information, wherein the cell signal information is from a cell signal received by a terminal, and the cell signal information comprises a cell identifier. In the above implementation manner, since the collected bus station riding data includes the cell signal information, the collected bus station riding data can be used as one of the bases of the position location when the position location is performed.
Optionally, the bus station taking data further comprises evaluation information, wherein the evaluation information comprises at least one of verification success times, verification failure times and recall rate; the verification success times are times of verification success of the position locating result when the bus taking payment operation is detected, the verification failure times are times of verification failure of the position locating result when the bus taking payment operation is detected, and the recall rate is determined according to the verification success times and the verification failure times. Because the acquired bus station taking data records comprise the evaluation information, the evaluation information can be used for judging the reliability of the bus station taking data, when the acquired bus station taking data are subjected to data mining, the data with high reliability can be selected for mining according to the evaluation information, and further, when the position is positioned according to the mined data, the reliability can be improved.
In one possible implementation, the method further includes: acquiring bus travel data for positioning according to the acquired bus stop taking data; the bus travel data comprises at least one data record, and each data record in the at least one data record comprises a travel time period, bus station position information and a bus station name; the bus station position information comprises longitude and latitude coordinates of a bus station and/or a clustering category to which the longitude and latitude coordinates belong.
Optionally, the terminal may start data mining (i.e. determine bus trip data for performing position location according to collected bus stop taking data) when a set condition is satisfied, where the satisfaction of the set condition may include at least one of:
setting time to arrive;
a setting event occurs, the setting event comprising at least one of: the performance of the terminal is larger than a set performance threshold, the electric quantity of the terminal is larger than a set electric quantity threshold, the terminal is in a charging state, and the terminal is in a screen-off state and in a screen-off state for a set time.
In one possible implementation manner, the at least one data record in the bus trip data further includes: a boarding and disembarking identifier and/or a transfer identifier.
In one possible implementation manner, the at least one data record in the bus trip data further includes: cell signal information, the cell signal information including a cell identity.
In one possible implementation manner, the obtaining bus trip data for positioning according to the collected bus stop taking data includes: selecting bus station taking data with confidence meeting requirements according to evaluation information included in the bus station taking data; and obtaining the bus travel data for positioning according to the bus station taking data with the confidence meeting the requirements.
Optionally, the confidence meets the bus taking data of the requirement, and at least one of the following conditions is met:
the successful verification times of the position locating result are larger than the set times;
the verification failure times of the position locating result are smaller than the set times;
the recall rate is greater than a set threshold;
the acquisition time is after the specified time.
In the implementation manner, the bus taking data with the confidence meeting the requirements is selected for data mining, so that the bus trip data for positioning obtained by mining can be more reliable.
In one possible implementation manner, the obtaining bus trip data for positioning according to the collected bus stop taking data includes: carrying out spatial clustering on longitude and latitude coordinates in bus station riding data to obtain at least one riding position clustering category, wherein each clustering category in the at least one riding position clustering category corresponds to one longitude and latitude coordinate; acquiring corresponding bus station information according to longitude and latitude coordinates corresponding to the at least one riding position clustering category; counting time information in bus station riding data belonging to the same riding position clustering category to obtain a travel time period corresponding to the riding position clustering category; and determining the travel time period corresponding to the same day according to the travel time periods corresponding to all the riding position clustering categories in the same day in one satellite.
In the implementation manner, the acquired bus stop taking data are subjected to data mining, so that bus trip data for positioning can be obtained. When the data is mined, the longitude and latitude are clustered, and mining processing such as time period statistics is performed on the data corresponding to each clustering type, so that the influence caused by the longitude and latitude positioning error can be reduced, and the reliability can be improved. When data mining is carried out, a travel time period is obtained through mining, and when position positioning is carried out later, the position positioning can be started according to the travel time period.
In one possible implementation, the method further includes: determining a behavior type of corresponding bus taking payment operation according to the motion state in the bus station taking data, wherein the behavior type of the bus taking payment operation is one of taking payment and taking payment; and adding a boarding mark or a alighting mark according to the determined behavior type of the bus taking payment operation.
According to the implementation mode, the behavior type of the bus taking payment operation is mined according to the motion state, so that the on-bus identification or the off-bus identification is added, a basis can be provided for data mining of a subsequent on-bus station, a geofence can be set for the off-bus station as a subsequent on-bus station, and further, the basis is provided for executing bus taking service when entering the geofence.
In one possible implementation, the method further includes: determining transfer stations in each bus station according to each bus station arrived in the same travel time period and the sequence of arriving at each bus station; and setting a transfer identifier in the data record corresponding to the transfer station.
In the implementation mode, the transfer station can be determined through data mining, and then the transfer identifier is set, so that a basis is provided for setting a geofence for the transfer station later, and further executing bus taking service when entering the geofence.
In a third aspect, there is provided a communication apparatus comprising: one or more processors; wherein the instructions of the one or more computer programs, when executed by the one or more processors, cause the communications apparatus to perform the method of any of the first aspect or the method of any of the second aspect.
In a fourth aspect, there is provided a computer readable storage medium comprising a computer program which, when run on a computing device, causes the computing device to perform the method of any of the first aspects or the second aspects.
In a fifth aspect, a chip is provided, coupled to a memory, for reading and executing program instructions stored in the memory to implement the method according to any of the first aspects or the method according to any of the second aspects.
In a sixth aspect, there is provided a computer program product which, when invoked by a computer, causes the computer to perform the method of any of the first aspects or the second aspects.
The advantages of the third aspect to the sixth aspect are described above with reference to the advantages of the first aspect or the second aspect, and the description is not repeated.
Drawings
Fig. 1 is a schematic view of a scenario in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal in an embodiment of the present application;
FIG. 3 is a block diagram of a general implementation of an embodiment of the present application;
fig. 4 is a schematic flow chart of a data acquisition method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a data mining flow provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a box whisker diagram according to an embodiment of the present application;
fig. 7 is a schematic diagram of a bus taking service flow based on position positioning according to an embodiment of the present application;
Fig. 8 is a schematic diagram of a bus taking service flow based on position location in an embodiment of the present application;
fig. 9 is a schematic diagram of an arrival detection flow in an embodiment of the present application.
Detailed Description
Indoor positioning technologies (such as indoor bluetooth beacon-based positioning technologies) do not cover bus stop location positioning well. The satellite positioning technology for outdoor positioning has the problem of high power consumption, and besides the frequent use of satellite positioning by map-type application programs, each terminal equipment manufacturer has more limitations in using satellite positioning capability.
Currently, in order to reduce power consumption caused by satellite positioning, bus station position positioning adopted in the industry is mainly implemented by hardware devices (such as bluetooth beacons, ultra Wideband (UWB) devices, etc.) deployed at a bus station. Taking a Bluetooth beacon as an example, a terminal receives a signal sent by the Bluetooth beacon, and performs bus station position positioning through a fingerprint positioning algorithm according to the signal intensity. The Bluetooth positioning technology is easy to be interfered by external noise signals, the signal stability is poor, and the communication range is small. Moreover, since the hardware device for positioning needs to be arranged at the bus station, maintenance (such as maintenance or replacement of worn hardware devices, or battery replacement, etc.) is required to be continuously performed on the hardware device, and implementation cost is high.
The bus station position locating method needs to depend on external conditions (such as hardware equipment deployment in a bus station), and has limited applicability. The embodiment of the application provides a service implementation method, a data processing method and a device based on position location, which can realize the position location of a bus station without depending on the external conditions and can give consideration to the power consumption of a terminal. If the bus stop is detected to be reached, bus taking service can be provided.
In this embodiment of the present application, the terminal may collect relevant data of the daily riding behavior of the user, perform data processing (data mining) on the collected data, learn to obtain bus travel data of the user, where the learned bus travel data may include a travel time period and information such as a bus stop reached in the travel time period, where the bus riding data may reflect bus riding habits of the user, and may be used as a basis for detecting whether the user goes to the bus stop and reaches the bus stop. If the terminal determines that the user arrives at the bus stop based on satellite positioning and motion state detection according to the learned bus travel data, bus taking service can be provided for the user.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings. It should be understood that the terms "first," "second," and the like in the description and in the claims of the present application and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion, such as a series of steps or elements. The method, system, article, or apparatus is not necessarily limited to those explicitly listed but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
Fig. 1 schematically illustrates a scenario of an embodiment of the present application, including a terminal 100, a card reader 300 configured on a bus 200, a network device 400, and a server 500. After the bus 200 is parked at a station, when a user holds or wears the terminal 100 to get on or off the bus, the card reader 300 configured on the bus 200 may scan a riding identification code (e.g., including a riding two-dimensional code) displayed on a screen of the terminal 100 to make a riding payment, or the card reader 300 may read a near field communication (near field communication, NFC) chip built in the terminal 100 to make a riding payment. The terminal 100 may also communicate with the server 500 through the network device 400 to obtain information of the current station (e.g., including station name, etc.).
The terminal 100 may be a mobile phone, a tablet computer, a wearable device (such as a smart watch) with a wireless communication function, or the like. The terminal 100 has a satellite position location function. Exemplary embodiments of the terminal include, but are not limited to, piggybacking
Figure BDA0003446863410000081
Figure BDA0003446863410000082
Or other operating system device. The terminal may also be other portable devices.
The network device 400, which may also be referred to as a radio access network device, is used to access terminals to devices in a wireless network. Such as a base station (e.g., an access point) may refer to a device in an access network that communicates over the air-interface, through one or more cells, with wireless terminals.
The server 500 may store information about points of interest (point of interest, POI) related to public transportation, and may obtain information about a corresponding bus stop, such as a stop name including the bus stop, according to the location coordinates carried in the query request from the terminal 100, and send the obtained information about the bus stop to the terminal 100.
In this embodiment, when the terminal 100 performs the payment of getting on or off the bus through the code scanning or NFC chip, the current longitude and latitude coordinates may be obtained through the position positioning, and the corresponding bus station name of the bus station may be obtained from the server 500 according to the longitude and latitude coordinates, so as to generate the bus station taking data record including the information of the current time, the longitude and latitude coordinates, the bus station name, and the like. The terminal 100 may obtain a bus trip data set by mining bus stop taking data records generated in a period of time, where the bus trip data set includes at least one bus trip data record, and may include a trip period, information of a bus stop, and the like. The terminal 100 may query the bus travel data set according to the located longitude and latitude coordinates to determine whether to reach a bus stop, and if so, may provide bus taking service.
Exemplary, as shown in fig. 2, is a schematic diagram of one possible structure of the terminal 100. The terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 151, a wireless communication module 152, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a gyro sensor 180A, an acceleration sensor 180B, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K (of course, the terminal 100 may also include other sensors such as a pressure sensor, an acceleration sensor, a gyro sensor, an ambient light sensor, a bone conduction sensor, etc., which are not shown).
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal 100. In other embodiments of the present application, terminal 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The controller may be a neural hub and a command center of the terminal 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
The internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 executes various functional applications of the terminal 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store, among other things, an operating system, code for an application program, and the like. The storage data area may store data (e.g., including bus stop taking data, bus trip data, etc.) recorded during use of the terminal 100.
In addition, the internal memory 121 may include a high-speed random access memory, and may also include a nonvolatile memory, such as one or more magnetic disk storage devices, flash memory devices, universal flash memory (universal flash storage, UFS), and the like. In some embodiments, the processor 110 may cause the terminal 100 to perform the data processing method or the service implementation method based on scene recognition provided in the embodiments of the present application by executing instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor 110.
Of course, the codes of the data processing method or the service method based on the position location and the acquired bus stop taking data, the bus trip data mined based on the acquired bus stop taking data and other information can be stored in the external memory. In this case, the processor 110 may execute code stored in an external memory for implementing the above-described method of the embodiments of the present application through the external memory interface 120.
The external memory interface 120 may be used to connect an external memory card (e.g., micro SD card) to realize the memory capability of the extension terminal 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, information such as bus station taking data and mined bus trip data acquired by the terminal is stored in an external memory card.
The wireless communication function of the terminal 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, a modem processor, a baseband processor, and the like. Based on the wireless communication function, the terminal can obtain longitude and latitude coordinates through satellite positioning, and obtain information of a bus station according to the longitude and latitude coordinates, so that bus station taking data are generated.
Based on the detection data of the acceleration sensor 180B, the terminal 100 can determine a motion state.
Optionally, an NFC chip may be integrated in the terminal 100, so that the terminal may perform bus payment through contactless operation based on the NFC chip.
By way of example, fig. 3 shows a block diagram of one general implementation of an embodiment of the present application. The processing operations shown in fig. 3 may be performed by the same terminal.
As shown in fig. 3, three processes are included in the embodiment of the present application: the method comprises the steps of a bus station scene directional data acquisition process, a process of mining (or learning) acquired data, and a process of bus station arrival detection and bus taking service according to the mined data and combining position positioning.
(1) The data acquisition process may include: when detecting a bus taking payment operation (such as bus taking payment based on code scanning or NFC, including bus taking and/or bus discharging payment operation), the terminal acquires the current time, longitude and latitude coordinates of the current position, motion state and other information, records the information, and obtains a data record, wherein the data record can be called bus taking data or bus taking data record, and the data or data record can be stored in a bus taking data set in the terminal. The bus station taking data set is used for storing historical data of bus taking and traveling.
Optionally, the bus station taking data record may include the following information: time information, location information, and motion status. The position information comprises longitude and latitude coordinates, wherein the longitude and latitude coordinates are acquired by the terminal based on position positioning when the bus taking payment operation is detected. The movement state is a movement state detected by the terminal at or before the detection of the bus taking payment operation (such as a movement state within 5 seconds before the detection of the bus taking payment operation). Further, the bus station taking data record may further include cell signal information, where the cell signal information is obtained from the received cell signal when the terminal detects a payment operation of taking the bus.
The data acquisition process will be described in detail below in conjunction with fig. 4.
(2) The data mining process may include: and excavating (or learning) the data records in the acquired bus taking data set to form bus trip data or bus trip data records, wherein the data or data records can be stored in the bus trip data set in the terminal.
Optionally, the bus trip data record may include the following information: travel time period, bus station position information, bus station information (such as bus station name), and further can also comprise a get-on/off mark. The bus station position information includes longitude and latitude coordinates of a bus station and/or a cluster category to which the longitude and latitude coordinates belong, and the get-on/off identifier includes one of a get-on identifier and a get-off identifier, or includes a get-on identifier and a get-off identifier (in this case, the bus station is indicated to be a get-on station or a get-off station, for example, a transfer station of two buses). For example, if one data record includes a boarding identifier, the corresponding bus station is indicated as a boarding station; if one data record comprises a get-off mark, the corresponding bus station is shown as a get-off station; if one data record comprises a loading mark and a unloading mark, the corresponding bus station is indicated to be a loading station or a unloading station. For another example, if the get-on/off identifier in one data record is equal to 0, the corresponding bus station is shown as the get-on station; if the get-on/off mark in one data record is equal to 1, the corresponding bus station is a get-off station; if the get-on/off mark in one data record is equal to 2, the corresponding bus station is a get-on station or a get-off station.
Further, the bus trip data record may further include: cell signal information, the cell signal information including a cell identity.
According to the data mining process, the place semantic information of the bus station on the user commute line can be mined based on the data collected when the user takes the bus daily, and a basis is provided for the subsequent realization of the bus taking service based on the position positioning.
The data mining process will be described in detail below in conjunction with fig. 5 and 6.
(3) The location positioning and bus taking service process may include: according to the trip time period obtained by excavation (contained in the bus trip data set), when the trip time period is entered, the behavior of the user to the bus stop is detected based on satellite positioning, and when the arrival of the bus stop is detected, the bus taking service is executed. In other cases, when the terminal detects a bus taking intention-related behavior (such as including a user querying a bus stop using a map-like application), the behavior of the user going to the bus stop may be detected based on satellite positioning, and when the terminal detects that the bus stop is reached, the bus taking service is performed. The position location and the position location-based ride service process will be described in detail below in conjunction with fig. 7, 8 and 9.
It should be noted that, in the embodiment of the present application, for some data, such as sensor data, the terminal may collect the data under the condition of being authorized by the user. The data collected by the terminal is stored locally at the terminal, a server or other network equipment is not required to be uploaded, and the safety of related information related to the identity of the user can be ensured.
Referring to fig. 4, a schematic diagram of a data collection flow provided in an embodiment of the present application may be executed by a terminal, or an application program in the terminal for implementing a bus station riding data collection function. The following flow is described taking a terminal as an execution subject.
As shown in fig. 4, the process may include:
s401: the terminal detects bus taking payment operation, wherein the bus taking payment operation comprises bus taking payment operation and/or bus taking payment operation.
In the embodiment of the application, the terminal can support detection of various bus taking payment modes, such as detection of code scanning payment or detection of NFC payment.
Taking the detection of the code scanning payment behavior by the terminal as an example when the bus taking two-dimensional code displayed on the terminal screen is scanned and identified by a card reader arranged on the bus, the terminal can interact with a server on the network side according to the identified user account information so as to carry out the bus taking deduction operation on the user account, and returns payment response information to the terminal, and the terminal can confirm that the bus taking payment operation occurs currently when receiving the payment response information.
Taking the example of detecting NFC payment behaviors by the terminal when the bus gets on or off, when the distance between the terminal and a card reader arranged on the bus is within the effective distance of NFC communication, the card reader reads bus taking account information in the NFC chip and writes information into the account; when the bus is in a bus, when the distance between the terminal and the card reader arranged on the bus is within the effective distance of NFC communication, the card reader reads bus taking account information in the NFC chip, acquires information written in when the bus is in the bus, and determines the deduction amount and deducts money according to the current station. In the above process, when the card reader reads or writes the bus taking account in the NFC chip in the terminal, the terminal may confirm that the bus taking payment operation currently occurs.
S402: the terminal responds to the bus taking payment operation to obtain bus station taking data, wherein the bus station taking data comprises time information, current position information and motion state of the terminal, and the position information comprises longitude and latitude coordinates.
In the step, after the terminal detects the bus taking payment operation, the data related to the current bus taking can be collected to obtain bus taking data of the bus station, and the bus taking data of the bus station is recorded. Each time a bus taking payment operation is detected, a bus taking data record can be generated, and the bus taking data record can be stored in a bus taking data set in the terminal.
The bus station taking data can comprise time information, current position information (such as longitude and latitude coordinates) of the terminal and motion state. Alternatively, the time information may include a date (e.g., year, month, day, week, etc.) and a time (e.g., time of minute, second), which is a time when the terminal currently detects a bus taking payment operation. Optionally, the terminal may obtain the latitude and longitude coordinates of the current position by initiating position location, for example, a position location interface may be built in the terminal, and when the terminal detects a bus taking payment operation, the terminal may initiate a position location process by calling the interface to obtain the latitude and longitude coordinates of the current position. Alternatively, the terminal may obtain the motion state of the terminal according to data collected by a sensor (such as an acceleration sensor) built in the terminal. Optionally, the motion state recorded by the terminal may be a motion state when the terminal detects a payment operation of taking a bus, or may be a motion state for a period of time (for example, within 5 seconds) before the payment operation of taking a bus. The recorded motion state can be used as a follow-up data mining process to judge whether bus taking payment operation occurs when the bus is on or off.
It is understood that the motion state herein may include a motion state and a non-motion state, and the motion state may include a riding state and a non-riding state, and the non-riding state may further include a walking state, a running state, and the like. The non-moving state may include, for example, a resting state.
Optionally, the terminal may further obtain cell signal information contained in the currently received cell signal after detecting the bus taking payment operation, and record the cell signal information into the bus taking data of the bus station. Optionally, the cell signal information may include: cell identification (e.g., cell ID, CID for short). Further, the cell signal information may further include: tracking area identification, operator code, country code, etc. The tracking area identifier is used for identifying the tracking area to which the cell belongs, the operator identifier is used for identifying the operator to which the corresponding cell base station belongs, and the country code is used for identifying the country to which the cell base station belongs.
It is understood that the cell signal may also be referred to as a base station signal. The cell signal may also be a signal transmitted by a bluetooth beacon (or bluetooth base station) deployed at a bus station. It is to be appreciated that signals transmitted by various possible network devices (e.g., including base stations, bluetooth beacons, etc.) may be collectively referred to as wireless signals.
Optionally, the bus taking data may further include evaluation information, where the evaluation information may be used to select a data record with reliability meeting the requirement for data mining in a subsequent data mining process. For example, the evaluation information may include at least one of a verification success number, a verification failure number, and a recall rate. The verification success times are times of successful verification of the position positioning result when the terminal detects bus taking payment operation, the verification failure times are times of failure verification of the position positioning result when the terminal detects bus taking payment operation, and the recall rate is determined according to the verification success times and the verification failure times.
After detecting a bus taking payment operation, the terminal queries a bus trip data record set according to longitude and latitude coordinates obtained based on the current position location to obtain corresponding bus stop information (such as a station name of a bus stop), queries a server according to the longitude and latitude coordinates to obtain corresponding POI information (including the bus stop information such as the station name), if the bus stop information queried from the bus trip data record set is the same as the bus stop information included in the POI information queried from the server, the terminal indicates that the verification is successful, the verification success number in the currently generated data record is increased once, otherwise, the terminal indicates that the verification is failed, and the verification failure number in the currently generated data record is increased once. Further, the terminal calculates and obtains the recall rate according to the verification success times and the verification failure times in the data record.
Alternatively, the recall may be calculated using the following formula:
R=TP/(TP+FN)
wherein, R represents recall rate, TP represents verification success times, and FN represents verification failure times.
S403: the terminal records the acquired bus station riding data.
In the step, a corresponding bus station taking data record can be generated aiming at the bus taking payment operation currently detected by the terminal, and the data record is stored in a bus taking data set. Table 1 exemplarily shows a bus station taking data record.
Table 1: bus station taking data record
Date of day Week of week Time Longitude and latitude Latitude of latitude
2021-06-07 Monday (Monday) 18:43:37 114.06153 22.661812
Cell identification Tracking area identification Operator identification Country code State of motion
1001 9712 460 1 Walking device
It should be noted that, in the example shown in table 1, the values of the information such as the cell identifier, the tracking area identifier, the operator identifier, the country code, the latitude and longitude coordinates in the data record are only exemplary descriptions for illustrating the embodiments of the present application, and do not represent the values in the real scene.
In the implementation manner, on one hand, the data acquisition process is started under the drive of an event (namely, bus taking payment operation is detected), so that the data acquisition can be controlled to be performed in a certain time and/or space, the power consumption of a terminal can be saved, and the data acquisition can be performed in a targeted manner; on the other hand, the acquired data accords with the behavior habit of the bus trip of the user, and a data base and a source are provided for the subsequent acquisition of the bus trip data for position location based on the acquired data.
The terminal can conduct data mining on the collected bus station taking data set to obtain a bus trip data set for location positioning. For example, the terminal may perform data mining on the bus station taking data set according to a set time or period. For example, the terminal may perform data mining on the collected data records at a set time of day (e.g., at night when the terminal load is low).
Referring to fig. 5, a schematic diagram of a data mining flow provided in an embodiment of the present application may be executed by a terminal, or an application program in the terminal for implementing data mining on bus stop taking data. The following flow is described taking a terminal as an execution subject.
In some embodiments, the process may be triggered to start based on user interface operations. For example, embodiments of the present application may provide a user interface that may include a key for initiating a data mining process that, when triggered by a user, initiates the data mining process. In other embodiments, the data mining process may be automatically initiated when a set condition (here a second condition in order to distinguish from a first condition appearing hereinafter) is satisfied. Optionally, the embodiment of the application may allow the user to set whether to allow the automatic start of the data mining procedure in the system setting interface.
Optionally, the meeting the second condition may include meeting at least one of the following conditions:
(1) The set time arrives.
Alternatively, the set time may be set according to the busy state of the terminal. For example, if the terminal is more idle at night than during the day, the terminal may set to start the data mining process at 10 o' clock at night.
(2) An event is set to occur.
Optionally, the setting event includes at least one of:
the performance of the terminal is greater than a set performance threshold, for example, the CPU occupancy rate of the terminal is lower than the set threshold;
the electric quantity of the terminal is larger than a set electric quantity threshold value;
the terminal is in a charging state;
the terminal is off the screen and is in the off-screen state for a set period of time (for example, 40 seconds).
Optionally, before data mining, the terminal may first select bus stop taking data with confidence meeting requirements according to evaluation information included in the bus stop taking data, so as to improve reliability of bus trip data. When the data is mined, the terminal can obtain bus travel data for positioning according to bus stop taking data with confidence meeting requirements. Optionally, if the bus stop taking data record meets at least one of the following conditions, the bus taking data record meets the confidence requirement:
Condition 1: the verification success times of the position locating result are larger than the set times.
Condition 2: the verification success times of the position locating result are smaller than the set times.
Condition 3: the recall rate is greater than the set threshold.
Condition 4: the time indicated by the time information is after the specified time, for example, the date indicated by the time information is within the last 30 days, for example, currently 5 months 1 day, and the data record of the date after 4 months 1 day is the data record satisfying the condition 4.
As shown in fig. 5, the data mining process provided in the embodiment of the present application may include the following steps:
s501: and the terminal performs spatial clustering on longitude and latitude coordinates in bus station riding data to obtain at least one riding position clustering category, wherein each riding position clustering category corresponds to one longitude and latitude coordinate.
In the step, longitude and latitude coordinates in each data record in the bus station riding data set can be clustered based on a clustering algorithm, so that a plurality of riding position clustering categories (clusters) are obtained, and category identifiers are distributed to each category obtained by clustering. The longitude and latitude coordinate positions in each riding position clustering category are similar. For any one category, a longitude and latitude coordinate corresponding to the category can be determined according to all longitude and latitude coordinates in the category, for example, each longitude and latitude coordinate in the category is averaged or other algorithms are adopted, so that a longitude and latitude coordinate corresponding to the category is obtained. Alternatively, the correspondence between the category identifier and the longitude and latitude coordinates may be stored using a correspondence table. Alternatively, the class of the riding position cluster may be added to the bus station riding data record for subsequent data mining.
It can be appreciated that other methods may be used to group (or classify) longitude and latitude coordinates in bus station bus taking data, which is not limited in this embodiment of the present application.
S502: and the terminal acquires corresponding bus station information according to the longitude and latitude coordinates corresponding to each riding position clustering category.
Optionally, the terminal may obtain, from the server, a corresponding POI according to latitude and longitude coordinates corresponding to each riding location cluster category (cluster), where the POI includes bus stop information (for example, a stop name including a bus stop). Optionally, the obtained bus station information may be added to a bus station taking data record.
It can be understood that, the above only takes the example of acquiring the bus station information by querying the POI information, but other methods may be adopted to acquire the bus station information, which is not limited in this embodiment of the present application.
S503: and the terminal calculates and obtains a travel time period according to the time information in the bus station riding data belonging to the same riding position clustering class.
In the bus station taking data set, the clustering categories of the taking positions included in a plurality of data records may be the same, because the user takes the bus and travels with certain regularity, for example, the user takes the bus at the same bus station at about 8 o 'clock in the morning of each day of working days, so the longitude and latitude coordinates in the data records belong to the same clustering category of the taking positions based on the bus station taking data records collected by the terminal of the user at about 8 o' clock in the morning of each working day and the data mining of the steps. In this step, for the bus station taking data records belonging to the same taking position clustering category, the terminal may count the time information in the data records, so as to obtain a travel time period corresponding to the taking position clustering category, for example, including a commuting time period and/or a commuting time period.
Optionally, a box whisker graph statistical analysis method can be adopted to count the travel time period. And for each riding position cluster, adopting a box whisker graph to carry out statistical modeling on riding time, eliminating outliers and calculating a commute time period. Fig. 6 illustrates the principle of a box-whisker plot, taking the minimum value in the box-whisker plot as an example, an inner distance (IQR) of 1.5 times is added from the upper quartile point, the maximum value of this variable in this range is called the maximum value, and the value of the inner distance exceeding 1.5 times is called the outlier (outlier). The following describes a process of counting travel time periods by using the box and whisker chart with reference to fig. 6. Taking the example of time statistics for the data record corresponding to monday, the process may include the following steps: acquiring bus taking data records of a bus station with a day of the week, wherein the clustering categories of the bus taking positions in the data records are the same; sequencing the bus station riding data records according to the sequence of time from front to back; calculating a lower quartile Q1 and an upper quartile Q3 of the time values in the data records; calculating an inter-range IQR of time values in these data records: iqr=q3-Q1; calculating the lower edge LB of the time values in these data records: lb=q1-1.5×iqr; calculate the upper edge UB of the time values in these data records: ub=q3+1.5×iqr; screening out the time values between the upper edge UB and the lower edge LB from the time values in the data records; and calculating the commuting time period on duty according to the time value between the upper edge UB and the lower edge LB, wherein the commuting time period on duty is the commuting time period on duty corresponding to the bus location clustering category on monday.
With such a push, the commute time period on duty and/or the commute time period off duty corresponding to each bus location cluster category can be calculated on each weekday (such as monday to friday).
It can be understood that the above description only uses the box whisker chart statistical analysis method to excavate the travel time period as an example, and other methods may be used to excavate the travel time period, which is not limited in the embodiment of the present application.
S504: and the terminal determines the travel time period corresponding to the day according to the travel time periods corresponding to all the riding position clustering categories in the same day in one satellite.
In this step, for each workday (for example, monday to friday), according to the travel time period corresponding to each bus location cluster category, the travel time period corresponding to the workday can be obtained through statistics. For example, for a working day (such as monday to friday), the working commuting time period of the working day can be obtained by statistics according to the working commuting time periods corresponding to all the bus location clustering categories, and the working commuting time period of the working day can be obtained by statistics according to the working commuting time periods corresponding to all the bus location clustering categories. For example, on monday, the working statistics time period corresponding to the bus location clustering type 1 is 8:00-8:30, and the working statistics time period corresponding to the bus location clustering type 2 is 8:30-9:00, and the working commuting time period corresponding to the monday is 8:00-9:00.
Alternatively, the trip time period of the non-working day can be obtained through statistics based on the bus station taking data record collected by the non-working day (weekend).
According to the data mining flow, the acquired bus stop taking data are subjected to data mining, so that bus trip data for positioning can be obtained. When the data is mined, the longitude and latitude are clustered, and mining processing such as time period statistics is performed on the data corresponding to each clustering type, so that the influence caused by the longitude and latitude positioning error can be reduced, and the reliability can be improved. When data mining is carried out, a travel time period is obtained through mining, and when position positioning is carried out later, the position positioning can be started according to the travel time period.
Optionally, the terminal determines a behavior type of the corresponding bus taking payment operation (the behavior type includes a bus taking payment and a bus taking payment) according to the motion state in the bus taking data of the bus station, and adds the corresponding bus taking identifier according to the determined behavior type of the bus taking payment operation. The terminal may determine, according to the motion state in the bus stop taking data record, whether the bus taking payment operation corresponding to the data record is a bus taking payment operation occurring when the bus is on or a bus taking payment operation occurring when the bus is off. Further, according to the judging result, an on-board mark or an off-board mark can be added in the bus station taking data so as to facilitate the subsequent data mining.
For example, if the motion state in the current bus stop taking data record is a walking state or a stay state, which indicates that the motion state detected by the terminal is the walking state or the stay state for a period of time (for example, within 5 seconds) before the occurrence time of the bus taking payment operation, it may be determined that the bus taking payment operation occurs while the bus is being taken (for a period of time before the bus is taken, the user is generally stationary or walking at a station), and a boarding identification is added to the data record; if the motion state in the current bus station taking data record is a taking state, which indicates that the motion state detected by the terminal is a taking state within a period of time (such as within 5 seconds) before the occurrence time of the bus taking payment operation, it can be determined that the bus taking payment operation occurs while the bus is being taken off (the bus is generally in a running state within a period of time before the bus is taken off), and a taking identifier is added to the data record.
Optionally, the terminal may analyze association between stations (for example, whether a station is a transfer station on a public line) according to a time sequence of the data record and/or the boarding and alighting identifier included in the data record, and if a station is a transfer station on a public line, the transfer identifier may be set in the data record. For example, the transfer stations in each bus station can be determined according to each bus station reached in the same travel time period and the sequence of reaching each bus station; and setting a transfer identifier in the data record corresponding to the transfer station. For example, if the boarding and disembarking identifier included in the data record corresponding to one bus stop indicates that the bus stop is a boarding station or a disembarking station, the bus stop may be determined to be a transfer station.
For example, if a first bus station corresponding to a first cluster category is provided with a departure sign in a commuting time period on the same day in a week, and a second bus station corresponding to a second cluster category in the commuting time period is provided with a departure sign (the first bus station and the second bus station are bus stations corresponding to adjacent data records), then the first bus station is determined to be a transfer station in the commuting time period, and a transfer sign can be added to the first bus station. If a departure sign is set at a third bus station corresponding to a third category in a departure commuting time period in the same day in a week, and a departure sign is set at a fourth bus station corresponding to a fourth cluster category in the departure commuting time period (the third bus station and the fourth bus station are bus stations corresponding to adjacent data records), the third bus station is determined to be a transfer station in the departure commuting time period, and a transfer sign can be added to the third bus station. The transfer station is determined through data mining, and then the transfer identifier is set, so that a basis can be provided for setting a geographic electronic fence for the subsequent transfer station, and further executing bus taking service when entering the electronic fence.
For example, the first data record and the second data record are two adjacent data records collected on the same day (arranged according to time sequence), the first data record corresponds to a first train station (recorded with a cluster type cluster 1), and is a train station (recorded with a train identifier), the second data record corresponds to a second train station (recorded with a cluster type cluster 2), and is a train station (recorded with an uploading identifier), and then the first train station can be determined to be a transfer station, and further the transfer identifier can be set in the first data record.
Optionally, the terminal may further determine a duty ratio of each working day occurrence number in the bus station taking data, and delete a bus station taking data record corresponding to a working day for which the duty ratio is smaller than a set threshold. For example, the number of data records with the date of friday accounts for 2% of the total number of data records of all working days, and is smaller than the set threshold value of 5%, which indicates that the user is likely to go to work on friday according to the bus line of going to work at ordinary times, so that the data records with the date of friday are deleted, and further, the commuting time period of going to and from work is not required to be counted for friday, on one hand, the data mining cost is reduced, and on the other hand, the reliability is improved.
It can be understood that the occupancy rate of the occurrence times of the bus station taking data on the non-working day can be counted according to the bus station taking data on the non-working day, so that the bus station taking data record on the non-working day with the occupancy rate smaller than the set threshold value is deleted.
Optionally, the terminal may further determine a duty ratio of each small occurrence in the bus station taking data according to the cell information in the bus station taking data, and delete a data record corresponding to a cell with a duty ratio smaller than the set threshold. For example, if the number of data records in cell 1 (for example, the cell with cell identifier 1001) accounts for 1% of the total number of all data records, and is smaller than 5% of the set threshold, it indicates that the user rarely appears at the position on the commute time period or the commute route, so that the data record corresponding to the cell can be deleted, and the data record is not needed to be used as the basis for positioning the bus stop position, so that on one hand, the overhead of data mining is reduced, and on the other hand, the reliability can be improved.
Optionally, the terminal may further calculate, for longitude and latitude coordinates corresponding to each riding location cluster category, a distance between the location and the home location, and a distance between the location and the office location, and record the record in a bus trip data record.
Optionally, the terminal may further perform data aging processing to delete outdated data records in the bus taking data set or the bus going data set, for example, delete data records with a date before 6 months, and only reserve data records within 6 months, so as to ensure reliability of location positioning.
It should be noted that, the execution sequence of each step in the data mining flow is only an example, and the embodiment of the present application is not limited thereto.
According to the data mining process, bus trip data for positioning the bus station position can be obtained. Table 2 exemplarily shows one bus trip data record.
Table 2: bus trip data record
Figure BDA0003446863410000161
Figure BDA0003446863410000171
It should be noted that, in the example shown in table 2, the values of the information such as the longitude and latitude coordinates of the cell in the data record are only exemplary descriptions for illustrating the embodiments of the present application, and do not represent the values in the real scene.
Based on bus travel data, the terminal can combine the position location to determine whether the bus stop is reached, and if the bus stop is determined to be reached, bus taking service can be provided.
Referring to fig. 7, a flowchart of a method for implementing a service based on location positioning according to an embodiment of the present application is provided, where the flowchart may be executed by a terminal, or an application program in the terminal for implementing a bus taking service based on location positioning. The following flow is described taking a terminal as an execution subject.
As shown in fig. 7, the process may include the steps of:
s701: when a first condition (such as entering an occurrence time period) is met, the terminal starts position location to obtain a current position.
Optionally, the terminal starting position location when the first condition is satisfied may include one of the following:
case 1: when the travel time period is entered, the terminal starts position location. The travel time period is determined according to bus taking data collected by the terminal, for example, the terminal performs bus taking data collection and data mining according to the embodiment, and obtains a travel time period corresponding to a working day (for example, monday to friday).
The travel time period is learned according to the history data of bus travel, and can be recorded in the bus travel data record. For example, if the terminal determines that the current time is in the morning on a working day (for example, on a day of monday to friday), the terminal may start position location to obtain the current position when determining to enter the commute time period on duty according to the commute time period on duty included in the data record corresponding to the day in the bus trip data.
Optionally, when entering the travel time period, a position positioning process may be started according to the target bus station, in the position positioning process, whether the current position is the target bus station may be determined each time the current position is obtained according to position positioning, and if so, bus taking service is performed. The target bus station is learned according to the historical data of the bus taking and traveling of the user.
Alternatively, the terminal may subscribe to a corresponding time fence for a commute time period to initiate position location to obtain the current position when the current time enters the commute time period. For example, the terminal may subscribe in advance to the commute time period on duty for each workday. If the current time enters the subscribed time fence, the terminal starts the position positioning, for example, the current date is Monday, and when the current time enters the subscribed Monday commute time period, the position positioning is started.
Based on the case 1, the event based on the arrival of the travel time period can be realized, and the position positioning is started, so that the power consumption of the terminal is saved. On the other hand, the travel time period is determined according to the bus taking data (including bus taking time information) acquired by the terminal, so that the travel time period accords with the bus taking habit of the user, and the position positioning can be started based on the bus taking habit of the user.
Case 2: when the terminal detects user operation related to the bus travel application program, position positioning is started to obtain longitude and latitude coordinates, and bus station information is inquired according to the longitude and latitude coordinates.
For example, for the operation behavior of the user on the bus-related application program, the terminal may detect, when detecting that the user operates the bus-related application program, may initiate position location to obtain latitude and longitude coordinates of the current position, and query a corresponding POI according to the latitude and longitude coordinates to obtain the corresponding POI, and further determine whether the current position is a bus stop according to the POI. For example, when the terminal detects that the user opens a map-type application or uses the map-type application to make a bus stop inquiry, the position location may be started.
Based on case 2, position location may be initiated based on user behavior, thereby terminal power consumption may be saved.
S702: if the current position is a bus stop, the process proceeds to S703, otherwise, the process proceeds to S704.
In the step, the terminal can query bus travel data based on longitude and latitude coordinates obtained through position positioning so as to determine whether the current position is a bus stop. And if the longitude and latitude coordinates are matched with longitude and latitude coordinates corresponding to a certain bus station contained in the bus trip data, determining the current position as the bus station. The latitude and longitude coordinates are matched with latitude and longitude coordinates corresponding to a certain bus station contained in bus travel data, and the following two conditions can be included: the longitude and latitude coordinates are the same as longitude and latitude coordinates corresponding to a certain bus station contained in bus travel data; and secondly, the distance between the longitude and latitude coordinates and the longitude and latitude coordinates corresponding to a certain bus station contained in the bus trip data is within a set distance (such as 10 meters).
S703: and the terminal executes the bus taking service.
Optionally, the bus taking service executed by the terminal may include at least one of the following:
(1) The terminal displays an identification code, wherein the identification code is used for bus taking payment, for example, the identification code is a two-dimensional bus taking code, so that a user can conveniently take bus by scanning the code payment.
Based on the bus taking service, when a user arrives at a bus station, the identification code can be automatically displayed through a terminal carried by the user so as to facilitate the user to pay for taking the bus; when the user arrives at the getting-off station by taking the bus, the identification code is automatically displayed through the terminal carried by the user so as to facilitate the user to pay by taking the bus.
(2) And the terminal prompts the bus taking payment to be carried out by using the bus taking application program. The terminal can prompt the user to open an application program for bus taking payment through voice or interface display and other modes so as to carry out bus taking payment.
Based on the bus taking service, when a user arrives at a bus stop, a bus taking application program can be automatically opened through a terminal carried by the user so as to facilitate the user to pay for taking the bus; when a user arrives at a bus stop, the bus taking application program is automatically opened through the terminal carried by the user so as to facilitate the user to pay for taking the bus.
(3) The terminal recommends an application for bus taking payment. The terminal may recommend an application for bus payment to the user.
(4) The terminal prompts the bus station which arrives at present, and the terminal can prompt the information such as the station name of the bus station which arrives at present to the user in a voice or interface display mode.
Based on the bus taking service, when a user arrives at a departure station or a transfer station, the station name of the bus station can be prompted.
(5) The terminal acquires the time information of arrival of the bus at the bus stop, and can prompt the time information to the user. For example, the terminal may obtain, from the server, bus operation information corresponding to the bus stop, such as a time when the bus stop is expected to be reached.
Based on the bus taking service, when a user arrives at a bus stop, the terminal obtains the estimated arrival time of the bus corresponding to the bus stop and prompts the user.
(6) The terminal acquires relevant information of the bus stop, such as temporary stop prohibition of the bus stop, temporary position change and the like, and prompts the information to a user.
(7) When the arrival at the bus stop is detected, and the bus stop is identified as a departure stop in the bus travel data, the terminal can adopt modes such as voice or screen display to carry out arrival prompt.
Based on the bus taking service, the arrival reminding can be performed when the user arrives at the departure station or the transfer station.
It should be noted that, the above only exemplifies several types of bus taking services, and the embodiments of the present application do not limit the types of bus taking services.
S704: the terminal performs arrival detection to continue detecting whether the terminal arrives at the bus stop, and proceeds to S702.
In the arrival detection process, the terminal can dynamically adjust the positioning time interval based on the distance between the current position and the target bus station and the current motion state until the arrival at the target bus station is detected or overtime is achieved.
Optionally, after the terminal starts the position positioning, if the bus station is not positioned within the set duration, or the number of times of executing the position positioning reaches the set threshold, the terminal still does not position the bus station, and then the process is ended, so as to save the power consumption of the terminal.
According to the flow shown in fig. 7 above, since the position location is performed only when the first condition is satisfied, the power consumption of the terminal can be saved; and when the position positioning result is a bus stop, the bus taking service is executed, so that the bus taking travel intelligent service is realized, and the convenience of bus taking of a user is improved. On the other hand, the travel time period can be determined according to the bus taking data (including bus taking time information) acquired by the terminal, so that the travel time period accords with the bus taking habit of the user, and the position positioning can be started based on the bus taking habit of the user.
In some embodiments, based on the flow shown in fig. 7, when entering a trip period, after the terminal starts position location, if it is determined that the current position is not a bus stop based on the located position, the terminal may determine a target bus stop that needs to be moved to during the trip period, and start a stop-arrival detection, so as to determine whether to reach the target bus stop according to the position and the movement state of the terminal, thereby determining whether to reach the bus stop in combination with one or more position location and movement state detections. And if the terminal reaches the target bus station, executing bus taking service.
Optionally, in the above procedure, the process of determining, by the terminal, a target bus station to which the terminal needs to travel in the travel time period includes: and the terminal inquires bus stops in a set range (such as a square and round range of 1 km) which takes the longitude and latitude coordinates as the center in bus travel data stored by the terminal according to the longitude and latitude coordinates of the current position, and determines the inquired bus stops as target bus stops which need to be moved to in the travel time period. If the number of the determined target bus stations is multiple, the arrival detection is respectively carried out for each target bus station. The basis of determining the target bus stop is bus trip data stored by the terminal, and the bus trip data are obtained through data mining according to bus stop taking data collected by the terminal, so that the trip habit (such as trip line in a certain trip time period) of a user can be reflected, and the target bus stop determined according to the bus trip data accords with the trip habit of the user.
In some embodiments, in the process of detecting arrival of the terminal, the time of the next position location can be determined according to the motion state and the time interval between the current time and the time of the last position location, so that the position location is performed timely, and the power consumption of the terminal is reduced.
For example, in the process of detecting arrival of the terminal, the overtime time of the arrival detection can be determined according to the deadline of the trip time period; the terminal may continually detect the motion state until the timeout expires. When the motion duty ratio (the motion duty ratio is used for representing the time interval between the current time and the last position locating time) is larger than or equal to a set threshold value, the terminal can start position locating to obtain longitude and latitude coordinates of the current position, and whether the target bus station is reached or not is determined according to the distance between the longitude and latitude coordinates of the current position and the target bus station, wherein if the distance is larger than the set threshold value, the target bus station can be judged not to be reached, otherwise, the target bus station can be judged to be reached. The threshold value for making the motion duty ratio-related determination may be set in advance, for example, may be set to 80%. When the timeout time of the arrival detection arrives, the terminal ends the arrival detection process.
Wherein the movement ratio can reflect the time ratio of the movement state within a specified time period in the past (such as the time period between the current time and the last position location time), such as 80% of the movement state within the past 5 minutes. In the embodiment of the application, the terminal can support subscription and inquiry of the motion duty ratio. When the subscription mode is adopted, a designated duration, a polling period and a duty ratio threshold value can be preset, the motion duty ratio is subscribed, and when the detected motion duty ratio is greater than or equal to the duty ratio threshold value, the system can inform the subscriber through a callback mode. When the inquiry mode is adopted, the motion duty ratio is subscribed, and the appointed duration is set, so that the time duty ratio of the motion state in the appointed duration in the past can be inquired.
Optionally, in the embodiment of the present application, whether the target bus station is reached may be further determined according to a distance between the current location and the target bus station and by combining a cell signal. For example, the distance between the latitude and longitude coordinates of the current position and the latitude and longitude coordinates corresponding to the target bus station may be obtained according to the arrival detection, and the cell signal of the current position may be obtained, and if the distance is less than or equal to the set threshold, and the cell signal of the current position is matched with the cell signal of the cell where the target bus station is located (the cell signal of the cell where the target bus station is located may be obtained by querying bus travel data) and the signal strength is greater than the set threshold, it is determined that the target bus station is reached.
Optionally, in the embodiment of the present application, whether the target bus station is reached may be further determined according to the cell signal. For example, a cell signal at the current location may be obtained, and if the cell signal at the current location matches a cell signal of a cell in which the target bus station is located (the cell signal of the cell in which the target bus station is located may be obtained by querying bus travel data) and the signal strength is greater than a set threshold, it may be determined that the target bus station is reached.
In the implementation manner, on one hand, the overtime time of the arrival detection is determined according to the deadline of the travel time period, and the arrival detection process is ended when the overtime time arrives, so that the duration of the arrival detection of the terminal can be controlled, and the power consumption expense (such as the power consumption expense caused by satellite positioning in the arrival detection process) of the terminal caused by the overlong arrival detection is avoided; on the other hand, when the motion duty ratio is greater than or equal to the set threshold value during the arrival detection, the terminal is indicated to be in a motion state most of the time, and the position location (such as satellite location) is performed at the moment, so that the power consumption caused by invalid position location can be reduced.
Optionally, if the terminal determines that the target bus station is not reached according to the distance between the current position determined by the current position positioning and the target bus station, the next position positioning time can be determined according to the distance between the current position and the target bus station and the movement speed of the terminal; when the position locating time arrives, if the terminal firstly determines the current motion duty ratio (namely the proportion of the time length of the terminal in motion to the time interval between the current time and the last position locating time), if the motion duty ratio is larger than or equal to a set threshold value, the terminal starts position locating, obtains longitude and latitude coordinates of the current position, and determines whether the terminal arrives at the target bus stop or not according to the distance between the current position and the target bus stop based on the longitude and latitude coordinates of the current position.
In the implementation manner, on one hand, the next position positioning time is determined according to the distance between the current position and the target bus station and the motion state of the terminal, and the position positioning is performed only when the position positioning time arrives, so that the time or the times of the position positioning of the terminal can be controlled, and the power consumption expense of the terminal caused by the excessive position positioning is avoided; on the other hand, when the position location time arrives, if the motion duty ratio is greater than or equal to the set threshold value, the terminal is indicated to be in a motion state for most of the time, and at this time, the terminal position location (such as satellite location) is performed, so that the power consumption caused by ineffective position location can be reduced.
Alternatively, the next position location time may be determined according to the following formula:
Figure BDA0003446863410000201
wherein X represents the interval of the current time from the next position locating time, d represents the distance between the current position and the target bus station, and v represents the movement speed of the terminal.
In some embodiments, if the currently entered travel time period is a commute time period and the current location of the terminal is the home location, the terminal may detect whether to leave the home location; when the terminal detects that the terminal leaves the home position, the terminal determines a target bus station which needs to be moved to in the commuting time period and starts the arrival detection. Because the arrival detection needs to be combined with position positioning (such as satellite positioning), the power consumption overhead of the terminal is high, and by adopting the implementation mode, the arrival detection is performed only when the arrival detection is judged to leave the home, so that the power consumption of the terminal can be reduced.
Alternatively, the terminal may detect whether it leaves the home location by: the terminal detects a signal (such as Wi-Fi signal) of a wireless local area network accessed at a home location; when the signal of the wireless local area network can not be detected, the position where the user leaves home can be judged. By adopting the method, whether the surrounding Wi-Fi list in the past set time length contains the target Wi-Fi signal (here, the Wi-Fi signal of the home position) can be reflected, for example, the surrounding Wi-Fi list in the past 5 minutes contains the Wi-Fi signal sent by the router deployed at home, and after Wi-Fi scanning, a subscriber (here, the terminal or an application program in the terminal for executing the riding service provided by the embodiment of the application) can be notified according to the result.
Optionally, the subscriber (such as an application program in the terminal for implementing the riding service) may subscribe to an event of a change of a wireless local area network signal (such as a Wi-Fi signal), the system may monitor the Wi-Fi signal in the home, compare the received Wi-Fi signal strength with a set threshold, and notify the subscriber in a callback manner when the Wi-Fi signal strength is less than the set threshold. Further, at this time, the terminal may cancel the subscription to the event, so as to save power consumption of the terminal. Optionally, the terminal may also query whether the surrounding Wi-Fi list in the past set time period includes the target Wi-Fi (i.e., wi-Fi signals sent by the router in the home).
In some embodiments, if the currently entered travel time period is a commute time period for work hours and the current position of the terminal is the position of the office location, the terminal may detect whether to leave the position of the office location; when the terminal detects that the terminal leaves the office place, determining a target bus station which needs to be moved to in the commuting time period, and starting arrival detection.
Alternatively, the terminal may detect whether it leaves the office location by: the terminal detects a signal (such as Wi-Fi signal) of a wireless local area network accessed at the position of an office place; when the signal of the wireless local area network cannot be detected, the position where the office place is away can be judged. Optionally, the terminal may subscribe to an event in which a wireless lan signal (such as a Wi-Fi signal) changes, and when a signal of a wireless lan to which the terminal accesses at a location of an office place cannot be received, the terminal may learn the event and determine that the terminal has left the location of the office place based on the event. Further, at this time, the terminal may cancel the subscription to the event, so as to save power consumption of the terminal.
In some embodiments, the terminal may also optionally perform bus taking services when reaching a transfer station. The terminal acquires a transfer station in the current travel time period; and when the terminal detects that the terminal enters the range of the transfer station, executing bus taking service. By adopting the implementation mode, the bus taking service can be executed when the bus reaches the transfer station after the travel time period is entered, so that the bus taking service can be executed when the bus station on the line is reached on the whole line of the user travel, and further the intelligent service of the bus taking travel is realized on the whole travel line.
Optionally, the terminal may subscribe to a geofence of the transfer station, the geofence being used to indicate a geographic range of the transfer station; and when the terminal detects the geofence entering the transfer station, indicating that the transfer station is reached, executing bus taking service.
Optionally, the terminal may determine the transfer station in the current travel time period by querying the bus travel data set. The terminal can query the bus travel data set stored by the terminal, obtain a data record which is matched with the current travel time period and provided with a transfer identifier in the bus travel data set, and obtain a transfer station in the current travel time period according to bus station information in the data record. The basis of determining the transfer station is bus travel data stored by the terminal, the bus travel data stored by the terminal is determined according to bus station taking data acquired by the terminal, and the travel habit (such as a travel route in a certain travel time period) of a user can be reflected, so that the determination of the transfer station which the user possibly arrives based on the travel habit of the user can be realized, and bus taking service provided by the terminal can be obtained when the user (terminal) arrives at the transfer station.
In some embodiments, the terminal may also optionally perform bus taking services when arriving at a departure station. The terminal acquires a get-off station in the current travel time period; and when the terminal detects that the terminal enters the range of the getting-off station, executing bus taking service. Optionally, the terminal may subscribe to a geofence of the departure station, the geofence being used to indicate a geographic range of the transfer station; and when the terminal detects the geofence entering the getting-off station, indicating that the getting-off station has been reached, executing the bus taking service.
Optionally, the terminal may determine the departure station in the current travel time period by querying the bus travel data set. The terminal can query the bus travel data set stored by the terminal, obtain a data record, in which the travel time period is matched with the current travel time period and provided with a departure identifier, in the bus travel data set, and obtain a departure station in the current travel time period according to bus station information in the data record. The basis of determining the getting-off station is bus travel data stored by the terminal, the bus travel data stored by the terminal is determined according to bus station taking data acquired by the terminal, and the travel habit (such as a travel route in a certain travel time period) of a user can be reflected, so that the getting-off station which the user possibly arrives can be determined based on the travel habit of the user, and bus taking service provided by the terminal can be obtained when the user (terminal) arrives at the getting-off station.
In accordance with the above embodiment, taking duty commute as an example, fig. 8 illustrates a flow of a service implementation method based on location positioning. As shown, the process may include the steps of:
s801: and determining the current commuting time period entering the working business based on the data record in the bus trip data set.
S802: and (3) initiating position positioning, obtaining longitude and latitude coordinates of the current position, judging whether the current position is at the home position according to the longitude and latitude coordinates, and if the current position is at the home position, turning to S803.
The longitude and latitude coordinates of the home location can be obtained and stored in advance.
Alternatively, if it is determined that the current location is not the location where the home is located, the present flow may be ended.
S803: subscribing to Wi-Fi notification events.
Based on the subscription event, the terminal may detect a Wi-Fi signal sent by a wireless router set in the home, and when it is detected that the information of the Wi-Fi signal disappears from the Wi-Fi list (for example, because the Wi-Fi signal is weaker or the Wi-Fi signal cannot be received, a service set identifier (service set identifier, SSID) corresponding to the Wi-Fi signal is deleted from the Wi-Fi list), an application program subscribing to the event (in the embodiment of the present application, an application program for providing a bus taking service based on location positioning) may be notified in a callback manner.
S804: inquiring whether a Wi-Fi list contains Wi-Fi signals sent by a wireless router arranged at home or not, if not, indicating that the terminal is at the position where the terminal is away from home currently, and therefore, turning to S805 to determine a target bus station to which the user needs to go in the commute time period; if Wi-Fi signals sent by the wireless router arranged at home are contained in the Wi-Fi list, the Wi-Fi list indicates that the user does not leave home currently, and the step of S810 is carried out to judge whether the time-out is current.
S805: and determining a target bus station to which the user needs to go in the commute time period on the basis of the data record in the bus trip data set.
S806: initiating position location, obtaining longitude and latitude coordinates of the current position, judging whether the bus is at a target bus station according to the longitude and latitude coordinates, if so, turning to S809 to execute bus taking service, otherwise, turning to S807 to start arrival detection flow.
S807: a stop-arrival detection procedure is performed to detect whether a target bus stop is reached.
S808: based on the arrival detection, it is judged whether the target bus stop is reached, and if the target bus stop is reached, the person shifts to S809 to execute the bus taking service.
S809: and executing bus taking service.
S810: judging whether the current time is overtime, if so, ending the flow.
Optionally, in S804 of the above flow, if the Wi-Fi list does not include the Wi-Fi signal sent by the wireless router set in the home, S810 to S812 may also be executed.
S810: and determining a departure station and a transfer station in the commuting time period based on the data record in the bus trip data set.
S811: and acquiring longitude and latitude coordinates of the departure station and the transfer station based on the data record in the bus trip data set.
S812: and subscribing the geofences of the getting-off station and the transfer station according to the longitude and latitude coordinates.
S813: when the geofence is entered, a bus taking service is performed.
For example, as shown in fig. 9, the flow of the arrival detection related flow (S807 to S809) in the flow shown in fig. 8 may be the following steps be performed after the arrival detection flow is started:
s901: and determining the arrival detection timeout time according to the travel time period (the commute time period on duty in the process). The timeout may be determined based on an expiration of the commute time period.
S902: subscription movement duty cycle notification event.
Based on the subscription event, the terminal may continuously detect the motion state and calculate the motion duty ratio, and when the motion duty ratio is greater than or equal to a set threshold value, an application program subscribing to the event (in this embodiment, an application program for providing a bus taking service based on location positioning) may be notified in a callback manner.
S903: an event notification is received indicating that the current motion duty cycle is greater than or equal to the set threshold.
S904: based on the arrival detection timeout event, it is determined whether the current time is timeout, and if not, it goes to S905 to initiate position location, and if timeout, it goes to S913 to end the present flow.
S905: and initiating position positioning to obtain longitude and latitude coordinates of the current position.
S906: and calculating the distance between the current position and the target bus station.
S907: and judging whether the target bus station is reached or not according to the distance between the current position and the target bus station, if the target bus station is reached, switching to S908 to execute bus taking service, otherwise switching to S909 to determine the time of the next position location.
In this step, if the distance is less than or equal to the set threshold, it is determined that the target bus stop is reached.
S908: and executing bus taking service.
S909: and determining the time of the next position positioning according to the distance between the current position and the target bus station and the motion state of the terminal.
S910: when the position locating time arrives, based on the arrival detection timeout time, judging whether the current timeout exists, if not, switching to S911 and determining the motion duty ratio, otherwise switching to S913 to end the process.
S911: and acquiring the motion duty ratio in the time period from the last position locating time to the current position locating time.
S912: whether the motion duty ratio is greater than or equal to a set threshold is determined, if so, the process proceeds to S905 to initiate position location, otherwise, the process proceeds to S909 to determine the next position location time.
S913: unsubscribe (e.g., subscription including a motion duty cycle notification event) ends the process.
It should be noted that, for a specific implementation manner of each step, reference may be made to the foregoing embodiments.
According to one or more embodiments of the present application, based on bus taking-related behaviors or bus taking habits of a user, in combination with motion state detection and satellite positioning, it can be identified whether the user is currently going to a bus stop and has arrived at the stop, and further, when the user arrives at the bus stop, bus taking service is provided. In addition, in the arrival detection process, the frequency of satellite positioning is determined by a motion model, so that the power consumption can be controlled.
The embodiment of the application also provides a computer readable storage medium, which is used for storing a computer program, and when the computer program is executed by a computer, the computer can implement the method provided by the embodiment of the method.
The present application also provides a computer program product, where the computer program product is configured to store a computer program, where the computer program when executed by a computer may implement the method provided by the foregoing method embodiment.
The embodiment of the application also provides a chip, which comprises a processor, wherein the processor is coupled with the memory and is used for calling the program in the memory to enable the chip to realize the method provided by the embodiment of the method.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (30)

1. A method for implementing a location-based service, comprising:
when a travel time period is entered, starting position positioning to obtain a current position; the travel time period is learned according to historical data of bus taking and traveling;
and if the current position is a bus stop, executing bus taking service.
2. The method of claim 1, wherein after initiating position location when entering a travel time period, further comprising:
if the current position is not a bus station, determining a target bus station which needs to go to in the travel time period, and detecting arrival according to the position and the motion state of the terminal;
and if the arrival of the target bus station is determined according to the arrival detection, executing the bus taking service.
3. The method of claim 2, wherein the determining the target bus stop to which the terminal needs to travel during the travel time period and performing the arrival detection based on the location and the movement state of the terminal comprises:
if the travel time period is a commute time period on duty and the current position is the position of the home, detecting whether the user leaves the current position; when the current position is detected to be away, determining a target bus station which needs to be moved to in the commute time period and starting the arrival detection; or alternatively
If the travel time period is a commute time period of the next shift and the current position is the position of the office place, detecting whether the current position is left or not; when it is detected that the current position has been left, a target bus station to which the user needs to travel in the commute time period for the next shift is determined, and the arrival detection is started.
4. A method as claimed in claim 3, wherein said detecting whether to leave the current location comprises:
detecting a signal of a wireless local area network accessed at the current position;
when the signal of the wireless local area network cannot be detected, determining that the current position is left.
5. The method of any of claims 2-4, wherein the determining a target bus stop to which to travel during the travel time period comprises:
inquiring bus stops in a set range taking the longitude and latitude coordinates as the center in bus travel data according to the longitude and latitude coordinates of the current position; the bus travel data comprise at least one longitude and latitude coordinate and bus station information corresponding to the at least one longitude and latitude coordinate;
and determining the queried bus stop as a target bus stop which needs to be moved to in the travel time period.
6. The method of any of claims 2-5, wherein the inbound detection comprises:
determining the overtime time of the arrival detection according to the deadline of the trip time period;
before the timeout time arrives, positioning according to a motion state duty ratio starting position, obtaining a current position, and determining whether the target bus station is reached or not according to the distance between the current position and the target bus station; the motion duty ratio is used for representing the proportion of the time length of the terminal in motion in the time interval between the current time and the last position locating time to the time interval;
and ending the arrival detection when the timeout time arrives.
7. The method of claim 6, wherein if the root determination does not reach the target bus stop, the method further comprises:
determining the time for positioning the next starting position according to the distance between the current position and the target bus station and the motion state;
when the time for starting the position positioning next time arrives, determining the current motion duty ratio;
and if the current moving duty ratio is greater than or equal to the set threshold value, starting position positioning to obtain a current position, and determining whether the target bus station is reached or not according to the distance between the current position and the target bus station.
8. The method of any of claims 2-7, wherein the determining of arrival at the target bus stop based on the arrival detection comprises:
obtaining the distance between the longitude and latitude coordinates of the current position and the longitude and latitude coordinates corresponding to the target bus station according to the arrival detection, and determining that the target bus station is reached if the distance is smaller than a set threshold value; or alternatively
And according to the arrival detection, obtaining the distance between the longitude and latitude coordinates of the current position and the longitude and latitude coordinates corresponding to the target bus station and obtaining the cell signal of the current position, and if the distance is smaller than or equal to a set threshold value, and the cell signal of the current position is matched with the cell signal of the cell where the target bus station is located and the signal intensity is larger than the set threshold value, determining that the target bus station is reached.
9. The method of any one of claims 2-8, wherein the method further comprises:
acquiring a departure station in the travel time period, and executing the bus taking service when the departure station is detected to enter the range of the departure station; and/or
And acquiring a transfer station in the travel time period, and executing the bus taking service when the range of the transfer station is detected to be entered.
10. The method of claim 9, wherein the obtaining the departure station for the travel time period comprises:
inquiring a bus travel data set, wherein the bus travel data set is learned according to historical bus travel data, the bus travel data set comprises at least one data record, and the data record at least comprises travel time period and bus station information;
and acquiring a data record which is matched with the travel time period and provided with a departure mark in the bus travel data set, and acquiring a departure station in the travel time period according to bus station information in the data record.
11. The method of claim 9, wherein the acquiring the transfer station for the travel period comprises:
inquiring a bus travel data set, wherein the bus travel data set is learned according to historical bus travel data, the bus travel data set comprises at least one data record, and the data record at least comprises travel time period and bus station information;
and acquiring a data record which is matched with the travel time period and provided with a transfer identifier in the bus travel data set, and acquiring a transfer station in the travel time period according to bus station information in the data record.
12. The method of any one of claims 1-11, further comprising:
when detecting user operation related to a bus travel application program, starting position positioning to obtain longitude and latitude coordinates of a current position;
and inquiring corresponding bus station information according to the longitude and latitude coordinates of the current position.
13. The method of any of claims 1-12, wherein the performing bus taking service comprises at least one of:
displaying an identification code, wherein the identification code is used for bus riding payment;
prompting the use of a bus taking application program to pay for bus taking;
recommending an application program for bus taking payment;
prompting the bus station which arrives currently;
and obtaining the arrival time of the bus at the bus stop where the current position is located, and outputting the arrival time.
14. The method of any one of claims 1-13, wherein the method further comprises:
collecting bus taking and traveling data to obtain bus taking and traveling history data;
mining historical data of the bus taking and traveling to obtain bus traveling data for position positioning; the bus travel data comprises at least one data record, and each data record in the at least one data record comprises a travel time period, bus station position information and a bus station name; the bus station position information comprises longitude and latitude coordinates of a bus station and/or a clustering category to which the longitude and latitude coordinates belong.
15. The method of claim 14, wherein the at least one data record in the bus trip data further comprises: a boarding and disembarking identifier and/or a transfer identifier.
16. The method of any one of claims 14-15, wherein the at least one data record in the bus trip data further comprises: cell signal information, the cell signal information including a cell identity.
17. The method of any one of claims 14-16, wherein the collecting data of bus travel comprises:
acquiring bus station taking data when bus taking payment operation is detected, wherein the bus station taking data comprises time information, current position information and motion state, and the position information comprises longitude and latitude coordinates; the bus taking payment operation comprises bus on-board payment operation and/or bus off-board payment operation.
18. A method of data processing, comprising:
detecting bus taking payment operation, wherein the bus taking payment operation comprises bus taking payment operation and/or bus taking payment operation;
responding to the bus taking payment operation, and acquiring bus station taking data, wherein the bus station taking data comprises time information, current position information and motion state, and the position information comprises longitude and latitude coordinates;
And recording the bus station taking data.
19. The method of claim 18, wherein the bus stop occupancy data further comprises: cell signal information, wherein the cell signal information is from a cell signal received by a terminal, and the cell signal information comprises a cell identifier.
20. The method of any one of claims 18-19, further comprising:
acquiring bus travel data for positioning according to the acquired bus stop taking data; the bus travel data comprises at least one data record, and each data record in the at least one data record comprises a travel time period, bus station position information and a bus station name; the bus station position information comprises longitude and latitude coordinates of a bus station and/or a clustering category to which the longitude and latitude coordinates belong.
21. The method of claim 20, wherein the at least one data record in the bus trip data further comprises: a boarding and disembarking identifier and/or a transfer identifier.
22. The method of claim 20, wherein the at least one data record in the bus trip data further comprises: cell signal information, the cell signal information including a cell identity.
23. The method according to any one of claims 20-22, wherein the obtaining bus travel data for location positioning from the collected bus stop taking data comprises:
selecting bus station taking data with confidence meeting requirements according to evaluation information included in the bus station taking data;
and obtaining the bus travel data for positioning according to the bus station taking data with the confidence meeting the requirements.
24. The method according to any one of claims 20-23, wherein the obtaining bus travel data for location positioning from the collected bus stop taking data comprises:
carrying out spatial clustering on longitude and latitude coordinates in bus station riding data to obtain at least one riding position clustering category, wherein each clustering category in the at least one riding position clustering category corresponds to one longitude and latitude coordinate;
acquiring corresponding bus station information according to longitude and latitude coordinates corresponding to the at least one riding position clustering category;
counting time information in bus station riding data belonging to the same riding position clustering category to obtain a travel time period corresponding to the riding position clustering category;
And determining the travel time period corresponding to the same day according to the travel time periods corresponding to all the riding position clustering categories in the same day in one satellite.
25. The method of claim 24, wherein the method further comprises:
determining a behavior type of corresponding bus taking payment operation according to the motion state in the bus station taking data, wherein the behavior type of the bus taking payment operation is one of taking payment and taking payment;
and adding a boarding mark or a alighting mark according to the determined behavior type of the bus taking payment operation.
26. The method of any one of claims 20-25, wherein the method further comprises:
determining transfer stations in each bus station according to each bus station arrived in the same travel time period and the sequence of arriving at each bus station;
and setting a transfer identifier in the data record corresponding to the transfer station.
27. A communication device, comprising: one or more processors; wherein the instructions of the one or more computer programs, when executed by the one or more processors, cause the communications apparatus to perform the method of any of claims 1-17 or the method of any of claims 18-26.
28. A computer readable storage medium, characterized in that the computer readable storage medium comprises a computer program which, when run on a computing device, causes the computing device to perform the method of any one of claims 1-17 or the method of any one of claims 18-26.
29. A chip, characterized in that the chip is coupled to a memory for reading and executing program instructions stored in the memory for implementing the method of any one of claims 1-17 or the method of any one of claims 18-26.
30. A computer program product, characterized in that the computer program product, when called by a computer, causes the computer to perform the method of any one of claims 1-17 or the method of any one of claims 18-26.
CN202111652256.7A 2021-12-30 2021-12-30 Service implementation method based on position location, data processing method and device Pending CN116418831A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111652256.7A CN116418831A (en) 2021-12-30 2021-12-30 Service implementation method based on position location, data processing method and device
PCT/CN2022/138753 WO2023124986A1 (en) 2021-12-30 2022-12-13 Positioning-based service implementation method, data processing method, and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111652256.7A CN116418831A (en) 2021-12-30 2021-12-30 Service implementation method based on position location, data processing method and device

Publications (1)

Publication Number Publication Date
CN116418831A true CN116418831A (en) 2023-07-11

Family

ID=86997747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111652256.7A Pending CN116418831A (en) 2021-12-30 2021-12-30 Service implementation method based on position location, data processing method and device

Country Status (2)

Country Link
CN (1) CN116418831A (en)
WO (1) WO2023124986A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151168B (en) * 2018-07-20 2020-08-18 阿里巴巴集团控股有限公司 Switching method and device of riding codes, mobile terminal and readable storage medium
CN109614025B (en) * 2018-11-26 2023-10-31 努比亚技术有限公司 Riding code display control method, mobile terminal and computer readable storage medium
CN110636174B (en) * 2019-10-09 2021-12-28 维沃移动通信有限公司 Bus code calling method and mobile terminal
CN111429746A (en) * 2020-04-09 2020-07-17 Oppo广东移动通信有限公司 Public transport arrival reminding method and device, storage medium and mobile terminal
CN111966439A (en) * 2020-08-25 2020-11-20 维沃移动通信有限公司 Riding code display method and device and electronic equipment

Also Published As

Publication number Publication date
WO2023124986A1 (en) 2023-07-06

Similar Documents

Publication Publication Date Title
US10917514B1 (en) Method and apparatus for activating near field communication card
CN105279957B (en) Message prompt method and device
US9200918B2 (en) Intelligent destination recommendations based on historical data
CN109151168B (en) Switching method and device of riding codes, mobile terminal and readable storage medium
CN108257378B (en) Traffic flow prediction method and device
US20150087264A1 (en) Contextually Aware Mobile Device
CN105182776A (en) Intelligent furniture controlling method and apparatus
WO2021232962A1 (en) Target site prediction method and apparatus, and electronic device and storage medium
CN104798420A (en) System and method for pilot sequence design in a communications system
CN105023020A (en) Semantic labeling apparatus and method thereof
CN108171965B (en) Arrival reminding method and device, storage medium and mobile terminal
CN105138584A (en) Method and apparatus for intelligently reminding vehicle restriction
Higuchi et al. Mobile devices as an infrastructure: A survey of opportunistic sensing technology
CN114661381B (en) Subway trip detection method and electronic equipment
WO2023071804A1 (en) Location positioning-based service implementation method, and data processing method and apparatus
CN105306690B (en) A kind of method and apparatus of processing communication information
CN107995367B (en) Arrival reminding method and device, storage medium and mobile terminal
CN106156207A (en) Reminder time amending method and device
CN116033343B (en) Card display method and electronic equipment
CN116418831A (en) Service implementation method based on position location, data processing method and device
CN115038053B (en) Travel reminding method and electronic equipment
CN115061740A (en) Application program processing method and device
CN113077370A (en) City function attribute identification method, equipment, medium and product of geographic tile
CN106546242A (en) Location estimation method and device
CN117295008B (en) Information pushing method and device

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