CN112102644A - Riding positioning method and device - Google Patents

Riding positioning method and device Download PDF

Info

Publication number
CN112102644A
CN112102644A CN201910527726.3A CN201910527726A CN112102644A CN 112102644 A CN112102644 A CN 112102644A CN 201910527726 A CN201910527726 A CN 201910527726A CN 112102644 A CN112102644 A CN 112102644A
Authority
CN
China
Prior art keywords
riding
point
time
points
time point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910527726.3A
Other languages
Chinese (zh)
Other versions
CN112102644B (en
Inventor
高兆远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910527726.3A priority Critical patent/CN112102644B/en
Publication of CN112102644A publication Critical patent/CN112102644A/en
Application granted granted Critical
Publication of CN112102644B publication Critical patent/CN112102644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/123Traffic control systems for road vehicles indicating the position of vehicles, e.g. scheduled vehicles; Managing passenger vehicles circulating according to a fixed timetable, e.g. buses, trains, trams

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)
  • Navigation (AREA)

Abstract

The embodiment of the application discloses a riding positioning method and a riding positioning device, wherein the method comprises the following steps: the method comprises the steps of obtaining a riding time set corresponding to a user identification, determining a first riding time point and a second riding time point from the riding time set, obtaining a first riding type corresponding to the first riding time point when the fact that a time interval between two adjacent riding time points is within a preset time range is detected, determining candidate riding position points from a traveling path corresponding to the first riding time point when the first riding type is a ticket riding type, obtaining the interval distance between the second riding position point and the candidate riding position points, and selecting a target riding position point from the candidate riding position points based on the interval distance. The scheme can improve the accuracy of positioning the target riding position point.

Description

Riding positioning method and device
Technical Field
The application relates to the technical field of communication, in particular to a riding positioning method and device.
Background
When a user takes a bus, the user can identify the getting-on station of the user through the card swiping behavior of the user when taking the bus, but the user can not accurately identify the getting-off station of the user because the user does not need to swipe the card when getting-off. The determination of the user getting-off station is important for data such as network optimization, passenger flow migration, full vehicle load and the like of the bus, and the determination of the user getting-off station in the bus is not accurate enough at present.
Disclosure of Invention
The embodiment of the application provides a riding positioning method and device, which can improve the accuracy of positioning a target riding position point.
The embodiment of the application provides a riding positioning method, which comprises the following steps:
acquiring a riding time set corresponding to a user identifier, wherein the riding time set comprises a plurality of riding time points arranged according to a time sequence;
determining a first riding time point and a second riding time point from the riding time set, wherein the first riding time point and the second riding time point are two adjacent riding time points, and the first riding time point is positioned before the second riding time point;
when the time interval between two adjacent riding time points is detected to be within a preset time range, acquiring a first riding type corresponding to the first riding time point;
when the first taking type is a ticket taking type, determining candidate taking position points from a driving path corresponding to a first bus number from the first taking time point, wherein the driving path comprises a plurality of taking position points corresponding to the first bus number from the first taking time point;
acquiring a spacing distance between a second riding position point and the candidate riding position point, wherein the second riding position point is a riding position point corresponding to the second riding time point;
and selecting a target riding position point from the candidate riding position points based on the interval distance.
Correspondingly, the embodiment of the present application further provides a riding positioning device, including:
the system comprises a set acquisition module, a processing module and a processing module, wherein the set acquisition module is used for acquiring a riding time set corresponding to a user identifier, and the riding time set comprises a plurality of riding time points arranged according to a time sequence;
the time point determining module is used for determining a first riding time point and a second riding time point from the riding time set, the first riding time point and the second riding time point are two adjacent riding time points, and the first riding time point is positioned before the second riding time point;
the type obtaining module is used for obtaining a first riding type corresponding to the first riding time point when the time interval between two adjacent riding time points is detected to be within a preset time range;
the position point determining module is used for determining candidate riding position points from a traveling path corresponding to the first ride time point to the first ride number when the first ride type is a ticket ride type, wherein the traveling path comprises a plurality of riding position points corresponding to the first ride time point to the first ride number;
the distance acquisition module is used for acquiring the interval distance between a second riding position point and the candidate riding position point, wherein the second riding position point is a riding position point corresponding to the second riding time point;
and the selecting module is used for selecting a target riding position point from the candidate riding position points based on the interval distance.
Optionally, in some embodiments, the location point determining module may include a determining sub-module, an obtaining sub-module, and a location point determining sub-module, as follows:
the determining submodule may be configured to determine, when the first taking type is a ticket taking type, a travel path of the first taking time point corresponding to the first vehicle number and a first taking position point corresponding to the first taking time point;
the obtaining submodule can be used for obtaining a plurality of riding position points corresponding to the driving path;
the position point determining submodule may be configured to determine candidate riding position points from the plurality of riding position points based on the first riding position point.
In this case, the position point determining submodule may be specifically configured to determine a second riding position point corresponding to the second riding time point, determine a driving direction of the first riding time point corresponding to the number of cars based on a position relationship between the first riding position point and the second riding position point, and determine a candidate riding position point located behind the first riding position point from the plurality of riding position points based on the driving direction.
Optionally, in some embodiments, the selecting module may include a first selecting submodule and a second selecting submodule, as follows:
the first selection submodule can be used for selecting target candidate riding position points, the spacing distance between which and the second riding position point is within a preset distance range, from the candidate riding position points;
the second selection submodule may be configured to select a target riding position point from the target candidate riding position points.
Then, at this time, the second selection submodule may be specifically used for
Acquiring the route length of a walking route between the second riding position point and the target candidate riding position point;
and selecting target riding position points from the target candidate riding position points based on the route length.
Optionally, in some embodiments, the second selection submodule may include a time interval obtaining submodule, a riding time obtaining submodule, and a third selection submodule, as follows:
the time interval obtaining submodule can be used for obtaining a time interval between the first riding time point and the second riding time point;
the riding time obtaining submodule can be used for obtaining the riding time required by a user from a first riding position point corresponding to the first riding time point to the second riding position point when the user transfers at the target candidate riding position point;
the third selection submodule may be configured to select a target riding position point from the target candidate riding position points based on a difference between the riding time and the time interval.
In this case, the riding time obtaining sub-module may be specifically configured to obtain a walking speed corresponding to the user identifier and a vehicle traveling speed corresponding to the first riding time point for the first riding time number, obtain a traveling time for the vehicle to travel from the first riding position point to the target candidate riding position point based on the vehicle traveling speed, obtain a walking time for the user to walk from the target candidate riding position point to the second riding position point based on the walking speed, and merge the traveling time and the walking time to obtain a riding time required for the user to travel from the first riding position point corresponding to the first riding time point to the second riding position point when the user changes the target candidate riding position point.
Optionally, in some embodiments, the taking location device may be further specifically configured to, when the first taking type is not a ticket taking type, obtain a second taking type corresponding to the second taking time point, and when the second taking type is a ticket taking type, determine that the first taking position point corresponding to the first taking time point is a target taking position point.
Optionally, in some embodiments, the taking location device may be further specifically configured to, when the second taking type is not a ticket taking type, acquire the second taking time point corresponding to the second number of vehicles, when the first number of vehicles is the same as the second number of vehicles, determine the second taking position point corresponding to the second taking time point as a target taking position point, and when the first number of vehicles is different from the second number of vehicles, determine the first taking position point corresponding to the first taking time point as the target taking position point.
In addition, a storage medium is further provided, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform steps in any one of the riding positioning methods provided in the embodiments of the present application.
The method can obtain a riding time set corresponding to a user identifier, the riding time set comprises a plurality of riding time points arranged in time sequence, a first riding time point and a second riding time point are determined from the riding time set, the first riding time point and the second riding time point are two adjacent riding time points, the first riding time point is positioned before the second riding time point, when the time interval between the two adjacent riding time points is detected to be within a preset time range, a first riding type corresponding to the first riding time point is obtained, when the first riding type is a ticket riding type, a candidate riding position point is determined from a traveling path corresponding to the first riding time point from the first riding time point, wherein the traveling path comprises a plurality of riding position points corresponding to the first riding time point, and the interval distance between the second riding position point and the candidate riding position point is obtained, and selecting a target riding position point from the candidate riding position points based on the interval distance. The scheme can improve the accuracy of positioning the target riding position point.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a ride positioning system provided in an embodiment of the present application;
fig. 2 is a first flowchart of a method for positioning a vehicle according to an embodiment of the present application;
fig. 3 is a second flowchart of a vehicle taking location method provided by the embodiment of the present application;
fig. 4 is a first schematic diagram of a departure point when both the front and rear routes are buses according to the embodiment of the present application;
fig. 5 is a second schematic diagram illustrating a getting-off point when both the front and rear routes are buses according to the embodiment of the present application;
fig. 6 is a schematic diagram of obtaining a departure point when a previous trip is a subway according to an embodiment of the present application;
fig. 7 is a schematic view of obtaining a departure point when a subway with the same train number has a forward and backward stroke according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a ride positioning device provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a network device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term "module" as used herein may be considered a software object executing on the computing system. The different components, modules, engines, and services described herein may be considered as implementation objects on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the riding positioning method can be the riding positioning device provided by the embodiment of the application or network equipment integrated with the riding positioning device, wherein the riding positioning device can be realized in a hardware or software mode. The network device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer. Network devices include, but are not limited to, computers, network hosts, a single network server, multiple sets of network servers, or a cloud of multiple servers.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a riding positioning method provided in an embodiment of the present application, taking a riding positioning device integrated in a network device as an example, the network device may obtain a riding time set corresponding to a user identifier, where the riding time set includes a plurality of riding time points arranged in a time sequence, determine a first riding time point and a second riding time point from the riding time set, where the first riding time point and the second riding time point are two adjacent riding time points, the first riding time point is located before the second riding time point, when it is detected that a time interval between the two adjacent riding time points is within a preset time range, obtain a first riding type corresponding to the first riding time point, and when the first riding type is a ticketing riding type, determine a candidate riding position point from a traveling path of the first riding time point corresponding to the first riding time point, the driving path comprises a plurality of riding position points corresponding to the first riding time point and the first riding time, the interval distance between the second riding position point and the candidate riding position point is obtained, the second riding position point is the riding position point corresponding to the second riding time point, and the target riding position point is selected from the candidate riding position points based on the interval distance.
Referring to fig. 2, fig. 2 is a schematic flow chart of a riding positioning method according to an embodiment of the present application. The specific flow of the riding positioning method provided by the embodiment of the application can be as follows:
201. and acquiring a riding time set corresponding to the user identification.
The user identifier may be an identifier characterizing characteristics of a user, and may correspond to a specific user, and may obtain data corresponding to the corresponding user through the user identifier, for example, the user identifier may be a user name, a nickname, an identification number, a mobile phone number, or the like.
In an embodiment, since the user can take a car by swiping a traffic card, when the taking information related to the taking of the user is required to be collected, the user identifier may also be an identifier corresponding to the traffic card held by the user, for example, the user identifier may be a traffic card ID corresponding to the traffic card held by the user, a unique number on the traffic card, or the like.
The riding time set can be a set comprising a plurality of riding time points, and the riding time set can be established according to the collected riding time points. For example, a set of riding times may include a plurality of riding time points arranged in a time sequence.
The riding time point may be time point information representing riding time of the user, for example, after the user gets on the vehicle and swipes the card, the time point when the user swipes the card may be identified according to the card swiping operation of the user, and the time point may be taken as the riding time point. Because the user can carry out the action of taking a bus for many times, namely the user can carry out the operation of swiping the card for many times, a plurality of riding time points can be collected and arranged according to the time sequence, and a riding time set is obtained.
In practical application, a riding time set corresponding to a user identifier may be obtained, where the riding time set may include a plurality of riding time points arranged in time sequence. For example, the identification request of the transportation card corresponding to the user identifier may be triggered according to the card swiping operation of the user. And acquiring a card swiping time point corresponding to the identification request according to the identification request, and taking the card swiping time point as a riding time point. And then, acquiring all riding time points corresponding to the user identification within a preset time period according to the user identification, and storing all riding time points corresponding to the user identification into a riding time set.
For example, after the riding time set corresponding to the user identifier of the user a is obtained, the riding time set may be represented in a vector form, for example, the riding time set may be represented as ('20181001105901', '20181001113020', '20181002192913',. '20181016210321'), where "20181001105901" in the riding time set may represent a specific riding time point, which is represented as that the riding time point in the riding behavior of the user a is 10 months, 1 st, 10 th, 59 minutes, and 01 seconds in 2018.
In an embodiment, the riding time set may obtain all riding time points corresponding to the user identifier within a preset time period. For example, all riding time points corresponding to the user identifier within one day may be obtained, and the riding condition of the user within one day may be obtained through calculation. Since the user may have the riding behavior within the two-day boundary time, all riding time points corresponding to the user identifier within one week can be obtained, and the riding condition of the user within one week can be obtained through calculation. The preset time period obtained by the riding time point can be adjusted according to the actual situation.
In an embodiment, in order to improve the accuracy of acquiring the riding time set, all acquired riding time points may be further distinguished according to the user identifier, and the repeated riding time points corresponding to the same user identifier are deleted. For example, initial riding time points of a plurality of users in a preset time period may be obtained according to a plurality of times of card swiping operations of the plurality of users, each time of card swiping operation corresponds to one initial riding time point, and each initial riding time point may correspond to a specific traffic card, that is, a specific user identifier. After the plurality of initial riding time points are obtained, the plurality of initial riding time points can be classified according to the user identification, and a riding time set corresponding to each user identification is obtained.
After the riding time set corresponding to each user identifier is obtained, a plurality of riding time points in each riding time set can be detected, when it is detected that the time interval between two adjacent riding time points is within the preset repeated time point range, for example, when it is detected that the time interval between two adjacent riding time points is only 5 seconds, it can be considered that the user swipes a card more than once, or the user swipes a card for another person, at this time, the redundant initial riding time points can be deleted, the riding time set corresponding to the user identifier is obtained, so that the riding time set corresponding to the user identifier does not include the riding time points identified due to repeated swiping of the card, swiping of a wrong card, swiping of another person, and the like. And after the redundant initial riding time points are deleted, obtaining a riding time set corresponding to the user identification, wherein each riding time point corresponds to a unique primary travel of the user.
In an embodiment, the preset repeat time point range may be set according to an actual situation, and the preset repeat time point range may be adjusted by considering situations such as a user swiping a card by mistake, a repeated card swiping, a card swiping by another person, and the like.
202. And determining a first riding time point and a second riding time point from the riding time set.
In practical applications, since the riding time set includes a plurality of chronologically arranged riding time points, a plurality of sets of first riding time points and second riding time points can be determined from the riding time set, the first riding time points and the second riding time points are two adjacent riding time points, and the first riding time points are located before the second riding time points, so that a plurality of pairs of riding time points including the first riding time points and the second riding time points can be determined from the riding time set.
203. And when the time interval between two adjacent riding time points is detected to be within a preset time range, acquiring a first riding type corresponding to the first riding time point.
The riding types can be used for distinguishing different types of vehicles, for example, the riding types specifically include buses, subways and the like. According to the first riding type corresponding to the first riding time point, the specific type of the vehicle taken by the user after the user swipes the card at the first riding time point can be determined.
In practical applications, for example, a time interval between a first riding time point and a second riding time point in a plurality of pairs of acquired riding time points may be acquired to obtain a time interval corresponding to each pair of riding time points, when it is detected that the time interval between two adjacent riding time points in the riding time points is within a preset time range, two trips corresponding to the two adjacent riding time points in the riding time points may be determined as transfer trips, that is, a user may experience a vehicle transfer behavior between the two riding time points, and after the user swipes the first vehicle at the first riding time point, the user swipes the second vehicle at the second riding time point. At this time, a first riding type corresponding to the first riding time point may be obtained, for example, the first riding type corresponding to the first riding time point is a bus, that is, the first riding time point is a riding time point obtained by swiping a card when the user takes the bus.
For example, when it is detected that the time interval between two adjacent riding time points in the riding time point pairs is between 2min and 90min, two trips corresponding to the two adjacent riding time points in the riding time point pairs may be determined as transfer trips, a trip corresponding to the first riding time point in the two adjacent riding time points may be taken as a previous trip, and a trip corresponding to the second riding time point may be taken as a next trip.
In an embodiment, a time interval between the first riding time point and the second riding time point in each pair of riding time point pairs can be obtained through vectorization operation, so that calculation is accelerated, and riding positioning efficiency is improved. For example, a first riding time point and a second riding time point corresponding to all transfer behaviors of the user a can be obtained through vectorized calculation.
In an embodiment, in order to conveniently acquire corresponding riding information corresponding to the riding time points, so as to improve the riding positioning accuracy and efficiency, user riding related information such as the riding time points corresponding to card swiping, corresponding user identifications, the number of cars corresponding to the riding time points, the driving path corresponding to the number of cars, a plurality of riding position points on the driving path and the like can be acquired when a user punches the cards to get on the cars, and the acquired information can be matched, so that all the user riding related information can be acquired according to the riding time points.
204. And when the first riding type is a ticket riding type, determining candidate riding position points from the traveling path of the first riding time point corresponding to the first train number.
The one-ticket riding means that no matter where a user gets on the bus or gets off the bus, the user can insert coins according to the specified ticket price as long as the user gets on the bus, and all users bear the same ticket price regardless of the length of the riding route of the user. For example, buses in some regions are a ticket-ride type of vehicle.
In practical applications, when the first riding type is a ticket riding type, it may be determined that the vehicle corresponding to the first riding type is a ticket riding type vehicle, such as a bus. Then, candidate riding position points can be determined, and since the traveling path includes the plurality of riding position points corresponding to the first riding time point in the first train number, that is, the traveling path includes the plurality of stations corresponding to the first train number, the candidate riding position points can be determined from the plurality of stations corresponding to the traveling path corresponding to the first train number in the first riding time point.
The traffic card can be used for swiping a card to get on a vehicle according to various vehicles, for example, the card can be swiped to sit on a bus, the same card can also be swiped to sit on a subway, the bus is a vehicle with a ticket riding type, and the subway is not a vehicle with a ticket riding type, so that whether the riding type is the ticket riding type or not needs to be judged, and the accuracy of riding positioning is improved.
In one embodiment, in order to reduce the calculation amount, partial riding position points can be acquired from all riding position points of the first train number as candidate riding position points, so that the riding positioning efficiency is improved. Specifically, the step "determining candidate riding position points from the traveling path corresponding to the first ride time point to the first ride number when the first ride type is a ticket ride type" may include:
when the first taking type is a ticket taking type, determining a driving path corresponding to the first taking time point and a first taking position point corresponding to the first taking time point;
acquiring a plurality of riding position points corresponding to the driving path;
determining candidate riding position points from a plurality of riding position points based on the first riding position point.
In practical application, when it is detected that the first riding type is a ticket riding type, the first riding time point and the first riding position point corresponding to the first riding time point may be determined, then a plurality of riding position points corresponding to the traveling path may be obtained, and based on the first riding position point, a candidate riding position point may be determined from the plurality of riding position points.
For example, when it is detected that the first bus type is a bus type, a first bus number corresponding to the first bus time point, a travel path of the first bus number, and a first bus stop when the user swipes a card at the first bus time point may be determined, then all bus stops corresponding to the travel path of the first bus number may be obtained, and a candidate bus position point may be determined from all bus stops of the first bus number according to the first bus stop, where the candidate bus position point may be multiple bus stops located in the same direction as the first bus stop in all bus stops.
In an embodiment, the candidate riding position point can be determined from the driving path of the first train number corresponding to the first riding time point according to the driving direction of the vehicle corresponding to the first riding time point. Specifically, the step of "determining candidate riding position points from a plurality of riding position points based on the first riding position point" may include:
determining a second riding position point corresponding to the second riding time point;
determining the driving direction of the first riding time point corresponding to the number of vehicles based on the position relation between the first riding position point and the second riding position point;
determining a candidate ride location point from a plurality of ride location points that is subsequent to the first ride location point based on the direction of travel.
In practical applications, a second riding position point corresponding to the second riding time point may be determined, then the driving direction of the train number corresponding to the first riding time point is determined based on the position relationship between the first riding position point and the second riding position point, and a candidate riding position point located behind the first riding position point is determined from the plurality of riding position points based on the driving direction.
For example, a second bus station corresponding to the second bus time point may be determined, and since the vehicle corresponding to the second bus time point is not determined, the second bus station may be a bus station or a subway station. And then, determining the driving direction of the first bus according to the position relation between the first bus stop and the second bus stop. Then, all bus stops of the first bus number can be arranged in a front-back sequence along the driving direction, and all bus position points behind the first bus stop can be determined as candidate bus position points.
205. And acquiring the spacing distance between the second riding position point and the candidate riding position point.
In practical applications, the distance between the second riding position point and the candidate riding position point may be obtained, for example, since the riding position point is fixed, the position information of the riding position point may be obtained in advance, for example, the longitude and the latitude of the riding position point may be obtained in advance. The position information of the riding position point can be acquired through a terminal or other equipment with a GPS positioning system, or can be acquired through a map application or other software capable of providing positioning. The separation distance between the second ride location point and the plurality of candidate ride location points may then be obtained.
In an embodiment, the distance between the second riding position point and the candidate riding position point may be a linear distance between the second riding station point and the candidate riding position points, and the distance is screened according to the linear distance, so that the calculation steps can be effectively simplified, and the calculation efficiency is improved.
In an embodiment, since it is determined that the second riding time point is a riding time point generated by the user transfer behavior, and the candidate riding position point is a possible getting-off point of the user during the transfer, the user needs to walk from the candidate riding position point to the second riding position point, but since all stations can not reach in a straight line, a walking route capable of providing walking of the user between the second riding position point and the candidate riding position point can be obtained through a map application or other positioning providing software, and the length of the walking route can be obtained, and the length of the walking route can be used as the separation distance. By the mode, the station condition which cannot be reached in a straight line can be taken into consideration, so that the accuracy of riding positioning is improved.
206. And selecting a target riding position point from the candidate riding position points based on the interval distance.
In practical application, the target riding position point can be selected from the candidate riding position points based on the separation distance. For example, after getting off, the user candidate riding position point usually selects a station having a distance from the candidate riding position point within a range allowing walking as an getting on station of a next trip in the transfer process, and thus, the target riding position point can be selected from the candidate riding position points according to the distance. For example, the candidate riding position point with the minimum spacing distance can be used as the target riding position point.
In an embodiment, position points with the interval distance that a user can accept walking can be obtained from the candidate riding position points and serve as target candidate riding position points, so that the selection range of the target riding position points is reduced, and the riding positioning accuracy is improved. Specifically, the step of "selecting a target riding position point from the candidate riding position points based on the separation distance" may include:
selecting target candidate riding position points, the spacing distance between which and the second riding position point is within a preset distance range, from the candidate riding position points;
and selecting a target riding position point from the target candidate riding position points.
In practical application, the target candidate riding position points with the interval distance with the second riding position point within the preset distance range can be selected from the candidate riding position points, and then the target riding position points are selected from the target candidate riding position points. For example, the candidate riding position points with the spacing distance within 1km can be used as the target candidate riding position points, and the target riding position points can be selected from the acquired target candidate riding position points.
In an embodiment, it is also possible that the separation distances between all the candidate riding position points and the second riding position point are outside the preset distance range, for example, all the separation distances exceed 1km, at this time, in order to ensure the accuracy of riding positioning, all the candidate riding position points may be deleted, because if the separation distance is too long, the user may not be performing a transfer behavior, and at this time, the target riding position point obtained according to the method may be inaccurate, and thus deleted.
In one embodiment, since the user may not be able to reach the boarding station of the next trip in the transfer process in a straight line, the accuracy of the location of the boarding can be improved by acquiring the route length of the walking route. Specifically, the step of "selecting a target riding position point from the target candidate riding position points" may include:
acquiring the route length of a walking route between the second riding position point and the target candidate riding position point;
and selecting target riding position points from the target candidate riding position points based on the route length.
In practical applications, the route length of the walking route between the second riding position point and the target candidate riding position point may be acquired, and the target riding position point may be selected from the target candidate riding position points based on the route length. For example, a walking route between the second riding position point and the target candidate riding position point may be obtained through a map application or other positioning software, and the route length of the walking route may be obtained, and the user may walk through the walking route and reach the second riding position point. And then determining the target candidate riding position point with the shortest route length as the target riding position point.
In one embodiment, since the traffic card can be divided into different types such as student card, aged card, and ordinary card, and the aged person holding the aged card and the student holding the student card have different walking speeds, the riding time required for riding can be calculated according to the walking speed, and the target riding position point can be determined more accurately according to the riding time. Specifically, the step of "selecting a target riding position point from the target candidate riding position points" may include:
acquiring a time interval between the first riding time point and the second riding time point;
acquiring the riding time required by a user from a first riding position point corresponding to the first riding time point to the second riding position point when the user transfers at the target candidate riding position point;
and selecting a target riding position point from the target candidate riding position points based on the difference between the riding time and the time interval.
In practical application, the time interval between the first riding time point and the second riding time point can be acquired, then the riding time required from the first riding position point corresponding to the first riding time point to the second riding position point when the user transfers at the target candidate riding position point is acquired, and the target riding position point is selected from the target candidate riding position points based on the difference between the riding time and the time interval.
For example, the time interval between the first riding time point and the second riding time point may be obtained according to the first riding time point and the second riding time point, and then the riding time which may be consumed by the user from the first riding position point to the second riding position point when the user gets off the vehicle at the target candidate riding position point and transfers the vehicle may be obtained. The target candidate ride location point having the smallest difference between the likely elapsed ride time and the actual time interval may then be determined as the target ride location point.
In one embodiment, the riding time can be determined according to the traveling time of the vehicle and the walking time of the user, so that the accuracy of acquiring the riding time is improved. Specifically, the step of "obtaining the required riding time from the first riding position point corresponding to the first riding time point to the second riding position point when the user transfers at the target candidate riding position point" may include:
acquiring the walking speed corresponding to the user identification and the vehicle running speed of a first vehicle corresponding to the first riding time point;
acquiring the running time of the vehicle from the first riding position point to the target candidate riding position point based on the vehicle running speed;
acquiring walking time of the user walking from the target candidate riding position point to the second riding position point based on the walking speed;
and fusing the running time and the walking time to obtain the riding time required by a user from a first riding position point corresponding to the first riding time point to a second riding position point when the user transfers at the target candidate riding position point.
In practical application, the walking speed corresponding to the user identifier and the vehicle running speed corresponding to the first riding time point for the first riding time number can be obtained, the running time of the vehicle from the first riding position point to the target candidate riding position point is obtained based on the vehicle running speed, the walking time of the user from the target candidate riding position point to the second riding position point is obtained based on the walking speed, the running time and the walking time are fused, and the riding time required by the user from the first riding position point corresponding to the first riding time point to the second riding position point when the user changes the target candidate riding position point is obtained.
For example, when the traffic card corresponding to the user identifier is an old people card, the walking speed corresponding to the preset old people can be obtained, and when the traffic tool corresponding to the first riding time point is a bus, the vehicle running speed corresponding to the bus can be obtained. Then, the travel time required for the bus to travel from the first riding position point to the target candidate riding position point can be calculated according to the length of the travel path between the first riding position point and the target candidate riding position point. Then, the route length of the walking route between the target candidate riding position point and the second riding position point can be obtained, and the walking time required by the user to walk from the target candidate riding position point to the second riding position point is calculated. The travel time and the walking time may then be added to obtain the ride time.
In an embodiment, the vehicle corresponding to the first riding time point is not necessarily a vehicle of a ticket riding type, and at this time, the target riding position point can be directly and accurately determined, so that the accuracy of riding positioning is improved. Specifically, the riding positioning method may further include:
when the first taking type is not a ticket taking type, acquiring a second taking type corresponding to the second taking time point;
and when the second riding type is a ticket riding type, determining that the first riding position point corresponding to the first riding time point is a target riding position point.
In practical application, when the first riding type is not the one-ticket riding type, the second riding type corresponding to the second riding time point is obtained, and when the second riding type is the one-ticket riding type, the first riding position point corresponding to the first riding time point is determined to be the target riding position point. For example, when the vehicle corresponding to the first taking time point is a subway and the vehicle corresponding to the second taking time point is a bus, it indicates that the vehicles are different for two times and the user takes a transfer behavior, and at this time, the first taking position point corresponding to the first taking time point is an accurate getting-off point, that is, a target taking position point.
In an embodiment, when the first ride type and the second ride type are the same and are not a single-ticket ride type, the target ride location point can be accurately determined in two cases. Specifically, the riding positioning method may further include:
when the second taking type is not a ticket taking type, acquiring a second taking time point corresponding to a second vehicle number;
when the first bus number is the same as the second bus number, determining a second bus position point corresponding to the second bus time point as a target bus position point;
and when the first train number is different from the second train number, determining that the first riding position point corresponding to the first riding time point is a target riding position point.
In practical application, when the second taking type is not a ticket taking type, acquiring the second taking time point corresponding to the second vehicle number, when the first vehicle number is the same as the second vehicle number, determining the second taking position point corresponding to the second taking time point as a target taking position point, and when the first vehicle number is different from the second vehicle number, determining the first taking position point corresponding to the first taking time point as a target taking position point.
For example, when the vehicle corresponding to the first riding time point and the vehicle corresponding to the second riding time point are both subways, it can be determined whether a first train number corresponding to the first riding time point and a second train number corresponding to the second riding time point are the same train number, when the first train number and the second train number are the same train number, it can be determined that the first riding time point is a time point obtained by swiping a card when a user gets on the train, the second riding time point is a time point obtained by swiping a card when the user gets off the train, and at this time, the second riding position point is a target riding position point; when the first train number and the second train number are not the same train number, it can be determined that the first riding time point is a time point obtained by swiping a card when the user gets off the train, the second riding time point is a time point obtained by swiping a card when the user gets on the train, and the first riding position point is the target riding position point.
As can be seen from the above, the embodiment of the present application may obtain a riding time set corresponding to a user identifier, where the riding time set includes a plurality of riding time points arranged in a time sequence, determine a first riding time point and a second riding time point from the riding time set, where the first riding time point and the second riding time point are two adjacent riding time points, the first riding time point is located before the second riding time point, when it is detected that a time interval between the two adjacent riding time points is within a preset time range, obtain a first riding type corresponding to the first riding time point, and when the first riding type is a one-ticket riding type, determine candidate riding position points from a traveling path corresponding to the first riding time point, where the traveling path includes a plurality of riding position points corresponding to the first riding time point, obtain a distance between the second riding position point and the candidate riding position points, and selecting a target riding position point from the candidate riding position points based on the interval distance. According to the scheme, the transfer behavior of the user can be judged only according to the two riding time points, so that the getting-off point of the user in the previous trip, namely the target riding position point, can be determined, and the target riding position point when the user irregularly goes out can be judged in such a way. And accurate target riding position points can be obtained, so that the statistics of riding data such as wire network optimization, passenger flow migration, full vehicle load and the like can be carried out.
The method described in the foregoing embodiment will be described in further detail below by way of example in which the ride positioning device is specifically integrated in a network device.
Referring to fig. 3, a specific process of the riding positioning method according to the embodiment of the present application may be as follows:
301. and the network equipment acquires a riding time set corresponding to the user identification.
For example, the network device may obtain riding time points when multiple users take the cards, delete the same riding time point corresponding to the same user identifier in all the obtained riding time points, and delete any one of two riding time points with a very short time difference, for example, within 5 seconds, so as to achieve the purpose of removing the duplication. The condition that the user swipes the card again, wrongly or by other people can be taken into consideration by the weight removal, so that each riding time point after the weight removal corresponds to a specific one-time travel.
Then, all the riding time points can be classified according to different user identifications to obtain a plurality of riding time points corresponding to each user identification, and a riding time set corresponding to the user identification is established. The riding time point can be represented as "20181001105901", which indicates that the user swipes a card for 59 minutes and 01 seconds at 10, 01, 10 and 01 months in 2018 and acquires the corresponding riding time point. The set of ride times established may then be represented in the form of a sequence vector and the ride time points in the set of ride times may be arranged in chronological order, e.g., the set of ride times may be represented as ("20181001105901", "20181001113020", "20181002192913", ".," 20181016210321 "),. In the riding time set, each user only has one riding record at the same riding time point, so that the user-specific one-time travel can be corresponding to the riding time point according to the user identification.
In an embodiment, the riding time set may include riding time points of the user within a week, and then riding conditions of the user within the week may be obtained through corresponding calculation.
302. The network device determines a first riding time point and a second riding time point from the riding time set.
For example, the network device may determine, from the riding time set, multiple sets of riding time point pairs consisting of two adjacent riding time points, where the riding time point pairs may include a first riding time point and a second riding time point, such as "20181001113020" and "20181002192913" may constitute a pair of riding time point pairs, where "20181001113020" preceding in time may be the first riding time point and "20181002192913" succeeding in time may be the second riding time point.
303. When the time interval between two adjacent riding time points is detected to be within a preset time range, the network equipment acquires a first riding type corresponding to the first riding time point.
For example, after obtaining a plurality of sets of riding time point pairs including a first riding time point and a second riding time point, a time interval between the first riding time point and the second riding time point within the riding time point pair may be calculated, and when it is detected that the time interval is between 2min and 90min, a trip corresponding to the first riding time point and a trip corresponding to the second riding time point may be regarded as two trips generated by the transfer behavior, a trip corresponding to the first riding time point may be referred to as a previous trip, and a trip corresponding to the second riding time point may be referred to as a next trip. The time intervals of a plurality of groups of riding time point pairs can be detected in batches through vectorization operation, and therefore the calculation efficiency is improved. After the previous travel and the next travel are determined, the first riding type corresponding to the first riding time point can be obtained, and if the transportation means corresponding to the first riding time point can be determined to be a bus.
In practical applications, the preset time range can be adjusted as needed. In the actual calculation process, different time ranges are tested, including 2min to 45min, 2min to 60min and 2min to 90min, the proportion of transfer behaviors to total riding behaviors obtained in different time ranges is different, and the test results can refer to table 1.
TABLE 1
Transfer type [2min,90min] [2min,60min] [2min,45min] Remarks for note
Bus transfer bus 13.46% 10.28% 8.24% Ratio of bus travel
Subway for bus transfer 2.36% 2.14% 1.94% Ratio of bus travel
Subway transfer bus 7.49% 5.61% 3.81% Travel ratio of land occupying iron
Summary of the invention 14.05% 10.98% 8.83% Ratio of total stroke
In table 1, "ratio of occupied bus travel" indicates a ratio of detected transfer travel to total bus travel when the preset time range is 2min to 90min, "ratio of occupied subway travel" indicates a ratio of detected transfer travel to total subway travel when the preset time range is 2min to 90min, and "ratio of occupied all travel" indicates a ratio of detected transfer travel to total travel when the preset time range is 2min to 90 min. Therefore, as can be seen from the results of Table 1, the effect of determining the preset time range between 2min and 90min is the best.
304. And when the first riding type is a ticket riding type, the network equipment determines candidate riding position points from the traveling path of the first riding time point corresponding to the first train number.
For example, when it is detected that the vehicle corresponding to the first taking time point is a ticket bus, a first bus stop corresponding to the first taking time point and a second bus stop corresponding to the second taking time point may be determined, and the driving direction of the first bus corresponding to the first taking time point is determined according to the position relationship between the first bus stop and the second bus stop. Then, a plurality of bus stops corresponding to the first bus number can be obtained, and a stop located behind the first bus stop in the plurality of bus stops is used as a candidate bus taking position point according to the driving direction.
305. And the network equipment acquires the spacing distance between the second riding position point and the candidate riding position point.
For example, the longitude and latitude of the second riding position point and the longitude and latitude of the candidate riding position points can be obtained according to map application or application with a GPS function, and the linear distances between the second riding position point and the candidate riding position points are respectively calculated.
The walking route between the second riding position point and the candidate riding position points can be obtained according to map application or application with a GPS function, the route length of the walking route corresponding to each candidate riding position point is calculated, and the route length is used as the interval distance.
306. And the network equipment selects a target riding position point from the candidate riding position points based on the interval distance.
For example, as shown in fig. 4, the candidate riding position point with the smallest spacing distance may be set as the target riding position point according to the acquired plurality of spacing distances. After the target riding position point is determined, if the spacing distance corresponding to the target riding position point is greater than 1km, the distance between the target riding position point and the second riding position point is considered to be too large at the moment, the possibility of transfer is low, and the target riding position point is deleted.
In an embodiment, candidate riding position points corresponding to the interval distance larger than 1km can be deleted to obtain target candidate riding position points, and if only one target candidate riding position point exists, the target candidate riding position point can be directly used as the target riding position point; if there is more than one target candidate riding position point, as shown in fig. 5, the walking distance between each target candidate riding position point and the second riding position point may be obtained, and the target candidate riding position point with the shortest walking distance may be used as the target riding position point.
In an embodiment, candidate riding position points corresponding to the interval distance larger than 1km can be deleted to obtain target candidate riding position points, and if only one target candidate riding position point exists, the target candidate riding position point can be directly used as the target riding position point; if there is more than one target candidate riding position point, the vehicle traveling speed of the vehicle corresponding to the first riding time point may be acquired, and the traveling time from the first riding position point to the target candidate riding position point may be calculated according to the vehicle traveling speed. And then, acquiring the walking speed corresponding to the user identifier, and calculating the walking time from the target candidate riding position point to the second riding position point according to the walking speed. The walking time and the travel time may then be added to obtain the ride time. And then acquiring a time interval between the first riding time point and the second riding time point, and taking the target candidate riding position point with the smallest difference between the riding time and the time interval as a target riding position point.
In an embodiment, as shown in fig. 7, when the first riding time point and the second riding time point are from subways of the same train number, the second riding position point may be directly used as the target riding position point; as shown in fig. 6, when the first riding time point and the second riding time point are subways from different train numbers, the first riding position point can be directly used as the target riding position point.
As can be seen from the above, in the embodiment of the application, a riding time set corresponding to a user identifier may be obtained through a network device, a first riding time point and a second riding time point are determined in the riding time set, when it is detected that a time interval between two adjacent riding time points is within a preset time range, a first riding type corresponding to the first riding time point is obtained, when the first riding type is a ticket riding type, a candidate riding position point is determined from a traveling path corresponding to the first ride at the first riding time point, a separation distance between the second riding position point and the candidate riding position point is obtained, and a target riding position point is selected from the candidate riding position points based on the separation distance. According to the scheme, the transfer behavior of the user can be judged only according to the two riding time points, so that the getting-off point of the user in the previous trip, namely the target riding position point, can be determined, and the target riding position point when the user irregularly goes out can be judged in such a way. And accurate target riding position points can be obtained, so that the statistics of riding data such as wire network optimization, passenger flow migration, full vehicle load and the like can be carried out.
In order to better implement the method, embodiments of the present application may further provide a riding positioning device, where the riding positioning device may be specifically integrated in a network device, and the network device may include a server, a terminal, and the like, where the terminal may include: a mobile phone, a tablet Computer, a notebook Computer, or a Personal Computer (PC).
For example, as shown in fig. 8, the ride location device may include a set acquisition module 81, a time point determination module 82, a type acquisition module 83, a location point determination module 84, a distance acquisition module 85, and a selection module 86, as follows:
the set obtaining module 81 is configured to obtain a riding time set corresponding to the user identifier, where the riding time set includes a plurality of riding time points arranged according to a time sequence;
a time point determining module 82, configured to determine a first riding time point and a second riding time point from the riding time set, where the first riding time point and the second riding time point are two adjacent riding time points, and the first riding time point is located before the second riding time point;
the type obtaining module 83 is configured to obtain a first riding type corresponding to the first riding time point when it is detected that a time interval between two adjacent riding time points is within a preset time range;
a position point determining module 84, configured to determine candidate riding position points from a traveling path corresponding to the first ride time point to the first ride number when the first ride type is a ticket ride type, where the traveling path includes a plurality of riding position points corresponding to the first ride time point to the first ride number;
a distance obtaining module 85, configured to obtain a separation distance between a second riding position point and the candidate riding position point, where the second riding position point is a riding position point corresponding to the second riding time point;
and the selecting module 86 is configured to select a target riding position point from the candidate riding position points based on the separation distance.
In one embodiment, the location point determination module 84 may include a determination sub-module 841, an acquisition sub-module 842, and a location point determination sub-module 843, as follows:
the determining submodule 841 is configured to determine, when the first taking type is a ticket taking type, a travel path of the first taking time point corresponding to the first taking time point and a first taking position point corresponding to the first taking time point;
the obtaining submodule 842 is used for obtaining a plurality of riding position points corresponding to the driving path;
a first location point determining submodule 843 configured to determine candidate ride location points from the plurality of ride location points based on the first ride location point.
In an embodiment, the first location point determining sub-module 843 may be specifically configured to:
determining a second riding position point corresponding to the second riding time point;
determining the driving direction of the first riding time point corresponding to the number of vehicles based on the position relation between the first riding position point and the second riding position point;
determining a candidate ride location point from a plurality of ride location points that is subsequent to the first ride location point based on the direction of travel.
In one embodiment, the selection module 86 may include a first selection sub-module 861 and a second selection sub-module 862 as follows:
the first selection submodule 861 is used for selecting target candidate riding position points, the spacing distance between the target candidate riding position points and the second riding position point is within a preset distance range, from the candidate riding position points;
a second selection submodule 862 for selecting a target riding position point from the target candidate riding position points.
In an embodiment, the second selection submodule 862 may be specifically configured to:
acquiring the route length of a walking route between the second riding position point and the target candidate riding position point;
and selecting target riding position points from the target candidate riding position points based on the route length.
In an embodiment, the second selection submodule 862 may include a time interval obtaining submodule 8621, a riding time obtaining submodule 8622 and a third selection submodule 8623, as follows:
a time interval obtaining submodule 8621 configured to obtain a time interval between the first riding time point and the second riding time point;
a riding time obtaining submodule 8622, configured to obtain riding time required by a user from a first riding position point corresponding to the first riding time point to the second riding position point when the user transfers at the target candidate riding position point;
and a third selection submodule 8623, configured to select a target riding position point from the target candidate riding position points based on a difference between the riding time and the time interval.
In an embodiment, the riding time obtaining sub-module 8622 may specifically include:
acquiring the walking speed corresponding to the user identification and the vehicle running speed of a first vehicle corresponding to the first riding time point;
acquiring the running time of the vehicle from the first riding position point to the target candidate riding position point based on the vehicle running speed;
acquiring walking time of the user walking from the target candidate riding position point to the second riding position point based on the walking speed;
and fusing the running time and the walking time to obtain the riding time required by a user from a first riding position point corresponding to the first riding time point to a second riding position point when the user transfers at the target candidate riding position point.
In one embodiment, the ride positioning device may further include a first type obtaining module 87 and a location point determining module 88, as follows:
the first type obtaining module 87 is configured to obtain a second riding type corresponding to the second riding time point when the first riding type is not a ticket riding type;
and a position point determining module 88, configured to determine, when the second riding type is a ticket riding type, that the first riding position point corresponding to the first riding time point is a target riding position point.
In an embodiment, the riding positioning device may further include a train number obtaining sub-module 881, a second location point determining sub-module 882, and a third location point determining sub-module 883, as follows:
the bus number obtaining sub-module 881, configured to obtain, when the second bus type is not a ticket bus type, a second bus number corresponding to the second bus time point;
a second position point determining submodule 882, configured to determine, when the first vehicle number is the same as the second vehicle number, that a second riding position point corresponding to the second riding time point is a target riding position point;
a third location point determining submodule 883, configured to determine, when the first train number is different from the second train number, that the first riding location point corresponding to the first riding time point is a target riding location point.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the taking location device of the present embodiment obtains, by the set obtaining module 81, a taking time set corresponding to the user identifier, where the taking time set includes a plurality of taking time points arranged in a time sequence, and determines, by the time point determining module 82, a first taking time point and a second taking time point from the taking time set, where the first taking time point and the second taking time point are two adjacent taking time points, the first taking time point is located before the second taking time point, when it is detected that a time interval between the two adjacent taking time points is within a preset time range, a first taking type corresponding to the first taking time point is obtained by the type obtaining module 83, and when the first taking type is a ticketed taking type, a candidate taking location point is determined by the location point determining module 84 from a traveling path corresponding to the first taking time point, the driving path comprises a plurality of riding position points corresponding to the first riding time point and the first number of cars, the distance obtaining module 85 is used for obtaining the interval distance between the second riding position point and the candidate riding position point, the second riding position point is the riding position point corresponding to the second riding time point, and the selecting module 86 is used for selecting the target riding position point from the candidate riding position points based on the interval distance. According to the scheme, the transfer behavior of the user can be judged only according to the two riding time points, so that the getting-off point of the user in the previous trip, namely the target riding position point, can be determined, and the target riding position point when the user irregularly goes out can be judged in such a way. And accurate target riding position points can be obtained, so that the statistics of riding data such as wire network optimization, passenger flow migration, full vehicle load and the like can be carried out.
The embodiment of the application also provides a network device, and the network device can integrate any riding positioning device provided by the embodiment of the application.
For example, as shown in fig. 9, it shows a schematic structural diagram of a network device according to an embodiment of the present application, specifically:
the network device may include components such as a processor 91 of one or more processing cores, memory 92 of one or more computer-readable storage media, a power supply 93, and an input unit 94. Those skilled in the art will appreciate that the network device architecture shown in fig. 9 does not constitute a limitation of network devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 91 is a control center of the network device, connects various parts of the entire network device using various interfaces and lines, and performs various functions of the network device and processes data by running or executing software programs and/or modules stored in the memory 92 and calling data stored in the memory 92, thereby performing overall monitoring of the network device. Optionally, processor 91 may include one or more processing cores; preferably, the processor 91 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 91.
The memory 92 may be used to store software programs and modules, and the processor 91 executes various functional applications and data processing by operating the software programs and modules stored in the memory 92. The memory 92 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the network device, and the like. Further, memory 92 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 92 may also include a memory controller to provide the processor 91 access to the memory 92.
The network device further comprises a power supply 93 for supplying power to each component, and preferably, the power supply 93 is logically connected to the processor 91 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are realized through the power management system. The power supply 93 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The network device may also include an input unit 94, the input unit 94 being operable to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the network device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 91 in the network device loads the executable file corresponding to the process of one or more application programs into the memory 92 according to the following instructions, and the processor 91 runs the application programs stored in the memory 92, thereby implementing various functions as follows:
acquiring a riding time set corresponding to a user identifier, wherein the riding time set comprises a plurality of riding time points arranged according to a time sequence, determining a first riding time point and a second riding time point from the riding time set, the first riding time point and the second riding time point are two adjacent riding time points, the first riding time point is positioned before the second riding time point, when the time interval between the two adjacent riding time points is detected to be within a preset time range, acquiring a first riding type corresponding to the first riding time point, when the first riding type is a ticket riding type, determining candidate riding position points from a riding path corresponding to the first riding time point, wherein the riding path comprises a plurality of riding position points of the first riding, acquiring the interval distance between the second riding position point and the candidate riding position points, and selecting a target riding position point from the candidate riding position points based on the interval distance.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the network device according to the embodiment of the present application may obtain a riding time set corresponding to a user identifier, where the riding time set includes a plurality of riding time points arranged in a time sequence, determine a first riding time point and a second riding time point from the riding time set, where the first riding time point and the second riding time point are two adjacent riding time points, the first riding time point is located before the second riding time point, when it is detected that a time interval between the two adjacent riding time points is within a preset time range, obtain a first riding type corresponding to the first riding time point, and when the first riding type is a ticket riding type, determine candidate riding position points from a traveling path corresponding to the first riding time point, where the traveling path includes a plurality of riding position points corresponding to the first riding time point, and acquiring the interval distance between the second riding position point and the candidate riding position points, wherein the second riding position point is the riding position point corresponding to the second riding time point, and selecting a target riding position point from the candidate riding position points based on the interval distance. According to the scheme, the transfer behavior of the user can be judged only according to the two riding time points, so that the getting-off point of the user in the previous trip, namely the target riding position point, can be determined, and the target riding position point when the user irregularly goes out can be judged in such a way. And accurate target riding position points can be obtained, so that the statistics of riding data such as wire network optimization, passenger flow migration, full vehicle load and the like can be carried out.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the vehicle taking positioning methods provided in the present application. For example, the instructions may perform the steps of:
acquiring a riding time set corresponding to a user identifier, wherein the riding time set comprises a plurality of riding time points arranged according to a time sequence, determining a first riding time point and a second riding time point from the riding time set, the first riding time point and the second riding time point are two adjacent riding time points, the first riding time point is positioned before the second riding time point, when the time interval between the two adjacent riding time points is detected to be within a preset time range, acquiring a first riding type corresponding to the first riding time point, when the first riding type is a ticket riding type, determining candidate riding position points from a riding path corresponding to the first riding time point, wherein the riding path comprises a plurality of riding position points of the first riding, acquiring the interval distance between the second riding position point and the candidate riding position points, and selecting a target riding position point from the candidate riding position points based on the interval distance.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any one of the riding positioning methods provided in the embodiments of the present application, beneficial effects that can be achieved by any one of the riding positioning methods provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The riding positioning method and device provided by the embodiment of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A riding positioning method is characterized by comprising the following steps:
acquiring a riding time set corresponding to a user identifier, wherein the riding time set comprises a plurality of riding time points arranged according to a time sequence;
determining a first riding time point and a second riding time point from the riding time set, wherein the first riding time point and the second riding time point are two adjacent riding time points, and the first riding time point is positioned before the second riding time point;
when the time interval between two adjacent riding time points is detected to be within a preset time range, acquiring a first riding type corresponding to the first riding time point;
when the first taking type is a ticket taking type, determining candidate taking position points from a driving path corresponding to a first bus number from the first taking time point, wherein the driving path comprises a plurality of taking position points corresponding to the first bus number from the first taking time point;
acquiring a spacing distance between a second riding position point and the candidate riding position point, wherein the second riding position point is a riding position point corresponding to the second riding time point;
and selecting a target riding position point from the candidate riding position points based on the interval distance.
2. A ride positioning method according to claim 1, wherein determining candidate ride location points from the travel path corresponding to the first ride time point for the first ride number when the first ride type is a ticket ride type comprises:
when the first taking type is a ticket taking type, determining a driving path corresponding to the first taking time point and a first taking position point corresponding to the first taking time point;
acquiring a plurality of riding position points corresponding to the driving path;
determining candidate riding position points from a plurality of riding position points based on the first riding position point.
3. A ride positioning method according to claim 2, wherein determining a candidate ride location point from a plurality of ride location points based on the first ride location point comprises:
determining a second riding position point corresponding to the second riding time point;
determining the driving direction of the first riding time point corresponding to the first train number based on the position relation between the first riding position point and the second riding position point;
determining a candidate ride location point from a plurality of ride location points that is subsequent to the first ride location point based on the direction of travel.
4. A ride positioning method according to claim 1, wherein selecting a target ride location point from the candidate ride location points based on the separation distance comprises:
selecting target candidate riding position points, the spacing distance between which and the second riding position point is within a preset distance range, from the candidate riding position points;
and selecting a target riding position point from the target candidate riding position points.
5. A ride positioning method according to claim 4, wherein selecting a target ride position point from the target candidate ride position points comprises:
acquiring the route length of a walking route between the second riding position point and the target candidate riding position point;
and selecting target riding position points from the target candidate riding position points based on the route length.
6. A ride positioning method according to claim 4, wherein selecting a target ride position point from the target candidate ride position points comprises:
acquiring a time interval between the first riding time point and the second riding time point;
acquiring the riding time required by a user from a first riding position point corresponding to the first riding time point to the second riding position point when the user transfers at the target candidate riding position point;
and selecting a target riding position point from the target candidate riding position points based on the difference between the riding time and the time interval.
7. The taking car positioning method according to claim 6, wherein obtaining the taking time required for a user to transfer from a first taking position point corresponding to the first taking time point to a second taking position point when the user transfers at the target candidate taking car position point comprises:
acquiring the walking speed corresponding to the user identification and the vehicle running speed of a first vehicle corresponding to the first riding time point;
acquiring the running time of the vehicle from the first riding position point to the target candidate riding position point based on the vehicle running speed;
acquiring walking time of the user walking from the target candidate riding position point to the second riding position point based on the walking speed;
and fusing the running time and the walking time to obtain the riding time required by a user from a first riding position point corresponding to the first riding time point to a second riding position point when the user transfers at the target candidate riding position point.
8. A ride positioning method according to claim 1, further comprising:
when the first taking type is not a ticket taking type, acquiring a second taking type corresponding to the second taking time point;
and when the second riding type is a ticket riding type, determining that the first riding position point corresponding to the first riding time point is a target riding position point.
9. A ride positioning method according to claim 8, further comprising:
when the second taking type is not a ticket taking type, acquiring a second taking time point corresponding to a second vehicle number;
when the first bus number is the same as the second bus number, determining a second bus position point corresponding to the second bus time point as a target bus position point;
and when the first train number is different from the second train number, determining that the first riding position point corresponding to the first riding time point is a target riding position point.
10. A ride positioning device, comprising:
the system comprises a set acquisition module, a processing module and a processing module, wherein the set acquisition module is used for acquiring a riding time set corresponding to a user identifier, and the riding time set comprises a plurality of riding time points arranged according to a time sequence;
the time point determining module is used for determining a first riding time point and a second riding time point from the riding time set, the first riding time point and the second riding time point are two adjacent riding time points, and the first riding time point is positioned before the second riding time point;
the type obtaining module is used for obtaining a first riding type corresponding to the first riding time point when the time interval between two adjacent riding time points is detected to be within a preset time range;
the position point determining module is used for determining candidate riding position points from a traveling path corresponding to the first ride time point to the first ride number when the first ride type is a ticket ride type, wherein the traveling path comprises a plurality of riding position points corresponding to the first ride time point to the first ride number;
the distance acquisition module is used for acquiring the interval distance between a second riding position point and the candidate riding position point, wherein the second riding position point is a riding position point corresponding to the second riding time point;
and the selecting module is used for selecting a target riding position point from the candidate riding position points based on the interval distance.
CN201910527726.3A 2019-06-18 2019-06-18 Riding positioning method and device Active CN112102644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910527726.3A CN112102644B (en) 2019-06-18 2019-06-18 Riding positioning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910527726.3A CN112102644B (en) 2019-06-18 2019-06-18 Riding positioning method and device

Publications (2)

Publication Number Publication Date
CN112102644A true CN112102644A (en) 2020-12-18
CN112102644B CN112102644B (en) 2022-11-01

Family

ID=73749209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910527726.3A Active CN112102644B (en) 2019-06-18 2019-06-18 Riding positioning method and device

Country Status (1)

Country Link
CN (1) CN112102644B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113345216A (en) * 2021-05-28 2021-09-03 蓝海(福建)信息科技有限公司 Vehicle scheduling method for large-scale activities

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103280100A (en) * 2013-05-31 2013-09-04 西安建筑科技大学 Bus IC card passenger transfer station judgment method combining intelligent dispatching data
CN104766473A (en) * 2015-02-09 2015-07-08 北京工业大学 Traffic trip feature extraction method based on multi-mode public transport data matching
CN106874432A (en) * 2017-01-24 2017-06-20 华南理工大学 A kind of public transport passenger trip space-time track extraction method
CN106897955A (en) * 2017-01-24 2017-06-27 华南理工大学 A kind of Public Transport Transfer recognition methods based on public transport OD data
CN109410568A (en) * 2018-09-18 2019-03-01 广东中标数据科技股份有限公司 The get-off stop estimation method and system of rule are drawn a portrait and changed to based on user
CN109584555A (en) * 2018-12-13 2019-04-05 昆山市公共交通集团有限公司 Bus passenger get-off stop estimation method based on AFC data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103280100A (en) * 2013-05-31 2013-09-04 西安建筑科技大学 Bus IC card passenger transfer station judgment method combining intelligent dispatching data
CN104766473A (en) * 2015-02-09 2015-07-08 北京工业大学 Traffic trip feature extraction method based on multi-mode public transport data matching
CN106874432A (en) * 2017-01-24 2017-06-20 华南理工大学 A kind of public transport passenger trip space-time track extraction method
CN106897955A (en) * 2017-01-24 2017-06-27 华南理工大学 A kind of Public Transport Transfer recognition methods based on public transport OD data
CN109410568A (en) * 2018-09-18 2019-03-01 广东中标数据科技股份有限公司 The get-off stop estimation method and system of rule are drawn a portrait and changed to based on user
CN109584555A (en) * 2018-12-13 2019-04-05 昆山市公共交通集团有限公司 Bus passenger get-off stop estimation method based on AFC data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高永 等: "基于IC卡数据的公交换乘识别方法", 《2007第三届中国智能交通年会》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113345216A (en) * 2021-05-28 2021-09-03 蓝海(福建)信息科技有限公司 Vehicle scheduling method for large-scale activities

Also Published As

Publication number Publication date
CN112102644B (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CN108344417A (en) A kind of air navigation aid, navigation device method and mobile terminal
US20210004731A1 (en) Ticketing method and system
CN112749740B (en) Method, device, electronic equipment and medium for determining vehicle destination
CN111739329B (en) Travel route generation method, travel route generation device, storage medium, and server
KR102288490B1 (en) Vehicle rental method, system and program based on limit waiting time
US20210357830A1 (en) System, information processing apparatus and information processing method
CN105303245B (en) Traffic analysis system and traffic analysis method
CN111861624A (en) Vehicle recommendation method and device, electronic equipment and readable storage medium
CN111858806A (en) Passenger travel track detection method, device, equipment and storage medium
CN115203347A (en) Information processing apparatus, information processing method, and computer program
CN111831764A (en) Method and device for determining stop station, electronic equipment and medium
CN112102644B (en) Riding positioning method and device
CN111882912B (en) Riding information processing method, device and system
CN113066284A (en) Data processing method and data processing device
CN111028053B (en) Order processing method and device, electronic equipment and storage medium
CN105608921B (en) The method and apparatus for prompting public transport line in an electronic
CN110677449A (en) Boarding point recommendation method and device
US20210254987A1 (en) Route navigation device and computer readable storage medium
CN110718087B (en) Data fusion processing method and device
CN113112806A (en) Passenger flow analysis method for bus rapid transit special platform and related equipment
CN113052397A (en) Method and device for determining getting-on information, electronic equipment and storage medium
CN112288160A (en) Travel scheme planning method and related equipment
CN107808296A (en) A kind of vehicular amusement apparatus information-pushing method, device and vehicular amusement apparatus
CN112052276A (en) Method and device for excavating bus route
CN106952110B (en) Method, device and equipment for estimating vehicle fare and computer storage medium

Legal Events

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