CN102568199B - Average riding distance determining method and device - Google Patents

Average riding distance determining method and device Download PDF

Info

Publication number
CN102568199B
CN102568199B CN201110424518.4A CN201110424518A CN102568199B CN 102568199 B CN102568199 B CN 102568199B CN 201110424518 A CN201110424518 A CN 201110424518A CN 102568199 B CN102568199 B CN 102568199B
Authority
CN
China
Prior art keywords
bus
card
record
checking card
checking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110424518.4A
Other languages
Chinese (zh)
Other versions
CN102568199A (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.)
Qingdao Hisense Network Technology Co Ltd
Original Assignee
Qingdao Hisense Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Network Technology Co Ltd filed Critical Qingdao Hisense Network Technology Co Ltd
Priority to CN201110424518.4A priority Critical patent/CN102568199B/en
Priority to PCT/CN2011/084299 priority patent/WO2013086749A1/en
Publication of CN102568199A publication Critical patent/CN102568199A/en
Application granted granted Critical
Publication of CN102568199B publication Critical patent/CN102568199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • G06Q50/40
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0108Measuring and analyzing of parameters relative to traffic conditions based on the source of data
    • G08G1/012Measuring and analyzing of parameters relative to traffic conditions based on the source of data from other sources than vehicle or roadside beacons, e.g. mobile networks
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • G08G1/0129Traffic data processing for creating historical data or processing based on historical data

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Traffic Control Systems (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The embodiment of the invention discloses an average riding distance determining method and device, relating to the field of intelligent transportation and aiming at solving the problem that how to determine an average riding distance. The method disclosed by the invention comprises the following steps of: acquiring a riding card punching record in at least one time period, wherein each riding card punching record comprises a card number and card punching data; screening the acquired riding card punching records to obtain the riding card punching records in each time period which meet the following conditions: for each riding card punching record in the time period, only one of other riding card punching records is matched with the riding card punching record in the time period, and the card numbers contained by the two matched riding card punching records are the same; and determining the average riding distance in at least one time period according to the screened riding card punching records in each time period. By adopting the average riding distance determining method and device disclosed by the invention, an average riding distance automatic determining scheme is realized.

Description

Definite method and apparatus of average riding distance
Technical field
The present invention relates to intelligent transportation field, relate in particular to a kind of definite method and apparatus of average riding distance.
Background technology
It is the basic foundation of urban public transport network layout and optimization that the distance by bus of bus passenger and starting point flow to, traditional mode of obtaining basic dependence manual research of distance by bus, in the time of passenger loading to passenger's lattice that issue a questionnaire, passenger fills up a form according to the trip situation of oneself, then in the time getting off, reclaim form, determine distance by bus according to the form reclaiming.The reason bands such as the convenience that this can fill up a form due to passenger in the time of practical operation and passenger's cooperate degree are low are served difficulty, thereby are difficult to ensure the accuracy of enquiry data.
Therefore be necessary to realize a kind of automatic determination method of average riding distance, the precision of calculating to improve data, and then make decision maker science formulate running scheduling strategy, rational allocation people's carfare source.
Summary of the invention
The embodiment of the present invention provides a kind of definite method and apparatus of average riding distance, for solving the problem of how automatically determining average riding distance.
A definite method for average riding distance, the method comprises:
Obtain the record of checking card by bus at least one time cycle, every the record of checking card by bus comprises a card number and the data of checking card;
The record of checking card by bus getting is screened, the record of checking card by bus in the each time cycle obtaining after screening meets the following conditions: for every in this time cycle record of checking card by bus, in this time cycle, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical;
According to the record of checking card by bus in the each time cycle obtaining after screening, determine the average riding distance in described at least one time cycle.
A determining device for average riding distance, this device comprises:
Check card and record acquiring unit, for obtaining the record of checking card by bus at least one time cycle, every the record of checking card by bus comprises a card number and the data of checking card;
The record of checking card screens unit, for the record of checking card by bus getting is screened, the record of checking card by bus in the each time cycle obtaining after screening meets the following conditions: for every in this time cycle record of checking card by bus, in this time cycle, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical;
Average riding distance determining unit, for according to the record of checking card by bus in the each time cycle obtaining after screening, determines the average riding distance in described at least one time cycle.
In this programme, obtain at least one time cycle checking card by bus record after, the record of checking card by bus getting is screened, make the record of checking card by bus that comprises paired appearance in rear each time cycle of screening, be in each time cycle checking card by bus record meet the following conditions: for every in this time cycle record of checking card by bus, in this time cycle, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical; Then,, according to the record of checking card by bus in the each time cycle obtaining after screening, determine the average riding distance at least one time cycle.Visible, the present invention has realized automatically definite scheme of average riding distance, and then makes decision maker science formulate running scheduling strategy, rational allocation people's carfare source.
Brief description of the drawings
The method flow schematic diagram that Fig. 1 provides for the embodiment of the present invention;
The apparatus structure schematic diagram that Fig. 2 provides for the embodiment of the present invention.
Embodiment
In order to realize automatically definite scheme of average riding distance, the embodiment of the present invention provides a kind of definite method of average riding distance, in this method, obtain at least one time cycle checking card by bus record after, the record of checking card by bus getting is screened, make the record of checking card by bus that comprises paired appearance in rear each time cycle of screening, for same card number, there is the record of checking card for twice of this card number, then determine average riding distance according to the record of checking card by bus obtaining after screening.
Referring to Fig. 1, definite method of the average riding distance that the embodiment of the present invention provides, comprises the following steps:
Step 10: obtain the record of checking card by bus at least one time cycle, every the record of checking card by bus comprises a card number and the data of checking card;
Step 11: the record of checking card by bus getting is screened, the record of checking card by bus in the each time cycle obtaining after screening meets the following conditions: for every in this time cycle record of checking card by bus, in this time cycle, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical;
Step 12: according to the record of checking card by bus in the each time cycle obtaining after screening, determine the average riding distance in described at least one time cycle.
In step 11, the record of checking card by bus getting is screened, specific implementation can be as follows:
For every in the each time cycle record of checking card by bus, carry out operation as follows:
Determine current checking card by bus and record in time cycle at place whether have other records of checking card by bus that comprised card number is identical; Determining while not existing, this record of checking card is by bus deleted.
Further, in order to make the selection result more accurate, and then make definite result of average riding distance more accurate, can carry out the record screening operation of further checking card by bus as follows:
Above-mentionedly record while existing identical other of comprise of card number to check card by bus in time cycle at place to record determining current checking card by bus, can determine that identical other of comprised card number check card record by bus whether more than one, if more than one, the record of checking card by bus that comprises this card number is all deleted.
Further, in order to make the selection result more accurate, and then make definite result of average riding distance more accurate, after completing the deletion action of the above-mentioned record of checking card by bus, can carry out the record screening operation of further checking card by bus as follows:
For every two records of checking card by bus of the pairing in each time cycle, carry out operation as follows:
Early one of time that checks card in current two records of checking card is by bus checked card to record by bus as first record of checking card of getting on the bus, and another record of checking card is by bus as first record of checking card of getting off; Within other each time cycles, search respectively comprised card number and these two the record institutes of checking card by bus comprise card number identical and two records of checking card by bus matching, if do not find, do not carry out any operation; If find, early one of time that checks card in the record of two of finding being checked card by bus checks card record by bus as second record of checking card of getting on the bus, and another record of checking card is by bus as second record of checking card of getting off; Determine that first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record distance and first between corresponding vehicle location and get off to check card and record the get off distance recording between corresponding vehicle location of checking card of corresponding vehicle location and second and whether exceed in setpoint distance threshold value, be when no determining, by second record and the second record deletion of checking card of getting off of checking card of getting on the bus.
Concrete, can determine that first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record the distance S between corresponding vehicle location according to following formula one on:
Formula one: S on=arcCos[sin Φ 1sin Φ 2+ cos Φ 1cos Φ 2cos (λ 12)] × R × 1000
Wherein: Φ 1expression first is got on the bus to check card and is recorded the latitude value of corresponding vehicle location, Φ 2expression second is got on the bus to check card and is recorded the latitude value of corresponding vehicle location; λ 1expression first is got on the bus to check card and is recorded the longitude of corresponding vehicle location; λ 2expression second is got on the bus to check card and is recorded the longitude of corresponding vehicle location; R is earth radius, and unit is kilometer;
Determine that according to following formula two first gets off to check card and record corresponding vehicle location and second and get off to check card and record the distance S between corresponding vehicle location under:
Formula two: S under=arcCos[sin α 1sin α 2+ cos α 1cos α 2cos (β 12)] × R × 1000;
Wherein: α 1expression first is got off to check card and is recorded the latitude value of corresponding vehicle location, α 2expression second is got off to check card and is recorded the latitude value of corresponding vehicle location; β 1expression first is got off to check card and is recorded the longitude of corresponding vehicle location; β 2expression second is got off to check card and is recorded the longitude of corresponding vehicle location; R is earth radius, and unit is kilometer.
Article one, getting on the bus checks card records the information of corresponding vehicle location, can from the GPS device of vehicle, read, for example, a certain get on the bus check card in record that the circuit number that comprises is 10, the time of checking card is points in the mornings 10, in the GPS of vehicle device, read circuit 10, the morning 10 corresponding vehicle position informations and get on the bus to check card and record corresponding vehicle position information as this.
In step 12, according to the record of checking card by bus in the each time cycle obtaining after screening, determine the average riding distance in described at least one time cycle, specific implementation can be as follows:
For every in the each time cycle record of checking card by bus, determine according to these data of checking card of checking card by bus in record that this is checked card by bus and record corresponding site number and circuit number;
According to the average stop spacing of every two circuits that record corresponding site number and correspondence of checking card by bus of the pairing in each time cycle, determine the average riding distance in described at least one time cycle.
Here, check card by bus record corresponding circuit number can from this check card by bus record the data of checking card read; Check card by bus and record corresponding site number and can obtain in the following manner: first obtain this and check card by bus and record the information of corresponding vehicle location, then according to the corresponding relation of predefined vehicle location and site number, determine that this is checked card by bus and record the corresponding site number of corresponding vehicle location, this site number is this and checks card by bus and record corresponding site number.
Concrete, can determine described average riding distance L according to following formula three:
Formula three: L = 2 × Σ n 1 Σ m i 2 1 ( S i j b - S ij a ) × A ij Σ n 1 m i ;
Wherein, represent that in two articles of records of checking card by bus of in i time cycle j pairing, corresponding site number is recorded in more late checking card of time; represent that the checking card early of time in two articles of records of checking card by bus of in i time cycle j pairing record corresponding site number; A ijrepresenting that two articles of in i time cycle j pairing are checked card by bus records the average stop spacing of corresponding circuit; m ithe number that represents the record of checking card by bus in i time cycle, n represents the number of time cycle.
Definite method of formula three is as follows:
Suppose the m that adds up to of the record of checking card by bus of first day 1, the m that adds up to of the record of checking card by bus of second day 2, the m that adds up to of the record of checking card by bus of n days n;
N days check card by bus that to record sum be m 1+ m 2+ ...+m n; In the record of checking card by bus of every day, same card number has the record of checking card by bus for twice, so the number of samples of analyzing is
What first day was total check card, and to record number be m 1, suppose S jafor m 1the record of checking card in j checking card for the first time and recording corresponding website sequence number, S of blocking jbfor m 1the record of checking card in j checking card for the second time and recording corresponding website sequence number, A of blocking jbe the check card average stop spacing of place circuit of j card, in the record of first day by bus distance and be the data accumulation of n days is got up to be:
D = Σ n 1 Σ m i 2 1 ( S ij b - S ij a ) × A ij
Due to by C and this formula of D substitution, show that passenger's mean distance is:
L = 2 × Σ n 1 Σ m i 2 1 ( S i j b - S ij a ) × A ij Σ n 1 m i .
Adopt formula three determine average riding apart from time, site number need to be digital.And need to preset the average stop spacing of each circuit.
Can be using one day in this method 24 hours as a time cycle, certainly, can also be using the time period of any other length as a time cycle, such as one hour, one week etc.
In this method, the record of checking card by bus can be the record of checking card by bus of bus etc.
In this method, the data of checking card of checking card by bus in record can comprise the line information of the time of checking card, Customer information, Card Type information, card balance amount information, the information of vehicles of taking, vehicle etc.Card Type can be IC-card etc.
Below in conjunction with specific embodiment, the present invention will be described:
Embodiment mono-:
Some ground public transport need to be checked card and get off without checking card owing to being got on the bus, thereby cannot learn passenger's the place of getting off, but exist passenger to arrive by bus the feature of returning from destination by bus again behind destination, this feature is especially obvious morning peak and evening peak embodiment, the present embodiment is just by the analysis of record that transit riding in a period of time is checked card, draw the data model with this feature, calculate average riding distance according to the data in data model.
Step 1: obtain the record of checking card by bus in n days;
Step 2: the passenger who gets is checked card to record and screen; The record of checking card by bus in the every day obtaining after screening meets the following conditions: for every in this day record of checking card by bus, in this day, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical;
Concrete: first, for every in the every day record of checking card by bus, determine that within this day, whether existing comprised card number and this to check card by bus records comprise of other records of checking card by bus that card number is identical; Determining while not existing, this record of checking card is by bus deleted;
Then,, for every two records of checking card by bus of the pairing in every day, carry out operation as follows:
Early one of time that checks card in current two records of checking card is by bus checked card to record by bus as first record of checking card of getting on the bus, and another record of checking card is by bus as first record of checking card of getting off; Within other each time cycles, search respectively comprised card number and these two the record institutes of checking card by bus comprise card number identical and two records of checking card by bus matching, if do not find, do not carry out any operation; If find, early one of time that checks card in the record of two of finding being checked card by bus checks card record by bus as second record of checking card of getting on the bus, and another record of checking card is by bus as second record of checking card of getting off;
Determine that according to formula one first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record the first distance between corresponding vehicle location; Determine that according to formula two first gets off to check card and record corresponding vehicle location and second and get off to check card and record the second distance between corresponding vehicle location; Determine whether the first distance and second distance exceed in setpoint distance threshold value, being defined as when no, by second record and the second record deletion of checking card of getting off of checking card of getting on the bus.For example, setpoint distance threshold value can be 400 meters.
Step 3: according to the record of checking card by bus in the every day obtaining after screening, determine the average riding distance of passenger in n days.
Concrete, first, for every in the every day record of checking card by bus, determine according to these data of checking card of checking card by bus in record that this is checked card by bus and record corresponding site number and circuit number;
Then, determine the average riding distance of passenger in n days according to formula three.
Embodiment bis-:
The present embodiment need to be checked card, get off without checking card for both being existed to get on the bus, and existing again gets on the bus and get off all needs the situation of checking card.
Step 1: obtain the record of checking card by bus in n days;
Step 2: the passenger who gets is checked card to record and screen; The record of checking card by bus in the every day obtaining after screening meets the following conditions: for every in this day record of checking card by bus, in this day, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical;
Concrete: first, for every in the every day record of checking card by bus, determine that within this day, whether existing comprised card number and this to check card by bus records comprise of other records of checking card by bus that card number is identical; Determining while not existing, this record of checking card is by bus deleted; In the time of definite existence, whether definite comprised card number and this record institute of checking card by bus comprise identical other of card number and check card by bus and record more than one, if more than one, this is checked card by bus record and institute comprise card number and this record institute of checking card by bus and comprise identical other of card number and check card by bus and record whole deletions;
Then,, for every two records of checking card by bus of the pairing in every day, carry out operation as follows:
Early one of time that checks card in current two records of checking card is by bus checked card to record by bus as first record of checking card of getting on the bus, and another record of checking card is by bus as first record of checking card of getting off; Within other each time cycles, search respectively comprised card number and these two the record institutes of checking card by bus comprise card number identical and two records of checking card by bus matching, if do not find, do not carry out any operation; If find, early one of time that checks card in the record of two of finding being checked card by bus checks card record by bus as second record of checking card of getting on the bus, and another record of checking card is by bus as second record of checking card of getting off;
Determine that according to formula one first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record the first distance between corresponding vehicle location; Determine that according to formula two first gets off to check card and record corresponding vehicle location and second and get off to check card and record the second distance between corresponding vehicle location; Determine whether the first distance and second distance exceed in setpoint distance threshold value, being defined as when no, by second record and the second record deletion of checking card of getting off of checking card of getting on the bus.For example, setpoint distance threshold value can be 400 meters.
Step 3: according to the record of checking card by bus in the every day obtaining after screening, determine the average riding distance of passenger in n days.
Concrete, first, for every in the every day record of checking card by bus, determine according to these data of checking card of checking card by bus in record that this is checked card by bus and record corresponding site number and circuit number;
Then, determine the average riding distance of passenger in n days according to formula three.
Adopt above-mentioned two embodiment, can science calculate average riding distance.In classic method, for the conventional bus passenger distance mode of employing investigation and sampling mostly by bus, science is not difficult to obtain result more accurately yet.The present invention has the data model of identical flowing law by foundation, adopt reverse method to calculate average riding distance, and can draw passenger's average riding time in conjunction with data such as city bus travelling speed, provides foundation for weighing Public transport service level.
Adopt above-mentioned two embodiment, can calculate foundation is provided for bus passenger flow OD matrix.The domestic reckoning to bus passenger flow OD matrix at present mainly contains theory of probability model, BP neural network model, structural model, Gravity Models and least square model etc., its common ground is all to need passenger flow data to carry out part investigation, meet Poisson distribution with checking bus passenger flow, and then draw OD matrix.The present invention, by analyzing bus passenger trip characteristics, calculates average riding distance, forms bus passenger flow OD matrix to facilitate.
Referring to Fig. 2, the embodiment of the present invention provides a kind of determining device of average riding distance, and this device comprises:
Check card and record acquiring unit 20, for obtaining the record of checking card by bus at least one time cycle, every the record of checking card by bus comprises a card number and the data of checking card;
The record of checking card screens unit 21, for the record of checking card by bus getting is screened, the record of checking card by bus in the each time cycle obtaining after screening meets the following conditions: for every in this time cycle record of checking card by bus, in this time cycle, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical;
Average riding distance determining unit 22, for according to the record of checking card by bus in the each time cycle obtaining after screening, determines the average riding distance in described at least one time cycle.
Further, described in, check card record screening unit 21 for:
For every in the each time cycle record of checking card by bus, determine that within this time cycle, whether existing comprised card number and this to check card by bus records comprise of other records of checking card by bus that card number is identical; Determining while not existing, this record of checking card is by bus deleted.
Further, described in, check card record screening unit 21 also for:
In the time of definite existence, whether definite comprised card number and this record institute of checking card by bus comprise identical other of card number and check card by bus and record more than one, if more than one, this is checked card by bus record and institute comprise card number and this record institute of checking card by bus and comprise identical other of card number and check card by bus and record whole deletions.
Further, described in, check card record screening unit 21 also for:
After deleting the record of checking card by bus, for every two records of checking card by bus of the pairing in each time cycle, early one of time that checks card in these two records of checking card is by bus checked card to record by bus as first record of checking card of getting on the bus, and another record of checking card is by bus as first record of checking card of getting off; Within other each time cycles, search respectively comprised card number and these two the record institutes of checking card by bus comprise card number identical and two records of checking card by bus matching, in the time finding, early one of time that checks card in two of finding check card record by bus checks card record by bus as second record of checking card of getting on the bus, and another record of checking card is by bus as second record of checking card of getting off; Determine that first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record distance and first between corresponding vehicle location and get off to check card and record the get off distance recording between corresponding vehicle location of checking card of corresponding vehicle location and second and whether exceed in setpoint distance threshold value, being defined as when no, by second record and the second record deletion of checking card of getting off of checking card of getting on the bus.
Further, described in, check card record screening unit 21 also for: determine that according to following formula first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record the distance S between corresponding vehicle location on:
S on=arcCos[sin Φ 1sin Φ 2+ cos Φ 1cos Φ 2cos (λ 12)] × R × 1000
Wherein: Φ 1expression first is got on the bus to check card and is recorded the latitude value of corresponding vehicle location, Φ 2expression second is got on the bus to check card and is recorded the latitude value of corresponding vehicle location; λ 1expression first is got on the bus to check card and is recorded the longitude of corresponding vehicle location; λ 2expression second is got on the bus to check card and is recorded the longitude of corresponding vehicle location; R is earth radius, and unit is kilometer;
Determine that according to following formula first gets off to check card and record corresponding vehicle location and second and get off to check card and record the distance S between corresponding vehicle location under:
S under=arcCos[sin α 1sin α 2+ cos α 1cos α 2cos (β 12)] × R × 1000;
Wherein: α 1expression first is got off to check card and is recorded the latitude value of corresponding vehicle location, α 2expression second is got off to check card and is recorded the latitude value of corresponding vehicle location; β 1expression first is got off to check card and is recorded the longitude of corresponding vehicle location; β 2expression second is got off to check card and is recorded the longitude of corresponding vehicle location; R is earth radius, and unit is kilometer.
Further, described average riding distance determining unit 22 for:
For every in the each time cycle record of checking card by bus, determine according to these data of checking card of checking card by bus in record that this is checked card by bus and record corresponding site number and circuit number;
According to the average stop spacing of every two circuits that record corresponding site number and correspondence of checking card by bus of the pairing in each time cycle, determine the average riding distance in described at least one time cycle.
Further, described average riding distance determining unit 22 for: determine described average riding distance L according to following formula:
L = 2 × Σ n 1 Σ m i 2 1 ( S i j b - S ij a ) × A ij Σ n 1 m i ;
Wherein, represent that in two articles of records of checking card by bus of in i time cycle j pairing, corresponding site number is recorded in more late checking card of time; represent that the checking card early of time in two articles of records of checking card by bus of in i time cycle j pairing record corresponding site number; A ijrepresenting that two articles of in i time cycle j pairing are checked card by bus records the average stop spacing of corresponding circuit; m ithe number that represents the record of checking card by bus in i time cycle, n represents the number of time cycle.
Further, the described time cycle is 24 hours.
To sum up, beneficial effect of the present invention comprises:
In the scheme that the embodiment of the present invention provides, obtain at least one time cycle checking card by bus record after, the record of checking card by bus getting is screened, make the record of checking card by bus that comprises paired appearance in rear each time cycle of screening, be in each time cycle checking card by bus record meet the following conditions: for every in this time cycle record of checking card by bus, in this time cycle, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical; Then,, according to the record of checking card by bus in the each time cycle obtaining after screening, determine the average riding distance in described at least one time cycle.Visible, the present invention has realized automatically definite scheme of average riding distance, and then makes decision maker science formulate running scheduling strategy, rational allocation people's carfare source.
The present invention is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computing machine or other programmable data processing device produces the device for realizing the function of specifying at flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame on computing machine or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and amendment to these embodiment.So claims are intended to be interpreted as comprising preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (10)

1. a definite method for average riding distance, is characterized in that, the method comprises:
Obtain the record of checking card by bus at least one time cycle, every the record of checking card by bus comprises a card number and the data of checking card;
The record of checking card by bus getting is screened, the record of checking card by bus in the each time cycle obtaining after screening meets the following conditions: for every in this time cycle record of checking card by bus, in this time cycle, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical;
According to the record of checking card by bus in the each time cycle obtaining after screening, determine the average riding distance in described at least one time cycle;
Described to get check card by bus record screen, specifically comprise:
For every in the each time cycle record of checking card by bus, determine other records of checking card by bus that whether exist comprised card number identical within this time cycle; Determining while not existing, this record of checking card is by bus deleted; Determining while existing, determine that identical other records of checking card by bus of comprise of card number, whether more than one, if more than one, will comprise all deletions of record of checking card by bus of this card number;
After deleting the record of checking card by bus, further comprise:
For every two records of checking card by bus of the pairing in each time cycle, early one of time that checks card in these two records of checking card is by bus checked card to record by bus as first record of checking card of getting on the bus, another record of checking card is by bus as first record of checking card of getting off; Within other each time cycles, search respectively comprised card number and these two the record institutes of checking card by bus comprise card number identical and two records of checking card by bus matching, in the time finding, early one of time that checks card in two of finding check card record by bus checks card record by bus as second record of checking card of getting on the bus, and another record of checking card is by bus as second record of checking card of getting off; Determine that first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record distance and first between corresponding vehicle location and get off to check card and record the get off distance recording between corresponding vehicle location of checking card of corresponding vehicle location and second and whether exceed in setpoint distance threshold value, being defined as when no, by second record and the second record deletion of checking card of getting off of checking card of getting on the bus.
2. the method for claim 1, is characterized in that, determines that according to following formula first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record the distance S between corresponding vehicle location on:
S on=arcCos[sin Φ 1sin Φ 2+ cos Φ 1cos Φ 2cos (λ 12)] × R × 1000
Wherein: Φ 1expression first is got on the bus to check card and is recorded the latitude value of corresponding vehicle location, Φ 2expression second is got on the bus to check card and is recorded the latitude value of corresponding vehicle location; λ 1expression first is got on the bus to check card and is recorded the longitude of corresponding vehicle location; λ 2expression second is got on the bus to check card and is recorded the longitude of corresponding vehicle location; R is earth radius, and unit is kilometer;
Determine that according to following formula first gets off to check card and record corresponding vehicle location and second and get off to check card and record the distance S between corresponding vehicle location under:
S under=arcCos[sin α 1sin α 2+ cos α 1cos α 2cos (β 12)] × R × 1000;
Wherein: α 1expression first is got off to check card and is recorded the latitude value of corresponding vehicle location, α 2expression second is got off to check card and is recorded the latitude value of corresponding vehicle location; β 1expression first is got off to check card and is recorded the longitude of corresponding vehicle location; β 2expression second is got off to check card and is recorded the longitude of corresponding vehicle location.
3. the method for claim 1, is characterized in that, described according to the record of checking card by bus in the each time cycle obtaining after screening, determines the average riding distance in described at least one time cycle, specifically comprises:
For every in the each time cycle record of checking card by bus, determine according to these data of checking card of checking card by bus in record that this is checked card by bus and record corresponding site number and circuit number;
According to the average stop spacing of every two circuits that record corresponding site number and correspondence of checking card by bus of the pairing in each time cycle, determine the average riding distance in described at least one time cycle.
4. method as claimed in claim 3, is characterized in that, determines described average riding distance L according to following formula:
L = 2 × Σ n 1 Σ m i 2 1 ( S i j b - S ij a ) × A ij Σ n 1 m i ;
Wherein, represent that in two articles of records of checking card by bus of in i time cycle j pairing, corresponding site number is recorded in more late checking card of time; represent that the checking card early of time in two articles of records of checking card by bus of in i time cycle j pairing record corresponding site number; A ijrepresenting that two articles of in i time cycle j pairing are checked card by bus records the average stop spacing of corresponding circuit; m ithe number that represents the record of checking card by bus in i time cycle, n represents the number of time cycle.
5. as the method as described in arbitrary in claim 1-4, it is characterized in that, the described time cycle is 24 hours.
6. a determining device for average riding distance, is characterized in that, this device comprises:
Check card and record acquiring unit, for obtaining the record of checking card by bus at least one time cycle, every the record of checking card by bus comprises a card number and the data of checking card;
The record of checking card screens unit, for the record of checking card by bus getting is screened, the record of checking card by bus in the each time cycle obtaining after screening meets the following conditions: for every in this time cycle record of checking card by bus, in this time cycle, only have other records of checking card by bus that match with this record of checking card by bus, the card number that two records of checking card by bus of pairing comprise is identical;
Average riding distance determining unit, for according to the record of checking card by bus in the each time cycle obtaining after screening, determines the average riding distance in described at least one time cycle;
Described check card record screening unit for:
For every in the each time cycle record of checking card by bus, determine other records of checking card by bus that whether exist comprised card number identical within this time cycle; Determining while not existing, this record of checking card is by bus deleted; Determining while existing, determine that identical other records of checking card by bus of comprise of card number, whether more than one, if more than one, will comprise all deletions of record of checking card by bus of this card number;
Described check card record screening unit also for:
After deleting the record of checking card by bus, for every two records of checking card by bus of the pairing in each time cycle, early one of time that checks card in these two records of checking card is by bus checked card to record by bus as first record of checking card of getting on the bus, and another record of checking card is by bus as first record of checking card of getting off; Within other each time cycles, search respectively comprised card number and these two the record institutes of checking card by bus comprise card number identical and two records of checking card by bus matching, in the time finding, early one of time that checks card in two of finding check card record by bus checks card record by bus as second record of checking card of getting on the bus, and another record of checking card is by bus as second record of checking card of getting off; Determine that first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record distance and first between corresponding vehicle location and get off to check card and record the get off distance recording between corresponding vehicle location of checking card of corresponding vehicle location and second and whether exceed in setpoint distance threshold value, being defined as when no, by second record and the second record deletion of checking card of getting off of checking card of getting on the bus.
7. device as claimed in claim 6, is characterized in that, described in check card record screening unit also for: determine that according to following formula first gets on the bus to check card and record corresponding vehicle location and second and get on the bus to check card and record the distance S between corresponding vehicle location on:
S on=arcCos[sin Φ 1sin Φ 2+ cos Φ 1cos Φ 2cos (λ 12)] × R × 1000
Wherein: Φ 1expression first is got on the bus to check card and is recorded the latitude value of corresponding vehicle location, Φ 2expression second is got on the bus to check card and is recorded the latitude value of corresponding vehicle location; λ 1expression first is got on the bus to check card and is recorded the longitude of corresponding vehicle location; λ 2expression second is got on the bus to check card and is recorded the longitude of corresponding vehicle location; R is earth radius, and unit is kilometer;
Determine that according to following formula first gets off to check card and record corresponding vehicle location and second and get off to check card and record the distance S between corresponding vehicle location under:
S under=arcCos[sin α 1sin α 2+ cos α 1cos α 2cos (β 12)] × R × 1000;
Wherein: α 1expression first is got off to check card and is recorded the latitude value of corresponding vehicle location, α 2expression second is got off to check card and is recorded the latitude value of corresponding vehicle location; β 1expression first is got off to check card and is recorded the longitude of corresponding vehicle location; β 2expression second is got off to check card and is recorded the longitude of corresponding vehicle location.
8. device as claimed in claim 6, is characterized in that, described average riding distance determining unit is used for:
For every in the each time cycle record of checking card by bus, determine according to these data of checking card of checking card by bus in record that this is checked card by bus and record corresponding site number and circuit number;
According to the average stop spacing of every two circuits that record corresponding site number and correspondence of checking card by bus of the pairing in each time cycle, determine the average riding distance in described at least one time cycle.
9. device as claimed in claim 8, is characterized in that, described average riding distance determining unit is used for: determine described average riding distance L according to following formula:
L = 2 × Σ n 1 Σ m i 2 1 ( S i j b - S ij a ) × A ij Σ n 1 m i ;
Wherein, represent that in two articles of records of checking card by bus of in i time cycle j pairing, corresponding site number is recorded in more late checking card of time; represent that the checking card early of time in two articles of records of checking card by bus of in i time cycle j pairing record corresponding site number; A ijrepresenting that two articles of in i time cycle j pairing are checked card by bus records the average stop spacing of corresponding circuit; m ithe number that represents the record of checking card by bus in i time cycle, n represents the number of time cycle.
10. as the device as described in arbitrary in claim 6-9, it is characterized in that, the described time cycle is 24 hours.
CN201110424518.4A 2011-12-16 2011-12-16 Average riding distance determining method and device Active CN102568199B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110424518.4A CN102568199B (en) 2011-12-16 2011-12-16 Average riding distance determining method and device
PCT/CN2011/084299 WO2013086749A1 (en) 2011-12-16 2011-12-20 Method and device for determining average riding distance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110424518.4A CN102568199B (en) 2011-12-16 2011-12-16 Average riding distance determining method and device

Publications (2)

Publication Number Publication Date
CN102568199A CN102568199A (en) 2012-07-11
CN102568199B true CN102568199B (en) 2014-10-01

Family

ID=46413519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110424518.4A Active CN102568199B (en) 2011-12-16 2011-12-16 Average riding distance determining method and device

Country Status (2)

Country Link
CN (1) CN102568199B (en)
WO (1) WO2013086749A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451466A (en) * 2018-12-25 2019-03-08 宁波市轨道交通集团有限公司 It is a kind of for urban track traffic support in real time with offline OD matching system
CN115061995A (en) * 2022-06-10 2022-09-16 吉林云帆智能工程有限公司 Rail vehicle on-road monitoring data rule base model

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540098A (en) * 2009-04-30 2009-09-23 北京工业大学 Matching method based on public transport IC card lines
CN101582200A (en) * 2009-05-31 2009-11-18 杭州全动科技有限公司 All-weather driving management system and management method
CN101615207A (en) * 2009-07-10 2009-12-30 重庆大学 A kind of method of obtaining bus stations with bus-waiting and bus-IC-card-holding passengers
CN102044146A (en) * 2010-12-02 2011-05-04 北京交通发展研究中心 Method for reckoning getting-on stops on basis of data of one-ticket public-transport integrated circuit (IC) card

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007264911A (en) * 2006-03-28 2007-10-11 Hitachi Kanagawa Manufacturing Solution Co Ltd System for collecting and processing ride data on route bus
CN102097002B (en) * 2010-11-22 2013-09-18 东南大学 Method and system for acquiring bus stop OD based on IC card data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540098A (en) * 2009-04-30 2009-09-23 北京工业大学 Matching method based on public transport IC card lines
CN101582200A (en) * 2009-05-31 2009-11-18 杭州全动科技有限公司 All-weather driving management system and management method
CN101615207A (en) * 2009-07-10 2009-12-30 重庆大学 A kind of method of obtaining bus stations with bus-waiting and bus-IC-card-holding passengers
CN102044146A (en) * 2010-12-02 2011-05-04 北京交通发展研究中心 Method for reckoning getting-on stops on basis of data of one-ticket public-transport integrated circuit (IC) card

Also Published As

Publication number Publication date
WO2013086749A1 (en) 2013-06-20
CN102568199A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
Long et al. Evaluating the effectiveness of urban growth boundaries using human mobility and activity records
CN105677804B (en) Method and device for determining authoritative site and establishing database of authoritative site
US10281284B2 (en) Hybrid road network and grid based spatial-temporal indexing under missing road links
CN104778263B (en) A kind of charging station system for electric vehicle emulates data digging method
WO2018058967A1 (en) Ground transportation journey recommendation method, device, apparatus, and computer storage medium
WO2015096400A1 (en) Bus planning method using mobile communication data mining
CN102324128A (en) Method for predicting OD (Origin-Destination) passenger flow among bus stations on basis of IC (Integrated Circuit)-card record and device
EP3146480A1 (en) Method and system for balancing rental fleet of movable assets
CN105513370A (en) Traffic zone dividing method based on sparse vehicle license identification data
CN105427594A (en) Bidirectional-getting-on-passenger-flow-based obtaining method and system for bus section passenger flow volume
CN110288205B (en) Traffic influence evaluation method and device
CN105654721A (en) Method for utilizing public transportation IC cards and vehicle-mounted GPS data to calculate public transportation OD amount
CN109903125A (en) Shared bicycle based on OD data borrow also with park spatial and temporal distributions method for visualizing
CN110310153A (en) A kind of transaction prediction technique and device
CN112529347A (en) Logistics data simulation method and device, electronic equipment and storage medium
CN111476501B (en) Method, device, equipment and medium for measuring workload of loading and unloading engineering vehicle
CN112069635A (en) Battery replacement cabinet deployment method, device, medium and electronic equipment
CN115292507A (en) Traffic travel analysis method, device, equipment and medium based on knowledge graph
CN110362640B (en) Task allocation method and device based on electronic map data
CN102568199B (en) Average riding distance determining method and device
CN106980029B (en) Vehicle overspeed judgment method and system
CN108051011B (en) Reliable navigation path setting method based on taxi experience data
Zacepins et al. Usage of GPS Data for Real-time Public Transport Location Visualisation.
CN110223514B (en) Urban traffic running state analysis method and device and electronic equipment
US20200278214A1 (en) Method, system, and computer program product for generating synthetic demand data of vehicle rides

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant