CN105989177A - Bus information inquiring method and bus information inquiring apparatus - Google Patents
Bus information inquiring method and bus information inquiring apparatus Download PDFInfo
- Publication number
- CN105989177A CN105989177A CN201510100008.XA CN201510100008A CN105989177A CN 105989177 A CN105989177 A CN 105989177A CN 201510100008 A CN201510100008 A CN 201510100008A CN 105989177 A CN105989177 A CN 105989177A
- Authority
- CN
- China
- Prior art keywords
- time
- sub
- public bus
- bus network
- line road
- 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.)
- Pending
Links
Abstract
The embodiment of the invention provides a bus information inquiring method and a bus information inquiring apparatus, wherein the method may comprise steps as follows: receiving a bus route inquiring request, wherein the inquiring request comprises a destination; according to a current starting point position and the destination, inquiring a bus route from the current starting point position to the destination; acquiring real-time road condition dynamic information corresponding to the bus route; and according to the real-time road condition dynamic information, calculating time consumption of a whole trip of taking the bus route. With the method and the apparatus provided by the invention, time consumption of the whole trip of taking the bus route can be calculated according to the real-time road condition dynamic information corresponding to the bus route, and the provided time consumption of the whole trip is real-time and highly accurate.
Description
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of bus information inquiry method and device.
Background technology
With the development in city, the trip of people for convenience, urban public bus lines is on the increase.Numerous
In public bus network, user is difficult to the public bus network selecting to be suitable for oneself trip.Therefore to carry to user's trip
For circuit query, existing public transit system utilizes mobile network can provide the user public bus network inquiry service,
It is i.e. to provide user to take pubic transport go to all kinds of Bus informations needed for B ground from A, including need the public affairs taken
The information such as line name and the running time according to normal travel speed of friendship.But provided in prior art
The public bus network inquiry public bus network that is only to provide of service in some static Bus informations, be i.e. no matter to use
It is identical whenever family inquires about obtained Bus information, but owing to traffic is changeable, when different
Between section may the traffic information of bus different, the such as travel speed of bus different time sections is just different,
Therefore the running time in the static Bus information provided in the inquiry service of existing public bus network does not also have
There is referential.
Content of the invention
The embodiment of the present invention provides a kind of bus information inquiry method and device, can be corresponding according to public bus network
Real-time road multidate information calculates and uses the omnidistance time-consuming of this public bus network, and the whole process of offer time-consumingly has in real time
Property, accuracy is high.
First aspect present invention provides a kind of bus information inquiry method, it may include:
Receiving public bus network inquiry request, described inquiry request includes destination;
According to current start position and described destination, inquiry is from described current start position to described destination
Public bus network;
Obtain described public bus network corresponding real-time road multidate information;
According to described real-time road multidate information, calculate and use the omnidistance time-consuming of described public bus network.
Second aspect present invention provides a kind of Bus information inquiry unit, it may include:
Receiver module, is used for receiving public bus network inquiry request, and described inquiry request includes destination;
Enquiry module, for according to current start position and described destination, inquiry is from described current starting point position
Put the public bus network of described destination;
Acquisition module, is used for obtaining described public bus network corresponding real-time road multidate information;
Computing module, for according to described real-time road multidate information, calculating and using the complete of described public bus network
Journey is time-consuming.
Implement the embodiment of the present invention, have the advantages that
The embodiment of the present invention, receive public bus network inquiry request, this inquiry request includes destination, according to work as
Front start position and destination, the public bus network from current start position to destination for the inquiry, obtain this public transport
Circuit corresponding real-time road multidate information, calculates according to real-time road multidate information and uses this public bus network
Omnidistance time-consuming.This mode is that the real-time road multidate information according to public bus network calculates this public bus network of employing
Omnidistance time-consuming, the whole process being provided time-consumingly has real-time and referential, and accuracy is high.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement
In example or description of the prior art, the accompanying drawing of required use is briefly described, it should be apparent that, describe below
In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying
On the premise of going out creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of a kind of bus information inquiry method that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the another kind of bus information inquiry method that Fig. 2 provides for the embodiment of the present invention;
The flow chart of another bus information inquiry method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of Bus information inquiry unit that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of computing module that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of collection unit that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the another kind of Bus information inquiry unit that Fig. 7 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
It Chu, is fully described by, it is clear that described embodiment is only a part of embodiment of the present invention, rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
Property work under the premise of the every other embodiment that obtained, broadly fall into the scope of protection of the invention.
The bus information inquiry method of the embodiment of the present invention can apply in public bus network planning, in current public affairs
Public bus network planning in friendship system can provide takes pubic transport go to all kinds of Bus informations needed for B ground from A,
Including need the public bus network title taken, upper and lower station, Walking Route and according to normal travel speed
Whole process is time-consuming etc..But all kinds of Bus informations being provided are static Bus information, due to traffic
Changeable, often there is change in the travel speed of bus, in static Bus information according to normal travel speed
Omnidistance time-consumingly not there is referential and real-time.Also just can do nothing to help when user understands actual trip and spent
The time taken.The embodiment of the present invention can calculate to use according to the real-time road multidate information of public bus network and be somebody's turn to do
The whole process of public bus network is time-consuming, and wherein, real-time road multidate information can include the feelings of blocking up of this public bus network
Condition, or the public transport average running speed of this public bus network etc..Calculated according to real-time road multidate information
Whole process time-consumingly there is real-time.
Below in conjunction with accompanying drawing 1-accompanying drawing 3, the bus information inquiry method providing the embodiment of the present invention is carried out in detail
Thin introduction.
Refer to Fig. 1, for the flow chart of a kind of bus information inquiry method that the embodiment of the present invention provides;The party
Method can comprise the following steps S100-step S103.
S100, receives public bus network inquiry request, and described inquiry request includes destination;
In specific embodiment, at the Bus information query display page, user can carry out public bus network inquiry,
Input needs the destination reaching.Receive the public bus network inquiry request of user, inquire about according to this public bus network
Destination in request carries out public bus network inquiry.It should be noted that can in this public bus network inquiry request
To include the current start position that user inputs, it is also possible to do not include current start position.If public bus network is looked into
When inquiry request does not includes current start position, global positioning system (Global Positioning can be passed through
System, GPS) obtain current start position.
S101, according to current start position and described destination, inquiry is from described current start position to described
The public bus network of destination;
In specific embodiment, according to current start position and destination, to bus service system queries from currently
Start position is to the public bus network of destination.Can have many from current start position to the public bus network of destination
Bar, it is also possible to only one.Each public bus network can include a sub-circuit, it is also possible to includes multiple
Sub-line road, when including multiple sub-line road, sub-line road can be transfer interval.
S102, obtains described public bus network corresponding real-time road multidate information;
In specific embodiment, obtain inquired public bus network corresponding real-time road multidate information, be i.e.
Send time of public bus network inquiry request according to user to obtain this corresponding real-time road of moment public bus network and move
State information.Real-time road multidate information can include the current time public transport average running speed of this public bus network,
Also the jam situation of this public bus network current time can be included.If acquired public bus network includes many height
Circuit, then obtain each sub-line road corresponding real-time road multidate information.Real-time road multidate information can be anti-
Reflect the real-time traffic of current time public bus network, the whole process therefore being calculated time-consumingly have real-time and
Accuracy.
S103, according to described real-time road multidate information, calculates and uses the omnidistance time-consuming of described public bus network.
In specific embodiment, according to acquired real-time road multidate information, calculate and use this public bus network
Omnidistance time-consuming.Concrete computational methods it may be that for example, when real-time road multidate information is public bus network
Current time public transport average running speed, then calculate omnidistance time-consuming method it may be that obtain this public bus network
Mileage length, and calculate according to the mileage length of public bus network and current time public transport average running speed and adopt
Time-consuming by the whole process of this public bus network, the whole process being calculated time-consumingly is shown.
If it should be noted that the public bus network inquired about includes multiple sub-line road, acquired public bus network
Corresponding real-time road multidate information includes the real-time road multidate information on each sub-line road in multiple sub-line road,
When then calculating whole process is time-consuming, need the mileage length according to each sub-line road dynamic with the real-time road on this sub-line road
State information calculates the running time on this sub-line road, and finally accumulating the running time on all sub-line roads is i.e. this public affairs
The whole process on intersection road is time-consuming.
Optionally, so that the whole process being provided time-consumingly has real-time and referential, can be automatically to institute
The whole process calculating time-consumingly automatically updates, for example, it is possible to request updated this whole process consumption automatically every 10 seconds
When information, i.e. be reacquire public bus network corresponding real-time road multidate information, and according to reacquire
Real-time road multidate information, calculates the omnidistance time-consuming of described public bus network, time-consumingly believes to update original whole process
Breath.Automatically updating also can be that user is manually updated, and for example, user can click on touch-screen equipment to touch
Send out the renewal of omnidistance time-consuming information, when listening to user and clicking on touch-screen equipment, initiate public bus network corresponding
The reacquisition request of real-time road multidate information, and the real-time road multidate information meter arriving according to reacquisition
Calculate and use the omnidistance time-consuming of this public bus network.
The embodiment of the present invention, receive public bus network inquiry request, this inquiry request includes destination, according to work as
Front start position and destination, the public bus network from current start position to destination for the inquiry, obtain this public transport
Circuit corresponding real-time road multidate information, calculates according to real-time road multidate information and uses this public bus network
Omnidistance time-consuming.This mode is that the real-time road multidate information according to public bus network calculates this public bus network of employing
Omnidistance time-consuming, the whole process being provided time-consumingly has real-time and referential, and accuracy is high.
Refer to Fig. 2, for the flow chart of the another kind of bus information inquiry method that the embodiment of the present invention provides;Institute
Stating public bus network and including at least one sub-line road, described public bus network corresponding real-time road multidate information includes
The current time public transport average running speed at least one sub-line road described;The method can comprise the following steps
S200-step S205.
S200, receives public bus network inquiry request, and described inquiry request includes destination;
S201, according to current start position and described destination, inquiry is from described current start position to described
The public bus network of destination;
S202, obtains described public bus network corresponding real-time road multidate information;
Step S200-step S202 of the present embodiment can be found in the step S100-step of embodiment illustrated in fig. 1
S102, is not repeated herein.
S203, for sub-line road each described, obtains the corresponding mileage length in described sub-line road;
In specific embodiment, public bus network includes at least one sub-line road, the corresponding real-time road of public bus network
Multidate information includes the current time public transport average running speed on each sub-line road.Calculating this public bus network
Omnidistance time-consuming when, for each sub-line road, obtain this sub-line road corresponding mileage length.Sub-line road can
To be the transfer interval in inquired about public bus network, sub-line road corresponding mileage length is i.e. that this transfer is interval
Mileage length.
S204, the current time public transport according to the corresponding mileage length in described sub-line road and described sub-line road is put down
The equal speed of service, calculates the corresponding running time in described sub-line road;
In specific embodiment, public bus network corresponding real-time road multidate information is every at least one sub-line road
The public transport average running speed of individual sub-circuit, for each sub-line road, according to this corresponding mileage in sub-line road
The current time public transport average running speed on length and this sub-line road, when calculating the corresponding traveling in this sub-line road
Between.The such as a length of S of this corresponding mileage in sub-line road, the current time public transport average running speed on this sub-line road
For V, then this sub-line road corresponding running time T=S/V.
Each corresponding running time in described sub-line road is collected, obtains described public bus network by S205
Omnidistance time-consuming.
In specific embodiment, in the public bus network that will be inquired about, each corresponding running time in sub-line road converges
Always, obtaining the omnidistance time-consuming of this public bus network, this whole process is time-consumingly omnidistance time-consuming for theory.For example, this public transport
Circuit includes three sub-circuits altogether, and each the corresponding running time in sub-line road being calculated is respectively T1, T2
And T3, then corresponding for three sub-circuits running time is collected, obtain the omnidistance time-consuming of this public bus network
T=T1+T2+T3.
Optionally, in order to more accurately represent the omnidistance time-consuming of this public bus network, the embodiment of the present invention will be used
The stand-by period at family and the running time of bus carry out unifying to collect, therefore by each in the embodiment of the present invention
The method of summary that the corresponding running time in sub-line road collects may comprise steps of S20-S22;
S20, obtains the current location of each bus associated by described sub-line road;
In specific embodiment, in actual applications, the omnidistance of usual public bus network time-consumingly not only includes each
The corresponding running time in sub-line road, also includes user's changing between current start position and each sub-line road
Take advantage of the stand-by period a little, be i.e. each sub-line road corresponding stand-by period, but each sub-line road is corresponding etc.
Treat that the time is associated with the current location of the bus associated by each sub-line road, therefore obtain each sub-line road
The current location of associated bus, each bus associated by sub-line road is will be on this sub-line road pair
The bus of the traveling section travel answered, some bus quantity associated by sub-line road can have multiple,
Specifically chosen which bus of taking of user depends on the time-consuming length before this sub-line road.
S21, the current location of the bus according to associated by each described sub-line road and each described sub-line road pair
The running time answered, determines each described sub-line road corresponding stand-by period;
In specific embodiment, the current location of the bus according to associated by each sub-line road and each sub-line
The corresponding running time in road, selects user specifically to need the bus taken on each sub-line road, and then determines
User needs the stand-by period of the transfer point between current start position and each sub-line road, is i.e. each
The sub-line road corresponding stand-by period.
For example, a certain bar public bus network has two sub-circuits, and the corresponding running time of first sub-circuit is
10min, the corresponding running time of second sub-circuit is 5min, the public transport according to associated by first sub-circuit
The current location of car, selects fastest to the bus reaching current start position, it is assumed that fastest to the bus reaching
Need 2min, then first sub-circuit corresponding stand-by period is 2min, and the time reaching transfer point is
12min, the current location of the bus according to associated by 12min and second sub-circuit, selection user can
With at the transfer bus the fastest that sits on of dot product, it is assumed that at transfer point, that user can take and with second
Need 15min fastest to the bus reaching transfer point in bus associated by individual sub-circuit, then user is in transfer
The stand-by period of point is 3min, be i.e. second sub-circuit corresponding stand-by period be 3min.
Each corresponding running time in described sub-line road and stand-by period are collected, obtain described public affairs by S22
The whole process on intersection road is time-consuming.
In specific embodiment, each corresponding running time in sub-line road and stand-by period are collected, to obtain final product
Time-consuming to the whole process of this public bus network.Continue to illustrate with the citing in step S21, a certain bar public transport line
There are two sub-circuits on road, and the corresponding running time of first sub-circuit is 10min, and first sub-circuit is corresponding
Stand-by period is 2min, and the corresponding running time of second sub-circuit is 5min, and second sub-circuit is corresponding
Stand-by period is 3min, then omnidistance time-consuming for 10min+2min+5min+3min=20min.
The embodiment of the present invention, receive public bus network inquiry request, this inquiry request includes destination, according to work as
Front start position and destination, the public bus network from current start position to destination for the inquiry, obtain this public transport
Circuit corresponding real-time road multidate information, calculates according to real-time road multidate information and uses this public bus network
Omnidistance time-consuming.This mode is that the real-time road multidate information according to public bus network calculates this public bus network of employing
Omnidistance time-consuming, the whole process being provided time-consumingly has real-time and referential, and accuracy is high.
Refer to Fig. 3, for the flow chart of another bus information inquiry method that the embodiment of the present invention provides;Should
Method can comprise the following steps S300-step S306.
S300, receives public bus network inquiry request, and described inquiry request includes destination;
S301, according to current start position and described destination, inquiry is from described current start position to described
The public bus network of destination;
S302, obtains described public bus network corresponding real-time road multidate information;
S303, according to described real-time road multidate information, calculates and uses the omnidistance time-consuming of described public bus network.
Step S300-step S303 of the present embodiment can be found in the step S100-step of embodiment illustrated in fig. 1
S103, is not repeated herein.
Optionally, if including at least two from described current start position to the public bus network of described destination,
The further comprising the steps of S304-S306 of bus information inquiry method in the embodiment of the present invention;
S304, the whole process calculating every public bus network at least two public bus networks described in using is time-consuming, and presses
According to time-consuming length, the whole process of described at least two public bus networks is time-consumingly ranked up.
In specific embodiment, if including at least two from current start position to the public bus network of destination, pin
Calculate the omnidistance time-consuming of this public bus network to each public bus network.According to time-consuming length, to described at least two
The whole process of bar public bus network is time-consumingly ranked up, and shows the public bus network after sequence.Optionally, Ke Yiyou
First show time-consumingly short public bus network, be i.e. fastest to the public bus network reaching destination.
S305, at least two public bus networks described in acquisition every public bus network initial sub-line road associated by
Distance between the current location of bus and described current start position, and export and described current starting point position
The spacing put bus information the shortest.
It in specific embodiment, when between current start position and destination, public bus network includes at least two, is
Make the user can clearly in stand-by period and the public affairs reaching current start position at first of current start position
Hand over car, the public transport associated by initial sub-line road of every public bus network at least two public bus networks can be obtained
The current location of car, and export the bus information the shortest with the spacing of current start position.Initial sub-line
Road is i.e. first sub-circuit of public bus network, that is to say first transfer interval.Rising of certain public bus network
Bus associated by beginning sub-line road can be the public transport on this initial sub-line road that will reach current start position
Car.It should be noted that the public bus network corresponding to the bus the shortest with the spacing of current start position
Whole process be time-consumingly not likely to be the shortest.
S306, at least two public bus networks described in acquisition every public bus network initial sub-line road associated by
The vacant seat quantity of bus, and export the most bus information of vacant seat quantity.
In specific embodiment, in order to provide the public affairs of each bar public bus network to the user waiting at current start position
Hand over the jam situation on car, it is simple to user selects the most bus of vacant seat quantity.Obtain at least two public transport
In circuit every public bus network the bus associated by initial sub-line road on vacant seat quantity, and export vacant seat
The most bus information of quantity.Bus information can include the positional information of this bus current time,
Current driving speed etc..Optionally, acquisition initiates the vacant seat quantity on the bus associated by sub-line road
Acquisition methods can be to obtain according to the number of times of checking card of bus, it is also possible to is the pressure according to bus
Sensor is estimated, etc..
The embodiment of the present invention, receive public bus network inquiry request, this inquiry request includes destination, according to work as
Front start position and destination, the public bus network from current start position to destination for the inquiry, obtain this public transport
Circuit corresponding real-time road multidate information, calculates according to real-time road multidate information and uses this public bus network
Omnidistance time-consuming.This mode is that the real-time road multidate information according to public bus network calculates this public bus network of employing
Omnidistance time-consuming, the whole process being provided time-consumingly has real-time and referential, and accuracy is high.
Below in conjunction with accompanying drawing 4-accompanying drawing 7, a kind of Bus information inquiry unit providing the embodiment of the present invention enters
Row is discussed in detail.
Refer to Fig. 4, for the structural representation of a kind of Bus information inquiry unit that the embodiment of the present invention provides;
This device mays include: receiver module the 10th, enquiry module the 11st, acquisition module 12 and computing module 13;
Receiver module 10, is used for receiving public bus network inquiry request, and described inquiry request includes destination;
In specific embodiment, at the Bus information query display page, user can carry out public bus network inquiry,
Input needs the destination reaching.Receiver module 10 receives the public bus network inquiry request of user, according to this public affairs
Destination in the inquiry request of intersection road carries out public bus network inquiry.It should be noted that this public bus network is looked into
Ask in request and can include the current start position that user inputs, it is also possible to do not include current start position.If
When public bus network inquiry request does not includes current start position, global positioning system (Global can be passed through
Positioning System, GPS) obtain current start position.
Enquiry module 11, for according to current start position and described destination, inquiry is from described current starting point
Position is to the public bus network of described destination;
In specific embodiment, enquiry module 11 is according to current start position and destination, to bus service system
The public bus network from current start position to destination for the inquiry.Public transport line from current start position to destination
Road can have a plurality of, it is also possible to only one.Each public bus network can include a sub-circuit, it is possible to
To include multiple sub-line road, when including multiple sub-line road, sub-line road can be transfer interval.
Acquisition module 12, is used for obtaining described public bus network corresponding real-time road multidate information;
In specific embodiment, it is dynamic that acquisition module 12 obtains the inquired corresponding real-time road of public bus network
Information, is i.e. to send time of public bus network inquiry request according to user to obtain this moment public bus network corresponding
Real-time road multidate information.Real-time road multidate information can include that the current time public transport of this public bus network is put down
The equal speed of service, it is also possible to include the jam situation of this public bus network current time.If acquired public transport line
Road includes multiple sub-line road, then acquisition module 12 obtains each sub-line road corresponding real-time road multidate information.
Real-time road multidate information can reflect the real-time traffic of current time public bus network, is therefore calculated
Whole process time-consumingly there is real-time and accuracy.
Computing module 13, for according to described real-time road multidate information, calculating and using described public bus network
Omnidistance time-consuming.
In specific embodiment, computing module 13, according to acquired real-time road multidate information, calculates to use and is somebody's turn to do
The whole process of public bus network is time-consuming.The concrete computational methods of computing module 13 it may be that for example, work as real-time road
Multidate information is the current time public transport average running speed of public bus network, then calculating omnidistance time-consuming method can
Being, obtain the mileage length of this public bus network, and public according to mileage length and the current time of public bus network
Hand over average running speed to calculate and use the omnidistance time-consuming of this public bus network, the whole process being calculated time-consumingly is shown
Show.
If it should be noted that the public bus network inquired about includes multiple sub-line road, acquired public bus network
Corresponding real-time road multidate information includes the real-time road multidate information on each sub-line road in multiple sub-line road,
When then calculating whole process is time-consuming, computing module 13 needs mileage length and this sub-line road according to each sub-line road
Real-time road multidate information calculates the running time on this sub-line road, finally tires out the running time on all sub-line roads
Long-pending is i.e. the omnidistance time-consuming of this public bus network.
Optionally, so that the whole process being provided time-consumingly has real-time and referential, can be automatically to institute
The whole process calculating time-consumingly automatically updates, for example, it is possible to request updated this whole process consumption automatically every 10 seconds
When information, i.e. be reacquire public bus network corresponding real-time road multidate information, and according to reacquire
Real-time road multidate information, calculates the omnidistance time-consuming of described public bus network, time-consumingly believes to update original whole process
Breath.Automatically updating also can be that user is manually updated, and for example, user can click on touch-screen equipment to touch
Send out the renewal of omnidistance time-consuming information, when listening to user and clicking on touch-screen equipment, initiate public bus network corresponding
The reacquisition request of real-time road multidate information, and the real-time road multidate information meter arriving according to reacquisition
Calculate and use the omnidistance time-consuming of this public bus network.
Optionally, described public bus network includes at least one sub-line road, and described corresponding real-time road is dynamically believed
Breath includes the current time public transport average running speed at least one sub-line road described;As it is shown in figure 5, it is described
Computing module 13 can include acquiring unit the 130th, computing unit 131 and collection unit 132;
Acquiring unit 130, for for sub-line road each described, obtains the corresponding mileage in described sub-line road long
Degree;
In specific embodiment, public bus network includes at least one sub-line road, the corresponding real-time road of public bus network
Multidate information includes the current time public transport average running speed on each sub-line road.Calculating this public bus network
Omnidistance time-consuming when, acquiring unit 130, for each sub-line road, obtains this corresponding mileage in sub-line road long
Degree.Sub-line road can be that the transfer in inquired about public bus network is interval, and sub-line road corresponding mileage length is
It is the mileage length in this transfer interval.
Computing unit 131, current for according to the corresponding mileage length in described sub-line road and described sub-line road
Moment public transport average running speed, calculates the corresponding running time in described sub-line road;
In specific embodiment, public bus network corresponding real-time road multidate information is every at least one sub-line road
The public transport average running speed of individual sub-circuit, for each sub-line road, computing unit 131 is according to this sub-line
The current time public transport average running speed on road corresponding mileage length and this sub-line road, calculates this sub-line road
Corresponding running time.The such as a length of S of this corresponding mileage in sub-line road, the current time public transport on this sub-line road
Average running speed is V, then this sub-line road corresponding running time T=S/V.
Collection unit 132, for collecting each corresponding running time in described sub-line road, obtains described
The whole process of public bus network is time-consuming.
In specific embodiment, each corresponding row in sub-line road in the public bus network that inquired about collection unit 132
The time of sailing collects, and obtains the omnidistance time-consuming of this public bus network, and this whole process is time-consumingly omnidistance time-consuming for theory.
For example, this public bus network includes three sub-circuits altogether, each the corresponding running time in sub-line road being calculated
It is respectively T1, T2 and T3, then corresponding for three sub-circuits running time is collected, obtain this public transport
The omnidistance time-consuming T=T1+T2+T3 of circuit.
Optionally, in order to more accurately represent the omnidistance time-consuming of this public bus network, the embodiment of the present invention will be used
The stand-by period at family and the running time of bus carry out unifying to collect, therefore, optionally, as shown in Figure 6,
Collection unit 132 can include that the 1320th, obtain subelement determines subelement 1321 and collect subelement 1322;
Obtain subelement 1320, for obtaining the current location of each bus associated by described sub-line road;
In specific embodiment, in actual applications, the omnidistance of usual public bus network time-consumingly not only includes each
The corresponding running time in sub-line road, also includes user's changing between current start position and each sub-line road
Take advantage of the stand-by period a little, be i.e. each sub-line road corresponding stand-by period, but each sub-line road is corresponding etc.
Treat that the time is associated with the current location of the bus associated by each sub-line road, therefore obtain subelement 1320
Obtaining the current location of each bus associated by sub-line road, each bus associated by sub-line road is for i.e.
By the bus of traveling section travel corresponding on this sub-line road, some bus number associated by sub-line road
Amount can have multiple, and specifically chosen which bus of taking of user depends on the time-consuming length before this sub-line road
Short.
Determine subelement 1321, for bus according to associated by each described sub-line road current location and
Each corresponding running time in described sub-line road, determines each described sub-line road corresponding stand-by period;
In specific embodiment, determine the present bit of bus according to associated by each sub-line road for the subelement 1321
Put and each corresponding running time in sub-line road, select user specifically to need the public affairs taken on each sub-line road
Hand over car, and then determine that user needs the wait of the transfer point between current start position and each sub-line road
Time, is i.e. each sub-line road corresponding stand-by period.
For example, a certain bar public bus network has two sub-circuits, and the corresponding running time of first sub-circuit is
10min, the corresponding running time of second sub-circuit is 5min, the public transport according to associated by first sub-circuit
The current location of car, selects fastest to the bus reaching current start position, it is assumed that fastest to the bus reaching
Need 2min, then first sub-circuit corresponding stand-by period is 2min, and the time reaching transfer point is
12min, the current location of the bus according to associated by 12min and second sub-circuit, selection user can
With at the transfer bus the fastest that sits on of dot product, it is assumed that at transfer point, that user can take and with second
Need 15min fastest to the bus reaching transfer point in bus associated by individual sub-circuit, then user is in transfer
The stand-by period of point is 3min, be i.e. second sub-circuit corresponding stand-by period be 3min.
Collect subelement 1322, for carrying out each corresponding running time in described sub-line road and stand-by period
Collect, obtain the omnidistance time-consuming of described public bus network.
In specific embodiment, collect subelement 1322 by each corresponding running time in sub-line road and stand-by period
Collect, i.e. obtain the omnidistance time-consuming of this public bus network.Continuing the example above to illustrate, a certain bar is public
There are two sub-circuits on intersection road, and the corresponding running time of first sub-circuit is 10min, first sub-circuit pair
The stand-by period answered is 2min, and the corresponding running time of second sub-circuit is 5min, second sub-circuit pair
The stand-by period answered is 3min, then omnidistance time-consuming for 10min+2min+5min+3min=20min.
The embodiment of the present invention, receive public bus network inquiry request, this inquiry request includes destination, according to work as
Front start position and destination, the public bus network from current start position to destination for the inquiry, obtain this public transport
Circuit corresponding real-time road multidate information, calculates according to real-time road multidate information and uses this public bus network
Omnidistance time-consuming.This mode is that the real-time road multidate information according to public bus network calculates this public bus network of employing
Omnidistance time-consuming, the whole process being provided time-consumingly has real-time and referential, and accuracy is high.
Refer to Fig. 7, for the structural representation of the another kind of Bus information inquiry unit that the embodiment of the present invention provides
Figure, as it can be seen, the Bus information inquiry unit of the embodiment of the present invention includes receiver module the 20th, enquiry module
21st, acquisition module the 22nd, computing module the 23rd, order module the 24th, the first output module 25 and the second output
Module 26, wherein, receiver module the 20th, enquiry module the 21st, acquisition module the 22nd, computing module 23 refer to
The description of Fig. 6, does not repeats them here.
Order module 24, for calculating the whole process of every public bus network at least two public bus networks described in employing
Time-consumingly, and according to time-consuming length, the whole process of described at least two public bus networks is time-consumingly ranked up.
In specific embodiment, if including at least two from current start position to the public bus network of destination, pin
Calculate the omnidistance time-consuming of this public bus network to each public bus network.Order module 24 is according to time-consuming length, right
The whole process of described at least two public bus networks is time-consumingly ranked up, and shows the public bus network after sequence.Optional
, can preferentially show time-consumingly short public bus network, be i.e. fastest to the public bus network reaching destination.
First output module 25, for every public bus network initial at least two public bus networks described in obtaining
Distance between the current location of the bus associated by sub-line road and described current start position, and export with
The spacing of described current start position bus information the shortest.
It in specific embodiment, when between current start position and destination, public bus network includes at least two, is
Make the user can clearly in stand-by period and the public affairs reaching current start position at first of current start position
Handing over car, the first output module 25 can obtain the initial sub-line of every public bus network at least two public bus networks
The current location of the bus associated by road, and export the bus the shortest with the spacing of current start position
Information.Initial sub-line road is i.e. first sub-circuit of public bus network, that is to say first transfer interval.Certain
The bus associated by initial sub-line road of bar public bus network can be this that will reach current start position
The bus on beginning sub-line road.It should be noted that the bus institute the shortest with the spacing of current start position
The whole process of corresponding public bus network is time-consumingly not likely to be the shortest.
Second output module 26, for every public bus network initial at least two public bus networks described in obtaining
The vacant seat quantity of the bus associated by sub-line road, and export the most bus information of vacant seat quantity.
In specific embodiment, in order to provide the public affairs of each bar public bus network to the user waiting at current start position
Hand over the jam situation on car, it is simple to user selects the most bus of vacant seat quantity.Second output module 26 obtains
Take the vacant seat number on the bus associated by initial sub-line road of every public bus network at least two public bus networks
Amount, and export the most bus information of vacant seat quantity.When bus information can include that this bus is current
The positional information carved, current driving speed etc..Optionally, initial bus associated by sub-line road is obtained
On the acquisition methods of vacant seat quantity can be to obtain according to the number of times of checking card of bus, it is also possible to be root
Estimate according to the pressure sensor of bus, etc..
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,
Can be by computer program and complete to instruct related hardware, described program can be stored in a calculating
In machine read/write memory medium, the module of Bus information inquiry unit shown in accompanying drawing 4-accompanying drawing 7 or unit are corresponding
Program be storable in the readable storage medium storing program for executing of terminal device or server, and by this terminal device or service
At least one processor in device performs, and to realize above-mentioned bus information inquiry method, the method includes Fig. 1
The flow process described in each method embodiment to Fig. 3.Wherein, described storage medium can for magnetic disc, CD,
Read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access
Memory, RAM) etc..
Above disclosed be only present pre-ferred embodiments, certainly can not with this limit the present invention it
Interest field, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (12)
1. a bus information inquiry method, it is characterised in that include:
Receiving public bus network inquiry request, described inquiry request includes destination;
According to current start position and described destination, inquiry is from described current start position to described destination
Public bus network;
Obtain described public bus network corresponding real-time road multidate information;
According to described real-time road multidate information, calculate and use the omnidistance time-consuming of described public bus network.
2. the method for claim 1, it is characterised in that described public bus network includes at least one son
Circuit, described public bus network corresponding real-time road multidate information includes the current of at least one sub-line road described
Moment public transport average running speed;
Described according to described real-time road multidate information, calculate and use the omnidistance time-consuming of described public bus network, bag
Include:
For sub-line road each described, obtain the corresponding mileage length in described sub-line road;
Averagely run according to the current time public transport of the corresponding mileage length in described sub-line road and described sub-line road
Speed, calculates the corresponding running time in described sub-line road;
Each corresponding running time in described sub-line road is collected, obtains the omnidistance consumption of described public bus network
When.
3. method as claimed in claim 2, it is characterised in that described by corresponding for each described sub-line road
Running time collects, and obtains the omnidistance time-consuming of described public bus network, comprising:
Obtain the current location of each bus associated by described sub-line road;
The current location of the bus according to associated by each described sub-line road and each described sub-line road are corresponding
Running time, determines each described sub-line road corresponding stand-by period;
Each corresponding running time in described sub-line road and stand-by period are collected, obtains described public transport line
The whole process on road is time-consuming.
4. the method as described in any one of claims 1 to 3, it is characterised in that if from described current starting point
Position includes at least two to the public bus network of described destination;Described method also includes:
The whole process calculating every public bus network at least two public bus networks described in using is time-consuming, and according to time-consumingly
Length, is time-consumingly ranked up to the whole process of described at least two public bus networks.
5. method as claimed in claim 2 or claim 3, it is characterised in that if from described current start position to
The public bus network of described destination includes at least two, and described method also includes:
The bus associated by initial sub-line road of every public bus network at least two public bus networks described in acquisition
Current location and described current start position between distance, and export and described current start position between
Distance bus information the shortest.
6. method as claimed in claim 2 or claim 3, it is characterised in that if from described current start position to
The public bus network of described destination includes at least two, and described method also includes:
The bus associated by initial sub-line road of every public bus network at least two public bus networks described in acquisition
Vacant seat quantity, and export the most bus information of vacant seat quantity.
7. a Bus information inquiry unit, it is characterised in that include:
Receiver module, is used for receiving public bus network inquiry request, and described inquiry request includes destination;
Enquiry module, for according to current start position and described destination, inquiry is from described current starting point position
Put the public bus network of described destination;
Acquisition module, is used for obtaining described public bus network corresponding real-time road multidate information;
Computing module, for according to described real-time road multidate information, calculating and using the complete of described public bus network
Journey is time-consuming.
8. device as claimed in claim 7, it is characterised in that described public bus network includes at least one son
Circuit, described public bus network corresponding real-time road multidate information includes the current of at least one sub-line road described
Moment public transport average running speed;Described computing module includes:
Acquiring unit, for for sub-line road each described, obtains the corresponding mileage length in described sub-line road;
Computing unit, for during according to the corresponding mileage length in described sub-line road and described sub-line road current
Carve public transport average running speed, calculate the corresponding running time in described sub-line road;
Collection unit, for collecting each corresponding running time in described sub-line road, obtains described public affairs
The whole process on intersection road is time-consuming.
9. device as claimed in claim 8, it is characterised in that described collection unit includes:
Obtain subelement, for obtaining the current location of each bus associated by described sub-line road;
Determine subelement, for the current location of bus according to associated by each described sub-line road and each
The corresponding running time in described sub-line road, determines each described sub-line road corresponding stand-by period;
Collect subelement, for collecting each corresponding running time in described sub-line road and stand-by period,
Obtain the omnidistance time-consuming of described public bus network.
10. the device as described in any one of claim 7 to 9, it is characterised in that if from described currently
Point position includes at least two to the public bus network of described destination;Described device also includes:
Order module, for calculating the omnidistance consumption of every public bus network at least two public bus networks described in employing
When, and according to time-consuming length, the whole process of described at least two public bus networks is time-consumingly ranked up.
11. devices as claimed in claim 8 or 9, it is characterised in that if from described current start position
Including at least two to the public bus network of described destination, described device also includes:
First output module, is used for the initial son of every public bus network at least two public bus networks described in obtaining
Distance between the current location of the bus associated by circuit and described current start position, and export and institute
State the spacing of current start position bus information the shortest.
12. devices as claimed in claim 8 or 9, it is characterised in that if from described current start position
Including at least two to the public bus network of described destination, described device also includes:
Second output module, is used for the initial son of every public bus network at least two public bus networks described in obtaining
The vacant seat quantity of the bus associated by circuit, and export the most bus information of vacant seat quantity.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510100008.XA CN105989177A (en) | 2015-03-06 | 2015-03-06 | Bus information inquiring method and bus information inquiring apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510100008.XA CN105989177A (en) | 2015-03-06 | 2015-03-06 | Bus information inquiring method and bus information inquiring apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105989177A true CN105989177A (en) | 2016-10-05 |
Family
ID=57039819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510100008.XA Pending CN105989177A (en) | 2015-03-06 | 2015-03-06 | Bus information inquiring method and bus information inquiring apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105989177A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106710279A (en) * | 2017-02-18 | 2017-05-24 | 山东交通学院 | Road divergence guiding device |
CN106710278A (en) * | 2017-02-18 | 2017-05-24 | 山东交通学院 | Road diversion guiding method |
CN106779174A (en) * | 2016-11-25 | 2017-05-31 | 北京小米移动软件有限公司 | Route planning method, apparatus and system |
CN107908644A (en) * | 2017-09-30 | 2018-04-13 | 百度在线网络技术(北京)有限公司 | The recommendation method, apparatus and computer-readable medium of trip mode |
CN108769903A (en) * | 2018-05-28 | 2018-11-06 | 苏州若依玫信息技术有限公司 | Transfer method and its system are shared in a kind of multi-thread public transport |
CN112185153A (en) * | 2020-09-27 | 2021-01-05 | 腾讯科技(深圳)有限公司 | Vehicle driving route determining method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446179A (en) * | 2010-10-09 | 2012-05-09 | Tcl集团股份有限公司 | Bus line inquiry method |
CN103364002A (en) * | 2012-03-30 | 2013-10-23 | 北京掌城科技有限公司 | Route planning system and method combining real-time road conditions and public transport operation information |
CN103927869A (en) * | 2014-05-04 | 2014-07-16 | 中国科学院遥感与数字地球研究所 | Public transportation information processing method and device |
CN103942241A (en) * | 2013-10-31 | 2014-07-23 | 深圳市凯立德欣软件技术有限公司 | Real-time bus information query method, portable electronic device and server |
-
2015
- 2015-03-06 CN CN201510100008.XA patent/CN105989177A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446179A (en) * | 2010-10-09 | 2012-05-09 | Tcl集团股份有限公司 | Bus line inquiry method |
CN103364002A (en) * | 2012-03-30 | 2013-10-23 | 北京掌城科技有限公司 | Route planning system and method combining real-time road conditions and public transport operation information |
CN103942241A (en) * | 2013-10-31 | 2014-07-23 | 深圳市凯立德欣软件技术有限公司 | Real-time bus information query method, portable electronic device and server |
CN103927869A (en) * | 2014-05-04 | 2014-07-16 | 中国科学院遥感与数字地球研究所 | Public transportation information processing method and device |
Non-Patent Citations (1)
Title |
---|
百度经验: ""高德地图怎么查公交路线"", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/EAE078278721C01FEC5485A8.HTML》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106779174A (en) * | 2016-11-25 | 2017-05-31 | 北京小米移动软件有限公司 | Route planning method, apparatus and system |
CN106710279A (en) * | 2017-02-18 | 2017-05-24 | 山东交通学院 | Road divergence guiding device |
CN106710278A (en) * | 2017-02-18 | 2017-05-24 | 山东交通学院 | Road diversion guiding method |
CN107908644A (en) * | 2017-09-30 | 2018-04-13 | 百度在线网络技术(北京)有限公司 | The recommendation method, apparatus and computer-readable medium of trip mode |
CN108769903A (en) * | 2018-05-28 | 2018-11-06 | 苏州若依玫信息技术有限公司 | Transfer method and its system are shared in a kind of multi-thread public transport |
CN108769903B (en) * | 2018-05-28 | 2020-07-03 | 徐州彭源信息科技有限公司 | Multi-line public transport shared transfer method and system |
CN112185153A (en) * | 2020-09-27 | 2021-01-05 | 腾讯科技(深圳)有限公司 | Vehicle driving route determining method, device, equipment and medium |
CN112185153B (en) * | 2020-09-27 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Vehicle driving route determining method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105989177A (en) | Bus information inquiring method and bus information inquiring apparatus | |
CN108133619B (en) | Parking lot parking prediction method and device, storage medium and terminal equipment | |
CN103364002B (en) | Route planning system and method combining real-time road conditions and public transport operation information | |
CN110008413B (en) | Traffic travel problem query method and device | |
CN103134505B (en) | Path planning system and method thereof | |
EP2691740B1 (en) | Method and system for generating viable pattern-transfers for an itinerary-planning system | |
US20080172172A1 (en) | Route planning process | |
CN105677793A (en) | Site database establishing method and device, and candidate riding site recommending method and device | |
CN110222893B (en) | Method and device for recommending delivery places of shared traffic resources and electronic equipment | |
CN102506861A (en) | Travel information processing method and device | |
CN106557474A (en) | Obtain the method and device of POI, database, navigation terminal and automobile on the way | |
CN105678412A (en) | Path planning method and device facing multiple passengers | |
CN104951848A (en) | Real-time car-pooling matching method | |
CN105117790A (en) | Fare estimating method and apparatus | |
CN104599002B (en) | Method and equipment for predicting order value | |
CN105407127A (en) | Method, apparatus, and system for free sharing of passenger tool resources | |
CN103942312B (en) | Bus transfer lines planning method and device | |
CN105096650A (en) | Intelligent parking method and apparatus for garage | |
CN107403550A (en) | Transit network collecting method, device and terminal device | |
CN104252795A (en) | Bus arrival time prediction method | |
CN107179087A (en) | Method and apparatus for recommended route | |
CN106023582A (en) | BRT passenger traveling information acquisition and guiding scheme publishing system and method | |
CN114296450A (en) | Path planning method and device, computer equipment and storage medium | |
CN107345816A (en) | A kind of bus routes method and device for planning | |
CN114202908A (en) | Vehicle early warning method, device, equipment and storage medium based on disaster weather |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161005 |
|
RJ01 | Rejection of invention patent application after publication |