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

Average riding distance determining method and device Download PDF

Info

Publication number
CN102568199A
CN102568199A CN2011104245184A CN201110424518A CN102568199A CN 102568199 A CN102568199 A CN 102568199A CN 2011104245184 A CN2011104245184 A CN 2011104245184A CN 201110424518 A CN201110424518 A CN 201110424518A CN 102568199 A CN102568199 A CN 102568199A
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.)
Granted
Application number
CN2011104245184A
Other languages
Chinese (zh)
Other versions
CN102568199B (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.)
Hisense TransTech Co Ltd
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

Images

Classifications

    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry
    • 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

  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Chemical & Material Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Analytical Chemistry (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (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

Average definite method and apparatus of distance by bus
Technical field
The present invention relates to intelligent transportation field, relate in particular to a kind of average definite method and apparatus of distance by bus.
Background technology
It is the basic foundation that the urban public transport gauze is laid and optimized 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; Promptly when passenger loading to passenger's lattice that issue a questionnaire; The passenger fills up a form according to the trip situation of oneself, when getting off, reclaims form then, confirms distance by bus according to the form that reclaims.Reasons such as convenience that this can fill up a form owing to the passenger when practical operation and passenger's cooperate degree are low are brought some difficulties, thereby are difficult to guarantee the accuracy of enquiry data.
Therefore be necessary to realize a kind of method of confirming automatically of average distance by bus, improving the precision of data computation, and then make the decision maker science formulate running scheduling strategy, rational allocation people's carfare source.
Summary of the invention
The embodiment of the invention provides a kind of average definite method and apparatus of distance by bus, is used to solve confirm the average problem of distance by bus how automatically.
A kind of average definite method of distance by bus, this 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 to getting access to screens; The record of checking card by bus in each time cycle that obtains after the screening meets the following conditions: for every in this time cycle record of checking card by bus; Only have other records of checking card by bus that match with this record of checking card by bus in this time cycle, the card number that two records of checking card by bus of pairing are comprised is identical;
According to the record of checking card by bus in each time cycle that obtains after the screening, confirm the average distance by bus in said at least one time cycle.
A kind of average definite device of distance by bus, this device comprises:
The record acquiring unit of checking card is used to obtain the record of checking card by bus at least one time cycle, and every the record of checking card by bus comprises a card number and the data of checking card;
The record screening unit of checking card; Be used for the record of checking card by bus that gets access to is screened; The record of checking card by bus in each time cycle that obtains after the screening meets the following conditions: for every in this time cycle record of checking card by bus; Only have other records of checking card by bus that match with this record of checking card by bus in this time cycle, the card number that two records of checking card by bus of pairing are comprised is identical;
Average distance determining unit by bus is used for according to the record of checking card by bus in each time cycle that obtains after the screening, confirms the average distance by bus in said at least one time cycle.
In this programme; Behind the record of checking card by bus that obtains at least one time cycle; The record of checking card by bus to getting access to screens; Make and screen the record of checking card by bus that comprises paired appearance in each time cycle of back; Be that interior checking card by bus record of each time cycle meets the following conditions: for every in this time cycle record of checking card by bus, only have other records of checking card by bus that match with this record of checking card by bus in this time cycle, the card number that two records of checking card by bus of pairing are comprised is identical; Then, according to the record of checking card by bus in each time cycle that obtains after the screening, confirm the average distance by bus at least one time cycle.It is thus clear that the present invention has realized automatically definite scheme of average distance by bus, and then make the decision maker science formulate running scheduling strategy, rational allocation people's carfare source.
Description of drawings
The method flow synoptic diagram that Fig. 1 provides for the embodiment of the invention;
The apparatus structure synoptic diagram that Fig. 2 provides for the embodiment of the invention.
Embodiment
In order to realize on average automatically definite scheme of distance by bus; The embodiment of the invention provides a kind of average definite method of distance by bus; In this method, behind the record of checking card by bus that obtains at least one time cycle, the record of checking card by bus that gets access to is screened; Make and screen the record of checking card by bus that comprises paired appearance in each time cycle of back; Promptly, there be twice record of checking card of this card number, confirm average distance by bus according to the record of checking card by bus that obtains after the screening then for same card number.
Referring to Fig. 1, average definite method of distance by bus that the embodiment of the invention provides may further comprise the 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 to getting access to screens; The record of checking card by bus in each time cycle that obtains after the screening meets the following conditions: for every in this time cycle record of checking card by bus; Only have other records of checking card by bus that match with this record of checking card by bus in this time cycle, the card number that two records of checking card by bus of pairing are comprised is identical;
Step 12:, confirm the average distance by bus in said at least one time cycle based on the record of checking card by bus in each time cycle that obtains after the screening.
In the step 11, the record of checking card by bus that gets access to is screened, concrete realization can be following:
For every in each time cycle record of checking card by bus, carry out operation as follows:
Confirm in the time cycle at the current record place of checking card by bus, whether to exist comprise other identical records of checking card by bus of card number; When confirming not exist, with this bar record deletion of checking card by bus.
Further, in order to make The selection result more accurate, and then make that definite result of average distance by bus is more accurate, can carry out the record screening operation of further checking card by bus as follows:
Above-mentionedly check card by bus when writing down confirming in the time cycle at the current record place of checking card by bus, to exist institute to comprise identical other of card number; Can confirm comprise identical other of card number and whether check card record by bus more than one; If more than one, then will comprise the record Delete All of checking card by bus of this card number.
Further, in order to make The selection result more accurate, and then make that definite result of average distance by bus is more accurate, after the deletion action of accomplishing 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 per 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 record by bus as first record of checking card of getting on the bus, and another record of checking card by bus is as first record of checking card of getting off; In other each time cycles, search respectively comprise card number and these two the record institute that checks card by bus and comprise identical and two records of checking card by bus pairing of card number, as if not finding, then do not carry out any operation; If find, early one of time that checks card in two records of checking card by bus that then will find checks card record by bus as second record of checking card of getting on the bus, and another record of checking card by bus is as second record of checking card of getting off; Confirm that first get on the bus get on the bus the get off corresponding vehicle location and second of record of checking card of distance and first between the corresponding vehicle location of record of checking card of the corresponding vehicle location and second of record of checking card gets off to check card and whether write down distance between the corresponding vehicle location above in the setpoint distance threshold value; When confirming to be not, with second record and second record deletion of checking card of getting off of checking card of getting on the bus.
Concrete, can according to following formula one confirm first get on the bus check card the corresponding vehicle location and second of record get on the bus check card write down between the corresponding vehicle location apart from S 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 write down the latitude value of corresponding vehicle location, Φ 2Expression second is got on the bus to check card and is write down the latitude value of corresponding vehicle location; λ 1Expression first is got on the bus to check card and is write down the longitude of corresponding vehicle location; λ 2Expression second is got on the bus to check card and is write down the longitude of corresponding vehicle location; R is an earth radius, and unit is a kilometer;
According to following formula two confirm first get off check card the corresponding vehicle location and second of record get off check card write down between the corresponding vehicle location apart from S Down:
Formula two: S Down=arcCos [sin α 1Sin α 2+ cos α 1Cos α 2Cos (β 12)] * R * 1000;
Wherein: α 1Expression first is got off to check card and is write down the latitude value of corresponding vehicle location, α 2Expression second is got off to check card and is write down the latitude value of corresponding vehicle location; β 1Expression first is got off to check card and is write down the longitude of corresponding vehicle location; β 2Expression second is got off to check card and is write down the longitude of corresponding vehicle location; R is an earth radius, and unit is a kilometer.
Article one, getting on the bus checks card writes down 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 the record that the circuit number that comprises is 10, the time of checking card is points in the mornings 10, the vehicle position information that then in the GPS of vehicle device, reads circuit 10, the morning 10 correspondences is as this corresponding vehicle position information of record of checking card of getting on the bus.
In the step 12, according to the record of checking card by bus in each time cycle that obtains after the screening, confirm the average distance by bus in said at least one time cycle, concrete realization can be following:
For every in each time cycle record of checking card by bus, confirm this check card by bus record corresponding site number and circuit number according to the data of checking card in this record of checking card by bus;
Based on the average stop spacing of corresponding site number of per two records of checking card by bus of the pairing in each time cycle and corresponding circuit, confirm the average distance by bus in said at least one time cycle.
Here, the corresponding circuit number of record of checking card by bus can be read from the data of checking card of this record of checking card by bus; The corresponding site number of record of checking card by bus can be obtained according to following mode: the information of at first obtaining this corresponding vehicle location of record of checking card by bus; Then according to the corresponding relation of predefined vehicle location and site number; Confirm this corresponding pairing site number of vehicle location of record of checking card by bus, this site number is this corresponding site number of record of checking card by bus.
Concrete, can confirm said average distance L by bus 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,
Figure BDA0000121326590000052
Represent the later corresponding site number of record of checking card of time in j in i time cycle two records of checking card by bus that match;
Figure BDA0000121326590000053
The site number of representing the time record correspondence of checking card early in j in i time cycle two records of checking card by bus that match; A IjThe average stop spacing of representing two corresponding circuits of record of checking card by bus of j pairing in i time cycle; m iThe number of representing the record of checking card by bus in i time cycle, the number in n express time cycle.
Definite method of formula three is following:
Suppose the m that adds up to of first day the record of checking card by bus 1, the m that adds up to of second day the record of checking card by bus 2, the m that adds up to of n days the record of checking card by bus n
Then n days the record sum of checking card by bus is m 1+ m 2+ ...+m nSame card number all has the record of checking card by bus twice in the record of checking card by bus of every day, so the number of samples of analyzing does
Figure BDA0000121326590000061
Total record number of checking card was m in first day 1, suppose S JaBe m 1The record of checking card in first time of j card the check card website sequence number of record correspondence, S JbBe m 1The record of checking card in second time of j card the check card website sequence number of record correspondence, A jBe the check card average stop spacing of place circuit of j card, then in first day the record by bus distance and do
Figure BDA0000121326590000062
N days data accumulations are got up to be:
D = Σ n 1 Σ m i 2 1 ( S ij b - S ij a ) × A ij
Because
Figure BDA0000121326590000064
with C and this formula of D substitution, draws passenger's mean distance and 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 confirm average by bus apart from the time, site number need be numeral.And need preestablish the average stop spacing of each circuit.
In this method can with one day promptly 24 hours as a time cycle, certainly, can also with time period of any other length as a time cycle, such as one hour, a 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 in the record of checking card by bus 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 an IC-card etc.
The present invention will be described below in conjunction with specific embodiment:
Embodiment one:
Need check card gets off owing to getting on the bus need not to check card in some ground public transport; Thereby can't learn passenger's the place of getting off; But exist the passenger to arrive the characteristics of returning from the destination by bus again behind the destination by bus, these characteristics are especially obvious morning peak and evening peak embodiment, and present embodiment is the analysis through transit riding in a period of time being checked card writing down just; Draw data model, draw average distance by bus according to the data computation in the data model with these characteristics.
Step 1: obtain the record of checking card by bus in n days;
Step 2: to the passenger who gets access to check card the record screen; The record of checking card by bus in the every day that obtains after the screening meets the following conditions: for every in this day record of checking card by bus; Only have other records of checking card by bus that match with this record of checking card by bus in this day, the card number that two records of checking card by bus of pairing are comprised is identical;
Concrete: at first, for every in the every day record of checking card by bus, confirm in this day, whether to exist institute comprise card number and this check card by bus write down comprise other identical records of checking card by bus of card number; When confirming not exist, with this bar record deletion of checking card by bus;
Then, for per 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 record by bus as first record of checking card of getting on the bus, and another record of checking card by bus is as first record of checking card of getting off; In other each time cycles, search respectively comprise card number and these two the record institute that checks card by bus and comprise identical and two records of checking card by bus pairing of card number, as if not finding, then do not carry out any operation; If find, early one of time that checks card in two records of checking card by bus that then will find checks card record by bus as second record of checking card of getting on the bus, and another record of checking card by bus is as second record of checking card of getting off;
Confirm that according to formula one first the get on the bus corresponding vehicle location and second of record of checking card gets on the bus to check card and write down first distance between the corresponding vehicle location; Confirm that according to formula two first the get off corresponding vehicle location and second of record of checking card gets off to check card and write down the second distance between the corresponding vehicle location; Confirm that whether first distance and second distance surpass in the setpoint distance threshold value, when confirming as not, with second record and second record deletion of checking card of getting off of checking card of getting on the bus.For example, the setpoint distance threshold value can be 400 meters.
Step 3:, confirm the average by bus distance of passenger in n days according to the record of checking card by bus in the every day that obtains after the screening.
Concrete, at first,, confirm this check card by bus record corresponding site number and circuit number according to the data of checking card in this record of checking card by bus for every in the every day record of checking card by bus;
Then, confirm the average by bus distance of passenger in n days according to formula three.
Embodiment two:
Present embodiment to both having existed get on the bus need check card, getting off need not to check card, and has the situation of getting on the bus and getting off and all need check card again.
Step 1: obtain the record of checking card by bus in n days;
Step 2: to the passenger who gets access to check card the record screen; The record of checking card by bus in the every day that obtains after the screening meets the following conditions: for every in this day record of checking card by bus; Only have other records of checking card by bus that match with this record of checking card by bus in this day, the card number that two records of checking card by bus of pairing are comprised is identical;
Concrete: at first, for every in the every day record of checking card by bus, confirm in this day, whether to exist institute comprise card number and this check card by bus write down comprise other identical records of checking card by bus of card number; When confirming not exist, with this bar record deletion of checking card by bus; When confirming to exist; Whether definite card number other by bus check card records identical with this card number that record comprises of checking card by bus that comprise are more than one; If more than one, then with this bar check card by bus record and institute comprise card number and this check card by bus write down comprise other identical record Delete Alls of checking card by bus of card number;
Then, for per 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 record by bus as first record of checking card of getting on the bus, and another record of checking card by bus is as first record of checking card of getting off; In other each time cycles, search respectively comprise card number and these two the record institute that checks card by bus and comprise identical and two records of checking card by bus pairing of card number, as if not finding, then do not carry out any operation; If find, early one of time that checks card in two records of checking card by bus that then will find checks card record by bus as second record of checking card of getting on the bus, and another record of checking card by bus is as second record of checking card of getting off;
Confirm that according to formula one first the get on the bus corresponding vehicle location and second of record of checking card gets on the bus to check card and write down first distance between the corresponding vehicle location; Confirm that according to formula two first the get off corresponding vehicle location and second of record of checking card gets off to check card and write down the second distance between the corresponding vehicle location; Confirm that whether first distance and second distance surpass in the setpoint distance threshold value, when confirming as not, with second record and second record deletion of checking card of getting off of checking card of getting on the bus.For example, the setpoint distance threshold value can be 400 meters.
Step 3:, confirm the average by bus distance of passenger in n days according to the record of checking card by bus in the every day that obtains after the screening.
Concrete, at first,, confirm this check card by bus record corresponding site number and circuit number according to the data of checking card in this record of checking card by bus for every in the every day record of checking card by bus;
Then, confirm the average by bus distance of passenger in n days according to formula three.
Adopt above-mentioned two embodiment, can science calculate average distance by bus.Ride to investigate the mode of taking a sample apart from adopting mostly for conventional bus passenger in the classic method, science is not difficult to obtain result more accurately yet.The present invention has the data model of identical flowing law through foundation, adopts reverse method to calculate average distance by bus, and can combine data such as city bus travelling speed to draw average riding time of passenger, for weighing the city bus service level foundation is provided.
Adopt above-mentioned two embodiment, can calculate for bus passenger flow OD matrix provides foundation.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 need carry out the part investigation to passenger flow data; Meet Poisson distribution with the checking bus passenger flow, and then draw the OD matrix.The present invention calculates average distance by bus through analyzing the bus passenger trip characteristics, with the convenient bus passenger flow OD matrix that forms.
Referring to Fig. 2, the embodiment of the invention provides a kind of average definite device of distance by bus, and this device comprises:
Check card and write down acquiring unit 20, be used to 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;
Check card and write down screening unit 21; Be used for the record of checking card by bus that gets access to is screened; The record of checking card by bus in each time cycle that obtains after the screening meets the following conditions: for every in this time cycle record of checking card by bus; Only have other records of checking card by bus that match with this record of checking card by bus in this time cycle, the card number that two records of checking card by bus of pairing are comprised is identical;
Average distance determining unit 22 by bus is used for based on the record of checking card by bus in each time cycle that obtains after the screening, confirms the average distance by bus in said at least one time cycle.
Further, the said record screening unit 21 of checking card is used for:
For every in each time cycle record of checking card by bus, confirm in this time cycle, whether to exist comprise card number and this other identical records of checking card by bus of card number that record comprises of checking card by bus; When confirming not exist, with this bar record deletion of checking card by bus.
Further, the said record screening unit 21 of checking card also is used for:
When confirming to exist; Whether definite card number other by bus check card records identical with this card number that record comprises of checking card by bus that comprise are more than one; If more than one, then with this bar check card by bus record and institute comprise card number and this check card by bus write down comprise other identical record Delete Alls of checking card by bus of card number.
Further, the said record screening unit 21 of checking card also is used for:
After record is checked card in deletion by bus; Per two records of checking card by bus for 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 record by bus as first record of checking card of getting on the bus, and another record of checking card by bus is as first record of checking card of getting off; In other each time cycles, search respectively comprise card number and these two identical and two records of checking card by bus that match of card number that record comprises of checking card by bus; When finding; Early one of time that checks card in two that the find records of checking card is by bus checked card record by bus as second record of checking card of getting on the bus, and another record of checking card by bus is as second record of checking card of getting off; Confirm that first get on the bus get on the bus the get off corresponding vehicle location and second of record of checking card of distance and first between the corresponding vehicle location of record of checking card of the corresponding vehicle location and second of record of checking card gets off to check card and whether write down distance between the corresponding vehicle location above in the setpoint distance threshold value; When not confirming as not, with second record and second record deletion of checking card of getting off of checking card of getting on the bus.
Further, the said record screening unit 21 of checking card also is used for: according to following formula confirm first get on the bus check card the corresponding vehicle location and second of record get on the bus check card write down between the corresponding vehicle location apart from S 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 write down the latitude value of corresponding vehicle location, Φ 2Expression second is got on the bus to check card and is write down the latitude value of corresponding vehicle location; λ 1Expression first is got on the bus to check card and is write down the longitude of corresponding vehicle location; λ 2Expression second is got on the bus to check card and is write down the longitude of corresponding vehicle location; R is an earth radius, and unit is a kilometer;
According to following formula confirm first get off check card the corresponding vehicle location and second of record get off check card write down between the corresponding vehicle location apart from S Down:
S Down=arcCos [sin α 1Sin α 2+ cos α 1Cos α 2Cos (β 12)] * R * 1000;
Wherein: α 1Expression first is got off to check card and is write down the latitude value of corresponding vehicle location, α 2Expression second is got off to check card and is write down the latitude value of corresponding vehicle location; β 1Expression first is got off to check card and is write down the longitude of corresponding vehicle location; β 2Expression second is got off to check card and is write down the longitude of corresponding vehicle location; R is an earth radius, and unit is a kilometer.
Further, said average distance determining unit 22 by bus is used for:
For every in each time cycle record of checking card by bus, confirm this check card by bus record corresponding site number and circuit number according to the data of checking card in this record of checking card by bus;
Based on the average stop spacing of corresponding site number of per two records of checking card by bus of the pairing in each time cycle and corresponding circuit, confirm the average distance by bus in said at least one time cycle.
Further, said average distance determining unit 22 by bus is used for: confirm said average distance L by bus 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,
Figure BDA0000121326590000112
Represent the later corresponding site number of record of checking card of time in j in i time cycle two records of checking card by bus that match;
Figure BDA0000121326590000113
The site number of representing the time record correspondence of checking card early in j in i time cycle two records of checking card by bus that match; A IjThe average stop spacing of representing two corresponding circuits of record of checking card by bus of j pairing in i time cycle; m iThe number of representing the record of checking card by bus in i time cycle, the number in n express time cycle.
Further, the said time cycle is 24 hours.
To sum up, beneficial effect of the present invention comprises:
In the scheme that the embodiment of the invention provides; Behind the record of checking card by bus that obtains at least one time cycle; The record of checking card by bus to getting access to screens; Make and screen the record of checking card by bus that comprises paired appearance in each time cycle of back; Be that interior checking card by bus record of each time cycle meets the following conditions: for every in this time cycle record of checking card by bus, only have other records of checking card by bus that match with this record of checking card by bus in this time cycle, the card number that two records of checking card by bus of pairing are comprised is identical; Then, based on the record of checking card by bus in each time cycle that obtains after the screening, confirm the average distance by bus in said at least one time cycle.It is thus clear that the present invention has realized automatically definite scheme of average distance by bus, and then make the decision maker science formulate running scheduling strategy, rational allocation people's carfare source.
The present invention is that reference is described according to the process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the 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, make the instruction of carrying out through the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in ability vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work; Make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device; Make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of on computing machine or other programmable devices, carrying out is provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Although described the preferred embodiments of the present invention, in a single day those skilled in the art get the basic inventive concept could of cicada, then can make other change and modification to these embodiment.So accompanying claims is intended to be interpreted as all changes and the modification that comprises preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (16)

1. average definite method of distance by bus is characterized in that this 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 to getting access to screens; The record of checking card by bus in each time cycle that obtains after the screening meets the following conditions: for every in this time cycle record of checking card by bus; Only have other records of checking card by bus that match with this record of checking card by bus in this time cycle, the card number that two records of checking card by bus of pairing are comprised is identical;
According to the record of checking card by bus in each time cycle that obtains after the screening, confirm the average distance by bus in said at least one time cycle.
2. the method for claim 1 is characterized in that, said to get access to check card by bus the record screen, specifically comprise:
For every in each time cycle record of checking card by bus, confirm in this time cycle, whether to exist comprise other identical records of checking card by bus of card number; When confirming not exist, with this bar record deletion of checking card by bus.
3. method as claimed in claim 2 is characterized in that, when confirming to exist, further comprises:
If whether definite other identical records of checking card by bus of card number that comprise more than one, then will comprise by bus the check card record Delete All of this card number more than one.
4. method as claimed in claim 2 is characterized in that, after record is checked card in deletion by bus, further comprises:
For per 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 record by bus as first record of checking card of getting on the bus, another record of checking card by bus is as first record of checking card of getting off; In other each time cycles, search respectively comprise card number and these two identical and two records of checking card by bus that match of card number that record comprises of checking card by bus; When finding; Early one of time that checks card in two that the find records of checking card is by bus checked card record by bus as second record of checking card of getting on the bus, and another record of checking card by bus is as second record of checking card of getting off; Confirm that first get on the bus get on the bus the get off corresponding vehicle location and second of record of checking card of distance and first between the corresponding vehicle location of record of checking card of the corresponding vehicle location and second of record of checking card gets off to check card and whether write down distance between the corresponding vehicle location above in the setpoint distance threshold value; When not confirming as not, with second record and second record deletion of checking card of getting off of checking card of getting on the bus.
5. method as claimed in claim 4 is characterized in that, according to following formula confirm first get on the bus check card the corresponding vehicle location and second of record get on the bus check card write down between the corresponding vehicle location apart from S 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 write down the latitude value of corresponding vehicle location, Φ 2Expression second is got on the bus to check card and is write down the latitude value of corresponding vehicle location; λ 1Expression first is got on the bus to check card and is write down the longitude of corresponding vehicle location; λ 2Expression second is got on the bus to check card and is write down the longitude of corresponding vehicle location; R is an earth radius, and unit is a kilometer;
According to following formula confirm first get off check card the corresponding vehicle location and second of record get off check card write down between the corresponding vehicle location apart from S Down:
S Down=arcCos [sin α 1Sin α 2+ cos α 1Cos α 2Cos (β 12)] * R * 1000;
Wherein: α 1Expression first is got off to check card and is write down the latitude value of corresponding vehicle location, α 2Expression second is got off to check card and is write down the latitude value of corresponding vehicle location; β 1Expression first is got off to check card and is write down the longitude of corresponding vehicle location; β 2Expression second is got off to check card and is write down the longitude of corresponding vehicle location; R is an earth radius, and unit is a kilometer.
6. the method for claim 1 is characterized in that, and is said according to the record of checking card by bus in each time cycle that obtains after the screening, confirms the average by bus distance of passenger in said at least one time cycle, specifically comprises:
For every in each time cycle record of checking card by bus, confirm this check card by bus record corresponding site number and circuit number according to the data of checking card in this record of checking card by bus;
Based on the average stop spacing of corresponding site number of per two records of checking card by bus of the pairing in each time cycle and corresponding circuit, confirm the average distance by bus in said at least one time cycle.
7. method as claimed in claim 6 is characterized in that, confirms said average distance L by bus 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,
Figure FDA0000121326580000032
Represent the later corresponding site number of record of checking card of time in j in i time cycle two records of checking card by bus that match;
Figure FDA0000121326580000033
The site number of representing the time record correspondence of checking card early in j in i time cycle two records of checking card by bus that match; A IjThe average stop spacing of representing two corresponding circuits of record of checking card by bus of j pairing in i time cycle; m iThe number of representing the record of checking card by bus in i time cycle, the number in n express time cycle.
8. like arbitrary described method among the claim 1-7, it is characterized in that the said time cycle is 24 hours.
9. average definite device of distance by bus is characterized in that this device comprises:
The record acquiring unit of checking card is used to obtain the record of checking card by bus at least one time cycle, and every the record of checking card by bus comprises a card number and the data of checking card;
The record screening unit of checking card; Be used for the record of checking card by bus that gets access to is screened; The record of checking card by bus in each time cycle that obtains after the screening meets the following conditions: for every in this time cycle record of checking card by bus; Only have other records of checking card by bus that match with this record of checking card by bus in this time cycle, the card number that two records of checking card by bus of pairing are comprised is identical;
Average distance determining unit by bus is used for according to the record of checking card by bus in each time cycle that obtains after the screening, confirms the average distance by bus in said at least one time cycle.
10. device as claimed in claim 9 is characterized in that, the said record screening unit of checking card is used for:
For every in each time cycle record of checking card by bus, confirm in this time cycle, whether to exist comprise other identical records of checking card by bus of card number; When confirming not exist, with this bar record deletion of checking card by bus.
11. device as claimed in claim 10 is characterized in that, the said record screening unit of checking card also is used for:
When confirming to exist, confirm that whether institute comprises other identical records of checking card by bus of card number more than one, as if more than one, then will comprise the record Delete All of checking card by bus of this card number.
12. device as claimed in claim 10 is characterized in that, the said record screening unit of checking card also is used for:
After record is checked card in deletion by bus; Per two records of checking card by bus for 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 record by bus as first record of checking card of getting on the bus, and another record of checking card by bus is as first record of checking card of getting off; In other each time cycles, search respectively comprise card number and these two identical and two records of checking card by bus that match of card number that record comprises of checking card by bus; When finding; Early one of time that checks card in two that the find records of checking card is by bus checked card record by bus as second record of checking card of getting on the bus, and another record of checking card by bus is as second record of checking card of getting off; Confirm that first get on the bus get on the bus the get off corresponding vehicle location and second of record of checking card of distance and first between the corresponding vehicle location of record of checking card of the corresponding vehicle location and second of record of checking card gets off to check card and whether write down distance between the corresponding vehicle location above in the setpoint distance threshold value; When not confirming as not, with second record and second record deletion of checking card of getting off of checking card of getting on the bus.
13. device as claimed in claim 12 is characterized in that, the said record screening unit of checking card also is used for: according to following formula confirm first get on the bus check card the corresponding vehicle location and second of record get on the bus check card write down between the corresponding vehicle location apart from S 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 write down the latitude value of corresponding vehicle location, Φ 2Expression second is got on the bus to check card and is write down the latitude value of corresponding vehicle location; λ 1Expression first is got on the bus to check card and is write down the longitude of corresponding vehicle location; λ 2Expression second is got on the bus to check card and is write down the longitude of corresponding vehicle location; R is an earth radius, and unit is a kilometer;
According to following formula confirm first get off check card the corresponding vehicle location and second of record get off check card write down between the corresponding vehicle location apart from S Down:
S Down=arcCos [sin α 1Sin α 2+ cos α 1Cos α 2Cos (β 12)] * R * 1000;
Wherein: α 1Expression first is got off to check card and is write down the latitude value of corresponding vehicle location, α 2Expression second is got off to check card and is write down the latitude value of corresponding vehicle location; β 1Expression first is got off to check card and is write down the longitude of corresponding vehicle location; β 2Expression second is got off to check card and is write down the longitude of corresponding vehicle location; R is an earth radius, and unit is a kilometer.
14. device as claimed in claim 9 is characterized in that, said average distance determining unit by bus is used for:
For every in each time cycle record of checking card by bus, confirm this check card by bus record corresponding site number and circuit number according to the data of checking card in this record of checking card by bus;
Based on the average stop spacing of corresponding site number of per two records of checking card by bus of the pairing in each time cycle and corresponding circuit, confirm the average distance by bus in said at least one time cycle.
15. device as claimed in claim 14 is characterized in that, said average distance determining unit by bus is used for: confirm said average distance L by bus 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,
Figure FDA0000121326580000052
Represent the later corresponding site number of record of checking card of time in j in i time cycle two records of checking card by bus that match;
Figure FDA0000121326580000053
The site number of representing the time record correspondence of checking card early in j in i time cycle two records of checking card by bus that match; A IjThe average stop spacing of representing two corresponding circuits of record of checking card by bus of j pairing in i time cycle; m iThe number of representing the record of checking card by bus in i time cycle, the number in n express time cycle.
16., it is characterized in that the said time cycle is 24 hours like arbitrary described device among the claim 9-15.
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 true CN102568199A (en) 2012-07-11
CN102568199B 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)

Cited By (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

Cited By (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

Also Published As

Publication number Publication date
CN102568199B (en) 2014-10-01
WO2013086749A1 (en) 2013-06-20

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
Thomas et al. Automatic trip detection with the Dutch mobile mobility panel: towards reliable multiple-week trip registration for large samples
CN102324128A (en) Method for predicting OD (Origin-Destination) passenger flow among bus stations on basis of IC (Integrated Circuit)-card record and device
CN110222959B (en) Urban employment reachability measuring and calculating method and system based on big data
US20140149036A1 (en) Constructing travel itineraries from tagged geo-temporal photographs
CN104937375A (en) Destination prediction device, destination prediction method, and destination display method
Nocera et al. Micro and Macro modelling approaches for the evaluation of the carbon impacts of transportation
Ram et al. SMARTBUS: A web application for smart urban mobility and transportation
CN107403550B (en) Public transport road network data acquisition method and device and terminal equipment
CN105654721A (en) Method for utilizing public transportation IC cards and vehicle-mounted GPS data to calculate public transportation OD amount
Montini et al. Searching for parking in GPS data
CN110362640B (en) Task allocation method and device based on electronic map data
CN112069635B (en) Method and device for deploying battery changing cabinet, medium and electronic equipment
CN111476501B (en) Method, device, equipment and medium for measuring workload of loading and unloading engineering vehicle
CN110555432A (en) Method, device, equipment and medium for processing interest points
CN113838303B (en) Parking lot recommendation method and device, electronic equipment and storage medium
CN107331149A (en) The method and apparatus for predicting time of vehicle operation
CN102568199B (en) Average riding distance determining method and device
CN202853620U (en) Mobile equipment-based resident trip surveying device
US11060879B2 (en) Method, system, and computer program product for generating synthetic demand data of vehicle rides
Kochan et al. Dynamic activity-travel diary data collection using a GPS-enabled personal digital assistant
CN113379162B (en) Method for estimating running quantity of motor vehicle on rural highway
Jariyasunant Improving traveler information and collecting behavior data with smartphones
CN110992686B (en) Traffic travel big data analysis method

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