A kind of public transport vehicle-mounted terminal automatic reporting station method
Technical field
The present invention relates to a kind of public transport vehicle-mounted terminal automatic reporting station method.
Background technology
The automatic broadcasting of public transit vehicle is a very important function in intelligent public transportation system.The automatic broadcasting of public transit vehicle not only can be avoided driver's operation error, greatly reduce the appearance of failing to report station, misrepresenting deliberately station and crossing the phenomenons such as evening paper station, and can also reduce driver's driving intensity, the generation of prevention traffic hazard, has important actual application value.
At present, civilian GPS technology is popularized, and the automatic broadcasting of public transport vehicle-mounted terminal is mainly based on GPS technology.The groundwork process of the automatic broadcasting of car-mounted terminal is as follows: car-mounted terminal is by using GPS technology, obtain the gps coordinate of vehicle, mate with the website coordinate data of storing in terminal, when distance triggers mobile unit while meeting certain condition, carry out sound broadcast, comprising enters the station calls out the stops and departures are called out the stops.Publication number is that 101419751(application number is 200810233089.0) Chinese patent adopt longitude, latitude, the enter/outbound direction angle of bus stop as the foundation of vehicle automatic broadcasting, Vehicle Driving Cycle is carried out in hope uplink and downlink by increasing deflection judge, to avoid coming and going the website of the same name of close together on the circuit chaotic phenomenon of calling out the stops.But this kind of mode needs the information such as enter/outbound direction of extra storage standard angle, deflection decision threshold, and obtaining of raw data is very loaded down with trivial details.In the pre-determined system of bus dispatching task, the line status of the uplink and downlink of Vehicle Driving Cycle is all determined, up-downgoing website can be deposited in respectively in different website sequences, during vehicle automatic broadcasting, need only search coupling in the website sequence of current direction, thereby without carrying out up-downgoing judgement.In addition, this patent and publication number are that 101493990(application number is 200810070527.6) Chinese patent, when calculating the distance of vehicle and bus station, just use vehicle original coordinates, Euclidean distance between directly calculating at 2, and the automatic broadcasting judgement for vehicle by this distance.Owing to there is some turnings and curve in path locus, directly adopt Euclidean distance to carry out automatic broadcasting and there will be the phenomenon of just calling out the stops before turning.
By analysis, in existing disclosed automatic broadcasting scheme, also come with some shortcomings at present, specific as follows:
(1) calculate vehicle and current object website apart from time, the original warp that employing is obtained from GPS equipment, latitude information be as the real time position coordinate of vehicle, and directly calculate the Euclidean distance between vehicle and bus station at 2.This scheme is running into special road section, as below high building side, overhead road of city time, cannot solve gps coordinate drifting problem, there will be the phenomenon at evening paper station; And in thering is the road of curvilinear path, there will be the phenomenon of calling out the stops too early.In addition, when running into circuit turning, the Euclidean distance that calculates gained can not objectively respond the operating range of vehicle and object website, has the phenomenon of just calling out the stops before turning.These factors all can affect the precision of automatic broadcasting and passenger's experience.
(2) distance threshold for automatic broadcasting is set as fixed value, can not dynamically adjust according to vehicle speed condition.When vehicle pull-in speed is higher, the judgement time less of reserving to passenger.Take vehicle pull-in speed as 50km/h be example, vehicle operating range per second surpasses 13 meters, when the distance threshold that enters the station is set as 100 meters, passenger only has the reaction time of several seconds.If threshold value is fixed as to larger value, can when vehicle low speed enters the station, causes the time of calling out the stops too early again, thereby affect passenger's ride experience.
(3) in the actual operation of public transit vehicle, often there is the situation that region, bus station has a plurality of vehicles to enter the station simultaneously.When a plurality of vehicle queues enter the station, part vehicle often will be detained a period of time in site zone.During this period, the existing disclosed automatic broadcasting scheme secondary function of calling out the stops that do not enter the station, the reminding passengers information of arriving at a station, can affect ride experience equally again.
Summary of the invention
In order to overcome the poor deficiency of existing public transport vehicle-mounted terminal automatic broadcasting precision ride experience low, passenger, the invention provides the public transport vehicle-mounted terminal automatic reporting station method that a kind of automatic broadcasting accuracy is high, passenger's ride experience is good.
The technical solution adopted for the present invention to solve the technical problems is:
A terminal automatic reporting station method, described automatic reporting station method comprises the following steps:
(1) read public bus network data message file, obtain the circuit coordinate data of this circuit, mainly comprise station board point coordinate and the line characteristics point coordinate between each station board point coordinate of each website.According to the circuit coordinate data of input, using the station board point coordinate in circuit coordinate data as the reference coordinates of calling out the stops that enters the station, adopt website to pass algorithm and calculate the reference coordinates of calling out the stops that sets off, the reference coordinates of calling out the stops entering the station is called out the stops together with reference coordinates and is alternately formed the out of the station reference coordinates sequence of calling out the stops with departures, and according to circuit up direction and down direction, preserves respectively.The reference coordinates of calling out the stops of entering the station is the automatic broadcasting entering the station for public transit vehicle; The departures reference coordinates of calling out the stops is the automatic broadcasting for public transit vehicle departures.
(2) according to circuit corresponding to vehicle operating task and up-downlink direction information, select the upstream or downstream of the corresponding line reference coordinates sequence of calling out the stops, secondary is set calls out the stops and is masked as 0, and the current index Index that calls out the stops is initialized as to start site that operation task requires corresponding element index in coordinate sequence, using Index in the reference coordinates sequence of calling out the stops the corresponding reference coordinates of calling out the stops as the current reference coordinates of calling out the stops.
(3) in vehicle operating process, from GPS equipment, obtain the current original coordinates data of vehicle, and use coordinate modification algorithm, vehicle original coordinates is processed, obtain revising coordinate.Adopt and revise coordinate as the differentiation coordinate of calling out the stops of vehicle.
(4) calculating vehicle is called out the stops and is differentiated the Euclidean distance d of coordinate and the current reference coordinates of calling out the stops.If the reference coordinates of calling out the stops current is the reference coordinates of calling out the stops that enters the station, according to the difference of vehicle pull-in speed, and the automatic broadcasting threshold value TH of dynamic calculation vehicle pull-in
in; If the reference coordinates of calling out the stops current is reference coordinates, the automatic broadcasting threshold value TH of calling out the stops that set off
outfor fixed value.When vehicle coordinate is less than the corresponding threshold value of calling out the stops with the distance between reference coordinates, i.e. d <=TH when entering the station
inor at when departures d <=TH
out, trigger respectively enter the station automatic broadcasting or the operation of departures automatic broadcasting.When automatic broadcasting type is the automatic broadcasting that enters the station, secondary is set and calls out the stops and be masked as 1, and be the current reference coordinates of calling out the stops by the secondary reference coordinates assignment of calling out the stops, preserve this time and call out the stops the moment of living in; When automatic broadcasting type is for departures automatic broadcastings, remove secondary and call out the stops and be masked as 0.
(5) in step (4), triggered the automatic broadcasting that enters the station or set off, upgrade the current reference coordinates of calling out the stops, from the reference coordinates sequence of calling out the stops out of the station of current circuit traffic direction, obtain the next one reference coordinates of calling out the stops, be that corresponding index Index adds 1, as the current reference coordinates of calling out the stops, and jump to step (7), otherwise enter step (6).
(6) if secondary is called out the stops sign, flag is 1, and is detained over certain time interval T outside secondary is called out the stops region
sec, when vehicle enters the secondary region R that calls out the stops
secafter, utilize the secondary reference coordinates of calling out the stops to carry out calling out the stops of vehicle pull-in for the second time.
(7) if entering the station that the automatic broadcasting of current triggering is terminus called out the stops, finish the automatic broadcasting of current line direction, and automatic switching line up-downgoing; Otherwise return to step (3), continue automatic broadcasting and detect.
Further, in described step (1), track data message file is: adopt binary file form to organize track data information, file comprises file header and line characteristics point coordinate two parts.Wherein, the information of these two sign line characteristics of file header include file version number and line number.Line characteristics point comprises station board point, turning point and the intermediate point of current public bus network, wherein turning point coordinate is that the angle of turning on circuit is less than the turning center coordinate of 150 degree, intermediate point is the canonical coordinates point of wheelpath process between station board point, between turning point and between station board point and turning point, and all line characteristics point coordinate do not overlap mutually.
In described step (1), website is passed algorithm and is: at actual station board point a (x
1, y
1) basis on, by vehicle outbound direction apart from a (x
1, y
1) nearest unique point b (x
2, y
2), to vehicle outbound direction pushing distance D, the reference coordinates c (x, y) that obtains setting off, for the vehicle departures judgement of calling out the stops.D rule of thumb chooses, and span is 50~200 meters.If d
x=| x
2-x
1|, d
y=| y
2-y
1|, the account form of the reference coordinates that sets off c (x, y) as shown in the formula (I):
In described step (3), coordinate modification algorithm is: from GPS equipment, obtain the original coordinates of vehicle, according to projection relation, obtain vehicle original coordinates nearest mapping point on public bus network track, the coordinate of mapping point is correction coordinate.
Further, in described step (4), car speed v and the threshold value TH that calls out the stops that enters the station
inrelation as shown in the formula (II):
In formula (II), when car speed is less than or equal to V
maxtime, the speed of a motor vehicle and automatic broadcasting threshold value are linear increment relationship change; When the speed of a motor vehicle surpasses certain value V
maxtime, automatic broadcasting threshold value is a constant D
max.Rule of thumb, the span of parameter lambda is that the span of [1,10], δ is [60,100], V
maxspan be [40,70], D
maxspan be [150,200], can adjust according to concrete public bus network service requirement.Wherein the unit of car speed is kilometer per hour, and the unit of distance is rice.When the speed of a motor vehicle that enters the station is high, automatic broadcasting threshold value is large; When the speed of a motor vehicle that enters the station is low, automatic broadcasting threshold value is little, to reserved enough the arriving at a station the judgement time of passenger.In addition, in step (4), the reference coordinates of calling out the stops if current is the reference coordinates of calling out the stops that enters the station, and detects current calling out the stops on online rail mark and differentiates coordinate and enter the station to call out the stops whether have turning point coordinate between reference coordinates, if existence, TH
incan not be greater than enters the station calls out the stops reference coordinates and its at a distance of the Euclidean distance d between nearest turning point
c, the TH calculating in formula (II)
inbe greater than d
c, directly by TH
invalue be restricted to d
c.In described step (4), departures automatic broadcasting threshold value T
outfor departures pushing distance, D deducts constant d
outobtain, rule of thumb d
outspan be 1~30 meter.
In described step (6), vehicle is entering the station after automatic broadcasting normally, if owing to occurring the situations such as vehicle pull-in queuing, cause vehicle to be detained near website, the hold-up time surpasses T
secafter also do not enter the secondary region of calling out the stops, when vehicle enters the secondary region of calling out the stops, just trigger secondary and call out the stops, again the reminding passengers information of arriving at a station.Secondary call out the stops scope for take centered by the current reference coordinates that enters the station, radius is R
seccircle.Rule of thumb, T
secspan is 10~60 seconds, R
secspan is 5~50 meters.
Technical conceive of the present invention is: using the station board point coordinate in the circuit trajectory coordinates having gathered as the reference coordinates of calling out the stops that enters the station, utilize station board point coordinate and coordinate points afterwards thereof to calculate the reference coordinates of calling out the stops that sets off, enter the station reference coordinates and the departures reference coordinates of each website are alternately deposited, and form the circuit coordinate sequence of calling out the stops; Utilize projection pattern, obtain vehicle correction coordinate on the line, calculate the circuit track distance of revising coordinate and calling out the stops between reference coordinates, use this distance to carry out automatic broadcasting, thereby improve the automatic broadcasting precision under the circuit track of different characteristic; According to the difference of vehicle pull-in speed, dynamically adjust the automatic broadcasting threshold value of vehicle pull-in, the threshold value of vehicle pull-in automatic broadcasting and the speed of a motor vehicle are linear increment and are related to dynamic change, to reserved certain reaction time of passenger; Detection is differentiated coordinate and enters the station whether have turning point between reference coordinates current calling out the stops, if exist, the threshold value of calling out the stops to entering the station limits; After vehicle enters the station for the first time and calls out the stops, if be detained to surpass certain hour outside secondary is called out the stops region, call out the stops and trigger and enter the station and call out the stops for the second time behind region entering secondary, the reminding passengers information of arriving at a station again, can better promote passenger's ride experience like this.
Beneficial effect of the present invention is mainly manifested in: automatic broadcasting precision is high, passenger's ride experience is good.
Accompanying drawing explanation
The figure of Tu1Shi data organizational structure.
Fig. 2 is departures reference coordinates position view.
Fig. 3 revises coordinate schematic diagram.
Fig. 4 is vehicle automatic broadcasting program flow diagram.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
With reference to accompanying drawing, a kind of public transport vehicle-mounted terminal automatic reporting station method, described automatic reporting station method comprises the following steps:
(1) read public bus network data message file, obtain the circuit coordinate data of this circuit, mainly comprise station board point coordinate and the line characteristics point coordinate between each station board point coordinate of each website.According to the circuit coordinate data of input, using the station board point coordinate in circuit coordinate data as the reference coordinates of calling out the stops that enters the station, adopt website to pass algorithm and calculate the reference coordinates of calling out the stops that sets off, the reference coordinates of calling out the stops entering the station is called out the stops together with reference coordinates and is alternately formed the out of the station reference coordinates sequence of calling out the stops with departures, and according to circuit up direction and down direction, preserves respectively.The reference coordinates of calling out the stops of entering the station is the automatic broadcasting entering the station for public transit vehicle; The departures reference coordinates of calling out the stops is the automatic broadcasting for public transit vehicle departures.
(2) according to circuit corresponding to vehicle operating task and up-downlink direction information, select the upstream or downstream of the corresponding line reference coordinates sequence of calling out the stops, secondary is set calls out the stops and is masked as 0, and the current index Index that calls out the stops is initialized as to start site that operation task requires corresponding element index in coordinate sequence, using Index in the reference coordinates sequence of calling out the stops the corresponding reference coordinates of calling out the stops as the current reference coordinates of calling out the stops.
(3) in vehicle operating process, from GPS equipment, obtain the current original coordinates data of vehicle, and use coordinate modification algorithm, vehicle original coordinates is processed, obtain revising coordinate.Adopt and revise coordinate as the differentiation coordinate of calling out the stops of vehicle.
(4) calculating vehicle is called out the stops and is differentiated the Euclidean distance d of coordinate and the current reference coordinates of calling out the stops.If the reference coordinates of calling out the stops current is the reference coordinates of calling out the stops that enters the station, according to the difference of vehicle pull-in speed, and the automatic broadcasting threshold value TH of dynamic calculation vehicle pull-in
in; If the reference coordinates of calling out the stops current is reference coordinates, the automatic broadcasting threshold value TH of calling out the stops that set off
outfor fixed value.When vehicle coordinate is less than the corresponding threshold value of calling out the stops with the distance between reference coordinates, i.e. d <=TH when entering the station
inor at when departures d <=TH
out, trigger respectively enter the station automatic broadcasting or the operation of departures automatic broadcasting.When automatic broadcasting type is the automatic broadcasting that enters the station, secondary is set and calls out the stops and be masked as 1, and be the current reference coordinates of calling out the stops by the secondary reference coordinates assignment of calling out the stops, preserve this time and call out the stops the moment of living in; When automatic broadcasting type is for departures automatic broadcastings, remove secondary and call out the stops and be masked as 0.
(5) in step (4), triggered the automatic broadcasting that enters the station or set off, upgrade the current reference coordinates of calling out the stops, from the reference coordinates sequence of calling out the stops out of the station of current circuit traffic direction, obtain the next one reference coordinates of calling out the stops, be that corresponding index Index adds 1, as the current reference coordinates of calling out the stops, and jump to step (7), otherwise enter step (6).
(6) if secondary is called out the stops sign, flag is 1, and is detained over certain time interval T outside secondary is called out the stops region
sec, when vehicle enters the secondary region R that calls out the stops
secafter, utilize the secondary reference coordinates of calling out the stops to carry out calling out the stops of vehicle pull-in for the second time.
(7) if entering the station that the automatic broadcasting of current triggering is terminus called out the stops, finish the automatic broadcasting of current line direction, and automatic switching line up-downgoing; Otherwise return to step (3), continue automatic broadcasting and detect.
Track data message file structure as shown in Figure 1.
Adopt binary file form to organize track data information, file comprises file header and line characteristics point coordinate two parts.Wherein, the information of file header (H) include file version number (Version), these two sign circuit global features of line number (LineID), each field is 4bytes.Line characteristics point (A) comprises station board point, turning point and the intermediate point three types of current public bus network.Each unique point use characteristic vertex type (CoordinateType), longitude coordinate (CoordinateX), latitude coordinate (CoordinateY) three part signs, each field is 4bytes.All line characteristics point coordinate do not overlap mutually, and sequentially deposit by bus driving trace.
Departures reference coordinates position as shown in Figure 2.
On the basis of station board point, by vehicle outbound direction distance A (x
1, y
1) nearest unique point B (x
2, y
2), to vehicle outbound direction, pass fixed range, obtain the reference coordinates that sets off, for the vehicle departures judgement of calling out the stops.Thereby departures are called out the stops can be according to judging to the similar mode of calling out the stops of entering the station.Take and pass fixed range D as 100m is example, if expectation vehicle rolls after real site 10m left and right away from, set off and call out the stops, by d
outbe set to 10, automatic broadcasting threshold TH so sets off
outfor D deducts d
out, be worth for 90m.As shown in Figure 2, departures reference coordinates is calculated as follows: A (x
1, y
1) be station board point coordinate, B (x
2, y
2) be the unique point of vehicle outbound direction, to vehicle outbound direction pushing distance D, the reference coordinates C (x, y) that obtains setting off, for the vehicle departures judgement of calling out the stops.If d
x=| x
2-x
1|, d
y=| y
2-y
1|, the reference coordinates that sets off c (x, y) account form is for as shown in the formula (I):
Revise obtaining as shown in Figure 3 of coordinate.
Take a turning section is example, and vehicle, because gps coordinate drifts about, has departed from actual track track.If directly vehicle original coordinates is judged for automatic broadcasting, can affect the accuracy of automatic broadcasting.P in figure
1~p
4for line characteristics point, p
4for the current reference coordinates point of calling out the stops that enters the station.Utilize unique point p
1, p
2, can calculate vehicle at straight line p
1p
2on mapping point A, A is the circuit correction coordinate of vehicle.Using correction coordinate A as the differentiation coordinate of calling out the stops, thus the accuracy of raising automatic broadcasting.
In typical embodiment, car speed v and the threshold value TH that calls out the stops that enters the station
inrelational expression (II) inner, design parameter value is as follows:
V
max=45km/h,D
max=190m,λ=4.5,δ=70m。When vehicle surpasses 45km/h, automatic broadcasting max-thresholds is 190m; When being less than this speed, speed of a motor vehicle ν and automatic broadcasting threshold value are linear transformation, and this threshold value minimum value is 70m.In addition, as shown in Figure 3, when the automatic broadcasting that enters the station is differentiated, due to the existence of turning point, if the speed of a motor vehicle is too fast before turning, A point and the reference coordinates point p that enters the station
4euclidean distance d be less than or equal to TH
in, there is the problem with regard to calling out the stops before turning, therefore utilize p
4distance d between point and its nearest turning point p3
cthe TH that formula (II) is calculated
inlimit, if TH
inbe greater than d
c, by its assignment, be d
c, to improve the passenger of automatic broadcasting, experience.
Vehicle automatic broadcasting program flow diagram as shown in Figure 4.
(1) after program brings into operation, carry out initialization operation, read line circuit-switched data message file, obtains the reference coordinates sequence of calling out the stops of minute up-downgoing.
(2) according to circuit corresponding to vehicle operating task and up-downlink direction information, select the upstream or downstream of the corresponding line reference coordinates sequence of calling out the stops, and the current index Index that calls out the stops is initialized as to start site that operation task requires corresponding element index in coordinate sequence, and the coordinate that Index is pointed to is as the current reference coordinates of calling out the stops.
(3) in vehicle operating process, from GPS equipment, obtain the current original coordinates data of vehicle, and use coordinate modification algorithm, vehicle original coordinates is processed, obtain revising coordinate.Adopt and revise coordinate as the differentiation coordinate of calling out the stops of vehicle.
(4) calculating vehicle is called out the stops and is differentiated the Euclidean distance d of coordinate and the current reference coordinates of calling out the stops.If the reference coordinates of calling out the stops current is for being the reference coordinates of calling out the stops that enters the station, according to the difference of vehicle pull-in speed, and the automatic broadcasting threshold value TH of dynamic calculation vehicle pull-in
in; If the reference coordinates of calling out the stops current is for being the reference coordinates of calling out the stops that sets off, the threshold value T of the automatic broadcasting that sets off
outfor departures pushing distance, D deducts constant d
outobtain.Distance between vehicle coordinate and reference coordinates is less than the threshold value of calling out the stops accordingly, when the automatic broadcasting that enters the station is differentiated, and d <=TH
intime, trigger the automatic broadcasting operation of entering the station, when departures automatic broadcasting, d < TH
outtime, trigger the operation of departures automatic broadcasting.When automatic broadcasting type is the automatic broadcasting that enters the station, secondary is set and calls out the stops and be masked as 1, and be the current reference coordinates of calling out the stops by the secondary reference coordinates assignment of calling out the stops, record this time residing moment t that calls out the stops
in; When automatic broadcasting type is for departures automatic broadcastings, remove secondary and call out the stops and be masked as 0.
(5) in step (4), triggered the automatic broadcasting that enters the station or set off, upgrade the current reference coordinates of calling out the stops, from the reference coordinates sequence of calling out the stops out of the station of current circuit traffic direction, obtain the next one reference coordinates of calling out the stops, the corresponding index Index that calls out the stops adds 1, as the current reference coordinates of calling out the stops, and jump to step (7), otherwise enter step (6).
(6), if meet the secondary condition of calling out the stops, the secondary sign flag that calls out the stops is 1, and is detained over certain time interval T secondary is called out the stops region outside
sec, when vehicle enters the secondary region R that calls out the stops
secafter, utilize the secondary reference coordinates of calling out the stops to carry out calling out the stops of vehicle pull-in for the second time.
(7) if entering the station that the automatic broadcasting of current triggering is terminus called out the stops, finish the automatic broadcasting of current line direction, and automatic switching line up-downgoing; Otherwise return to step (3), continue to detect automatic broadcasting.
Although illustrated and described embodiments of the invention, it should be appreciated by those skilled in the art, in the situation that not deviating from invention spirit and principle, in the scope of claims and equivalent restriction thereof, can make various changes to these examples.