Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of acquisition method of city traffic road condition, and the data range owing to gathering that is intended to solve existing technical scheme is inadequate, causes the incomplete problem of city traffic road condition information.
The embodiment of the present invention is achieved in that a kind of acquisition method of city traffic road condition, and described method comprises:
The locating information of the described bus that in the reception city, the positioning equipment of bus reports;
The locating information of adjacent twice reported separately according to described bus calculates the speed separately of described bus;
Traffic according to this city of updating location information separately of the speed separately of described bus and described bus specifically comprises:
Obtain speed and this bus De Wei Ge information of location Wei Ge information at the bus of major trunk roads, select the speed of the location Wei Ge of adjacent twice collection at the bus of same road conditions unit, add up the total quantity of the bus of same road conditions unit, as total quantity reaches amount threshold, extract the most intensive speed interval of the bus of same road conditions unit, using the mean value of this speed interval as the speed responsing of this road conditions unit in urban traffic situation information;
Wherein, the mode of intensive speed interval of the bus of the same road conditions of described extraction unit is specially: by the speed responsing of the bus of same road conditions unit in velocity diagram, obtain speed number and speed difference between all any two speed, the speed difference is the density of any two speed intervals divided by the speed number, the interval of corresponding any two speed of the value that this density is the highest is the most intensive speed interval.
On the one hand, provide a kind of acquisition system of city traffic road condition, described system comprises:
Collecting unit, the locating information of the described bus reported for the positioning equipment that receives the city bus;
Computing unit, calculate the speed separately of described bus for the locating information of adjacent twice reported separately according to bus;
Updating block, traffic for this city of updating location information separately according to the speed separately of described bus and this bus, described updating block comprises the extraction update module, described extraction update module specifically for the speed responsing of the bus by same road conditions unit in velocity diagram, obtain speed number and speed difference between all any two speed, the speed difference is the density of any two speed intervals divided by the speed number, the interval of corresponding any two speed of the value that this density is the highest is the most intensive speed interval, using the mean value of this speed interval as the speed responsing of this road conditions unit in urban traffic situation information.
In embodiments of the present invention, the gps data that technical scheme provided by the invention reports by the reception bus GPS is calculated the speed of this bus, thereby the transport information of judgement bus place road conditions, due to what receive, be the information that bus reports separately, in big city, bus substantially can covering whole city transportation network, by bus separately the transport information of place road conditions combine the traffic information that is whole city, know city traffic road condition information so it has advantages of comprehensively.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
It should be noted that, the locating information that locating device provided by the invention and device report has much information, and for example locating device can be GPS, GPRS, radar, watch-dog etc.Its information reported can be also specifically: other information of GPS information or some, and the specific embodiment of the invention is in order to narrate conveniently, and locating device be take the GPS device as example, and locating information be take GPS information as example.
The present invention based on thinking be such, in present big city, particularly China big city, traffic worse and worse, how effectively to understand more and more important that traffic information becomes, and effectively understand the collection that focuses on traffic information of traffic information, the present invention is according to the shortcoming of existing acquisition mode, a kind of brand-new road condition acquiring mode is proposed, gather the traffic information in city with the GPS information of bus, in present big city, bus is more and more, route substantially can covering whole city transportation network, and existing most of bus itself just is equipped with GPS equipment, so only need set up a city bus acquisition system receives the GPS information that bus GPS equipment sends and gets final product, this kind of mode can be good at gathering city traffic road condition information, due to its broad covered area, so the traffic information of its collection is comprehensive, and technical scheme of the present invention only need to be carried out some improvement and just can be realized on the basis of existing equipment, so it is embodied as originally not high, have advantages of that cost is low.
The acquisition method of a kind of city traffic road condition provided by the invention, the method is completed by the road condition acquiring system, and the method as shown in Figure 1, comprises the steps:
The GPS information of this bus that in S11, reception city, the GPS equipment of bus reports;
It should be noted that, above-mentioned GPS information at least comprises: the positional information of this bus (for example longitude and latitude) and on call time; In addition, above-mentioned bus comprises: all buses that GPS equipment is installed in city.
In addition, the above-mentioned mode that reports can adopt multiple wireless mode, for example, the modes such as GPRS, TD-SCDMA or CDMA, the present invention does not limit to this specific implementation reported, and can certainly adopt the mode reported of mixing, for example, when TD-SCDMA or cdma network poor signal, be switched in GPRS network and transmit data.
S12, the GPS information of adjacent twice reported separately according to bus calculate the speed separately of this bus;
It should be noted that, above-mentioned bus reports and is specifically as follows separately: all buses report the GPS information of himself separately.
Optionally, the mode that realizes S12 is specifically as follows: each bus obtains the time interval of adjacent twice, primary positional information and secondary positional information separately, with the difference of twice positional information, is the speed of this bus divided by the time interval.It should be noted that, the difference of above-mentioned twice positional information is the air line distance of twice positional information not necessarily, difference now is the actual range that bus is walked between these two positional informations, now need to consider the road conditions (being for example forthright, fork etc.) of the position at bus place.
715 buses of Wuhan City of below take illustrate the method for calculating as example, and being take in the stand highway section of Hong Shanzhan of the street mouth of Hongshan District, Wuhan Wu Luolu in highway section is example (this highway section is forthright); Suppose that the time interval now reported is 120 seconds, the positional information that the positional information reported for the first time is mouth station, street, the positional information that the positional information reported for the second time is Hong Shanzhan, being spaced apart of the positional information reported for twice: 624 meters, the speed calculated is: 18.74 kms/hour.
S13, according to the traffic in this city of updating location information separately of the speed separately of bus and this bus.
Optionally, the mode that realizes S13 can be for multiple, for example according to the scope of bus speed, determine the state of traffic, for example, speed is 0, road conditions are for stopping up, 0-10 kms/hour interval in can be for blocking up, 10-20 kms/hour interval in be slow, 20 kms/hour more than can be for unimpeded, certainly in actual conditions, the user can set traffic according to the actual conditions in city, for example, Wuhan, the traffic such as Beijing are relatively blocked up, what numeral can be arranged is lower, and traffic good city relatively, what for example Hong Kong can arrange numeral is higher.In addition, when the situation of sign traffic, can also adopt different colors to identify, for example red representative is stopped up, and orange representative is blocked up, and slowly, it is unimpeded etc. that green represents in yellow representative.
Optionally, realize that the mode of S13 can also be: whether the bus speed of obtaining according to the positional information judgement of bus is effective, and then the traffic in this city is upgraded in the position of the speed of the effective bus of basis and this bus.
It should be noted that, that effectively whether condition can be for following condition is multiple for the bus speed that judgement is obtained according to the positional information of bus, can certainly obtain whether whether speed is effective in the mode of the mixing condition of following condition.
The GPS position of condition A, certain adjacent twice collection of bus (can not set up on their own according to the situation in city by the user in same road conditions unit, such as 1km, adjacent two bus stops etc.) in, below take two adjacent bus stations is the example explanation, just crossed over a bus station (arbitrarily) as twice data acquisition, it is invalid that this speed is considered as.
In condition B, same road conditions unit, the image data of many buses appears simultaneously, take fastest one be effective traffic road condition data.It is invalid that other speed datas that gather in this unit are considered as.
Condition C, bus enter the station: when bus is less than certain threshold value (as 100 meters) apart from bus station, now being difficult to automatic decision is that public transport is entered the station or traffic jam, in this algorithm, adopt the method that reduces the information acquisition interval to process (as acquisition interval is reduced to 30 seconds once).
Condition D, in the case, if speed be 0 and car door open (by GPS equipment, obtaining door contact interrupter information), this speed data be considered as invalid.
The red light such as condition E, bus: the Real-time Obtaining lights state, if bus is less than certain threshold value (as 100 meters) and speed is 0 apart from traffic lights, and in the situation of when red, it is invalid that this speed data is considered as.
When condition F, bus stop at starting point, terminal, bus and start, end stop apart from being less than certain threshold value (as 100 meters), and speed is 0 o'clock, it is invalid that this speed data is considered as.
Condition G, no matter bus is in which kind of state, if car door opening, the speed data that is considered as this collection is invalid.
Method provided by the invention is owing to adopting public transit system to gather urban traffic situation information, urban mass-transit system is more and more flourishing, substantially the main traffic main line that can contain city, by rational selection public bus network and data acquisition interval, can obtain the traffic in whole city, the data of collection more comprehensively.Mobility based on bus, be to take line to gather traffic as basis, and wired being combined, form a reticulate texture, rather than traditional take point and gather traffic as unit, and the data of collection are more accurate.Because the trip custom in the planning of public bus network and city is relevant, the major trunk roads that easily generation is blocked up, wagon flow is more intensive, the information gathered is also just abundant, peak period on and off duty, the interval of dispatching a car is more intensive, and the information of collection is also abundanter.Be convenient to install and implement, only GPS collecting device (having a lot of bus equipment that the GPS collecting device is all arranged) need to be installed on bus can realize information acquisition, and implementation cost is cheap.
Urban road generally all is divided into major trunk roads and ordinary road, and the accuracy of the traffic information of major trunk roads plays a part very crucial to the traffic information accuracy in whole city, here, the application adopts special screening mode to major trunk roads, in real traffic, the speed of most of buses is only the main information of the whole condition of road surface of reaction, according to the statistics rule, the data that the gather data of last statistics more at most are more accurate, major trunk roads in city, bus quantity a lot (generally simultaneously having the vehicle more than 50 to move on road), so can obtain speed data more accurately by preferential mode, better to react the traffic in city.
Optionally, the mode of the above-mentioned S13 of realization can also be adopted otherwise,
Obtain the GPS positional information in the speed of the bus of major trunk roads and the positional information of this bus, select the speed of the GPS position of adjacent twice collection at the bus of same road conditions unit, add up the total quantity of the bus of same road conditions unit, as total quantity reaches amount threshold, extract the most intensive speed interval of the bus of same road conditions unit, using the mean value of this speed interval as the speed responsing of this road conditions unit in urban traffic situation information.
Optionally, the mode of intensive speed interval of extracting the bus of same road conditions unit is specifically as follows:
By the speed responsing of the bus of same road conditions unit in velocity diagram, obtain speed number and speed difference between all any two speed, the speed difference is the density of any two speed intervals divided by the speed number, the interval of corresponding any two speed of the value that this density is the highest is the most intensive speed interval, in addition, in order to get rid of the impact of interference noise, here need to set another one speed number threshold value, when only the speed number between any two speed outpaces the number threshold value, just carry out density calculation, the interference of the speed interval that energy eliminating speed is close like this, make the most intensive speed interval calculate more accurate.
The invention provides a kind of acquisition system of city traffic road condition, this system as shown in Figure 2, comprising:
Collecting unit 21, the GPS information of this bus reported for the GPS equipment that receives the city bus;
Computing unit 22, calculate the speed separately of this bus for the GPS information of adjacent twice reported separately according to bus;
Updating block 23, for the traffic in this city of updating location information separately of the speed separately according to bus and this bus.
Optionally, whether the bus speed that updating block 23 obtains specifically for the judgement of the positional information according to bus is effective, and then the traffic in this city is upgraded in the position of the speed of the effective bus of basis and this bus.
Optionally, above-mentioned updating block 23 specifically comprises:
Acquisition module 231, for obtaining the GPS positional information in the speed of the bus of major trunk roads and the positional information of this bus;
Statistical module 232, the speed for the GPS position of selecting adjacent twice collection at the bus of same road conditions unit, the total quantity of adding up the bus of same road conditions unit, as total quantity reaches amount threshold;
Extract update module 233, for the most intensive speed interval of the bus that extracts same road conditions unit, using the mean value of this speed interval as the speed responsing of this road conditions unit in urban traffic situation information.
Optionally, extracting update module 233 specifically can be for the speed responsing of the bus by same road conditions unit at velocity diagram, obtain speed number and speed difference between all any two speed, the speed difference is the density of any two speed intervals divided by the speed number, the interval of corresponding any two speed of the value that this density is the highest is the most intensive speed interval, using the mean value of this speed interval as the speed responsing of this road conditions unit in urban traffic situation information.
In said units and system embodiment, included modules or unit are just divided according to function logic, but are not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional module also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
It will be understood by those skilled in the art that all or part of step of technical scheme that the embodiment of the present invention provides be can be relevant by programmed instruction hardware complete.Such as completing by the computer run journey.This program can be stored in read/write memory medium, for example, and random access memory, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.