WO2018058967A1 - Ground transportation journey recommendation method, device, apparatus, and computer storage medium - Google Patents

Ground transportation journey recommendation method, device, apparatus, and computer storage medium Download PDF

Info

Publication number
WO2018058967A1
WO2018058967A1 PCT/CN2017/084452 CN2017084452W WO2018058967A1 WO 2018058967 A1 WO2018058967 A1 WO 2018058967A1 CN 2017084452 W CN2017084452 W CN 2017084452W WO 2018058967 A1 WO2018058967 A1 WO 2018058967A1
Authority
WO
WIPO (PCT)
Prior art keywords
bus
congestion degree
user
value
lines
Prior art date
Application number
PCT/CN2017/084452
Other languages
French (fr)
Chinese (zh)
Inventor
张猛
Original Assignee
百度在线网络技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Priority to KR1020197004158A priority Critical patent/KR102162729B1/en
Priority to JP2019523153A priority patent/JP6742518B2/en
Publication of WO2018058967A1 publication Critical patent/WO2018058967A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/123Traffic control systems for road vehicles indicating the position of vehicles, e.g. scheduled vehicles; Managing passenger vehicles circulating according to a fixed timetable, e.g. buses, trains, trams
    • G08G1/127Traffic control systems for road vehicles indicating the position of vehicles, e.g. scheduled vehicles; Managing passenger vehicles circulating according to a fixed timetable, e.g. buses, trains, trams to a central station ; Indicators in a central station
    • G06Q50/40
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/123Traffic control systems for road vehicles indicating the position of vehicles, e.g. scheduled vehicles; Managing passenger vehicles circulating according to a fixed timetable, e.g. buses, trains, trams

Definitions

  • the invention relates to the technical field of electronic bus processing, and particularly relates to a bus route recommendation method, device, device and computer storage medium.
  • the real-time bus service is also connected with the bus company's dispatching system, which can obtain the bus that the user will take and several stations to reach the station where the user is about to get on the bus, and it is more than time-consuming.
  • the user can make travel arrangements according to the prompt information of the real-time bus service, which brings great convenience to the user's travel.
  • the invention provides a bus route recommendation method and device for enriching the information content provided by the real-time bus service.
  • the invention provides a bus route recommendation method, and the method comprises:
  • the bus line is recommended to the user according to the congestion degree value of the bus in each of the bus lines.
  • each of the buses is in each The congestion degree value of the preset time period is obtained, and the congestion degree value of the bus in each of the bus lines is obtained, which specifically includes:
  • the bus line is recommended to the user according to the congestion degree value of each bus in each of the bus lines, and specifically includes:
  • the bus line is recommended to the user based on the comfort value of each of the bus lines.
  • calculating the comfort value of each of the bus lines according to the congestion degree value of each of the buses in each of the bus lines specifically including:
  • the result of the multiplication is taken as a logarithm as the corresponding comfort value of the bus line.
  • the bus line is recommended to the user according to the comfort value of each of the bus lines, and specifically includes:
  • At least one of the bus lines is recommended to the user in descending order of comfort values.
  • the method further includes:
  • the congestion degree information includes at least three congestion levels of the buses, and the degree of congestion The flow rate corresponding to the value;
  • the invention also provides a bus route recommending device, the device comprising:
  • the basic information obtaining module is configured to acquire a request time, a starting point, and an end point of the real-time bus retrieval request of the user;
  • a determining module configured to determine, according to the starting point and the ending point, at least two bus lines that the user can ride and an identifier of a bus included in each of the bus lines;
  • a congestion degree acquisition module configured, for each of the bus lines, according to the request time and the obtained bus information of the bus, and the bus corresponding to the identifier of each bus in each preset time period a degree value obtained by acquiring a congestion degree value of each of the buses on the bus line;
  • a recommendation module configured to recommend the bus line to the user according to a congestion degree value of the bus in each of the bus lines.
  • the congestion degree acquisition module is specifically configured to:
  • the recommendation module specifically includes:
  • a comfort calculation unit configured to calculate a comfort value of each of the bus lines according to a congestion degree value of each of the buses in each of the bus lines;
  • a recommendation unit configured to recommend the user according to the comfort value of each of the bus lines The bus line.
  • the comfort calculation unit is specifically configured to:
  • the result of the multiplication is taken as a logarithm as the corresponding comfort value of the bus line.
  • the recommendation unit is specifically configured to:
  • At least one of the bus lines is recommended to the user in descending order of comfort values.
  • the root further includes a setting module and a mining module
  • the determining module is further configured to determine a maximum load of the bus in each peak period according to historical card data of the bus;
  • the setting module is configured to set congestion degree information for each bus of each road according to a maximum load of the bus of each road, where the congestion degree information includes at least three congestion degree values of each bus of each road And a human flow interval corresponding to each of the congestion degree values;
  • the mining module is configured to mine, according to historical bus card data of the bus, the flow of people in each of the preset time periods of each bus;
  • the determining module is further configured to determine, according to the traffic volume of each bus in each of the preset time periods and the congestion degree information of each bus of each road, the bus in each of the presets The value of the congestion level of the time period.
  • the bus route recommendation method and device of the present invention obtains the request time, the start point and the end point of the real-time bus retrieval request of the user; according to the start point and the end point, it is determined that the user can ride At least two bus lines and the identification of the bus included in each bus line; for each bus line, the bus corresponding to the requested bus time and the bus information obtained by each bus, and the bus corresponding to each bus are in each preset time period.
  • the value of the congestion degree is obtained by acquiring the congestion degree value of each bus in the corresponding bus line; and recommending the bus line to the user according to the congestion degree value of each bus in each bus line.
  • the bus line can be recommended to the user according to the congestion degree value of each bus in each bus line, thereby further enriching the information provided by the real-time bus service, enriching the information.
  • the function of real-time bus service but also can greatly improve the user experience.
  • FIG. 1 is a flow chart of an embodiment of a bus route recommendation method according to the present invention.
  • Fig. 2 is a structural view showing an embodiment of a bus line recommending device of the present invention.
  • FIG. 3 is a structural diagram of a second embodiment of a bus route recommending device of the present invention.
  • FIG. 1 is a flow chart of an embodiment of a bus route recommendation method according to the present invention. As shown in FIG. 1 , the bus route recommendation method in this embodiment may specifically include the following steps:
  • the execution body of the bus route recommendation method in this embodiment may be a bus route recommendation device.
  • the bus route recommendation device may be disposed in the real-time bus service module, and is used to recommend more comfortable to the user when the user uses the real-time bus service. Bus lines.
  • the request time, the start point, and the end point of the real-time bus retrieval request of the user are first acquired, and the start point and the end point may be obtained from the request data of the real-time bus service requested by the user; Is the current moment when the user sends the real-time bus retrieval request.
  • the bus route recommendation device can obtain all the bus routes from the start point to the end point according to the start point and the end point. Since this embodiment is mainly used to recommend a more efficient route to the user in the case where there are a plurality of bus lines. Therefore, when there is only one bus line between the start point and the end point, the advantages of the embodiment cannot be effectively reflected.
  • the case where there is only one bus line from the start point to the end point is not considered.
  • the user may not need to transfer, and a bus can arrive directly.
  • the bus line from the start point to the end point when the user needs to transfer to reach the end point from the starting point, there are at least two buses included in the corresponding bus line.
  • the bus line can be marked with a digital sign, such as No. 1, No. 2, etc., or directly using numbers or letters, or other The logo indicates each bus route.
  • the identification of the bus in each bus line can directly use the line identification of the corresponding bus.
  • the bus No. 1 of the 1st bus adopts the 1 mark
  • the bus of the 688 uses the 688 mark.
  • each bus preset can be pre-stated based on historical data.
  • the time congestion degree value specifically, combined with the historical credit card data of each bus, the congestion degree value of each of the preset time periods of each bus is pre-stated to increase the accuracy of the statistical data.
  • the preset time period can be set according to the road condition of the current user's city. For example, the day can be divided into multiple time periods, and each time can be set as a time period, such as 7:00-9:00, 9:00- 11:00 and so on, and so on, you can set the evening 23:00-0:00 and 0:00-1:00 as a time period. In actual application, the time period setting can also be set periodically with other time lengths, or Set aperiodically.
  • the information of the incoming bus of the public transportation is specifically that the bus terminal dispatches each bus, and the obtained time of each bus in the driving, the time of each station is obtained. Therefore, in the present embodiment, the incoming vehicle information of the public transportation is specifically obtained from the dispatching server of the bus terminal. Therefore, the bus arrival information obtained in the embodiment includes time information of each bus included in at least two bus lines that the user can ride to arrive at each station. Then, for each bus route, the starting point and the ending point in the bus route, the identification of each bus included in the bus line, and the transfer station information can be obtained, and then the requested time and the obtained bus information of the bus are combined. As well as the congestion degree value of the bus corresponding to the identification of each bus in each preset time period, the congestion degree value of each bus in each bus line can be obtained.
  • the congestion degree value of the bus in this embodiment may also be identified according to the road segment. At this time, according to the starting point to the end point of the current request of the user, the road segment on each bus is determined, and then the bus is obtained. The value of the congestion degree of the vehicle at the road section during the period. If the user needs to take multiple road sections on one of the buses, the congestion degree value of the bus may take the average value of the congestion degree values of the plurality of road sections.
  • the bus line value can be recommended to the user by the congestion degree value of each bus in each bus line. For example, the user can recommend the most comfortable and least crowded. Bus lines.
  • the bus route recommendation method of the embodiment obtains the request time, the start point and the end point of the real-time bus retrieval request of the user; and according to the start point and the end point, determines at least two bus lines that the user can take and the identifier of the bus included in each bus line. For each bus line, according to the request time and the information of the bus arrival of the bus, and the congestion value of the bus corresponding to the identification of each bus in each preset time period, obtain the corresponding roads in the bus line. The value of the congestion degree of the bus; the bus route is recommended to the user according to the congestion degree value of each bus in each bus line.
  • the bus line can be recommended to the user according to the congestion degree value of each bus in each bus line, thereby further enriching the information provided by the real-time bus service, enriching The function of real-time bus service, but also can greatly improve the user experience.
  • step 102 “for each bus line, according to the request time and the obtained bus information of the bus, and the bus corresponding to the identification of each bus, each of the buses The value of the congestion degree of the preset time period, and the value of the congestion degree of each bus in the corresponding bus line is obtained, which may include the following steps:
  • the starting point, the ending point, and the included bus identification can be determined. Then, you can also get the bus time of the first bus in the bus line from the bus information, that is, when the first bus to be taken to the bus stop where the big starting point is located.
  • Inter-information for example, the first car is expected to arrive in 5 minutes, and then the user can determine the time of the first bus ride based on the requested time and the arrival information of the first car, and then according to the request time and the first bus
  • the boarding time of the car and the number of stations and sections of the first bus in the bus line determine the time of the user getting off the first bus, thereby estimating the time period during which the user is on the first bus;
  • the time of the second bus to the transfer station on the bus line is estimated, and the user is estimated to be on the second bus in the bus route.
  • the time period; and so on can estimate the time period of each bus that is taken in the bus line. In the same way, it is possible to estimate the time period of each bus that is taken in each bus line.
  • the user can be accurately obtained.
  • the pre-stated value of the congestion degree of each bus in the preset time period may be stored according to the correspondence between the bus identification, the preset time period, and the congestion degree value.
  • the congestion degree value set in this embodiment can be divided into five files, wherein 5 is the highest congestion degree value and 1 is the lowest congestion degree value. It can be identified as a 12-way bus, with a congestion level of 5 in the morning between 7:00 and 9:00.
  • the corresponding bus numbers in the preset time periods are obtained from the preset congestion values of the buses corresponding to the respective buses.
  • the value of the congestion level of each bus in the bus line is accessed according to the time period of each bus that the user rides in each bus line.
  • the congestion degree value of the bus may be identified according to the road segment, that is, the correspondence between the bus identification, the preset time period, the preset road segment, and the congestion degree value is stored; for example, 12 Road bus, in the morning from 7:00-9:00, the congestion degree value of link1, link2, link5 and link6 is 5, the congestion degree value of link3 and link4 is 4, and the congestion degree value of link7 and link8 is 3, and so on.
  • the congestion value of the bus corresponding to the preset bus number in each preset time period and each road segment may be used. In the middle, the congestion degree value of each bus that is taken in each corresponding bus line is obtained.
  • step 103 “recommend the bus route to the user according to the congestion degree value of each bus in each bus line”, which may specifically include the following steps:
  • the congestion degree values of the buses on each bus line are multiplied; the multiplied result is taken as the logarithm as the comfort value of the corresponding bus line. That is to say, for the same bus line, the congestion degree value of each bus in the bus line is multiplied, and the result of the multiplication is taken as the comfort value of the bus line.
  • the comfort value and the degree of congestion obtained in this way are inversely proportional. The higher the congestion degree value, the more crowded, and the lower the comfort value is, the worse the comfort is. On the contrary, the lower the congestion degree value, the less crowded, and the higher the comfort value, the better the comfort. .
  • the bus line is recommended to the user; for example, the comfort value of each bus line can be sorted from large to small; in order of comfort value from large to small, to the user Recommend at least one bus route. For example, when recommending to a user, if there are multiple bus lines, it may be preferable to recommend the bus route of the top three comfort values to the user. If the bus line includes multiple buses, the bus route includes Each bus also includes transfer information, ie where to transfer and so on.
  • step 102 “according to the request time and the obtained bus information of the public bus and the congestion of the bus corresponding to the identification of each bus in each preset time period. Before the value, the value of the congestion degree of each bus in each bus line is obtained, the following steps may be included:
  • (c2) setting congestion degree information for each bus according to the maximum load of each bus, and the congestion degree information includes at least three congestion degree values of each bus and a human flow interval corresponding to each congestion degree value;
  • the steps (c1)-(c4) of the embodiment are mainly used for determining the congestion degree value of each bus in each preset time period.
  • the congestion degree information is set for each bus, and the congestion degree information includes at least three congestion degree values of each bus, and a traffic flow interval corresponding to each congestion degree value.
  • the congestion degree can be divided into multiple files, for example, divided into five files, and the fifth gear can be used to identify the congestion degree values by 1, 2, 3, 4, and 5, respectively, and the congestion degree value. The higher the more the more crowded.
  • the maximum load of a bus is 150
  • the congestion degree information that can be set for the bus includes a five-level congestion degree value, wherein the first gear congestion degree value is 1, and the corresponding human traffic interval is 0 to 30 people;
  • the 2nd congestion degree is 2, the corresponding traffic flow interval is 31 to 60 people;
  • the third gear congestion degree is 3, the corresponding traffic flow interval is 61 to 90 people;
  • the fourth gear congestion degree is 4, corresponding
  • the flow rate range is 91 to 120 people;
  • the fifth level of congestion is 5, and the corresponding flow rate is 121 to 150 people.
  • the card data can be used to mine the traffic of each bus in each preset time period.
  • the preset time period may be set according to the road condition law of the bus, and as described in the above embodiment, one time period may be set every two hours.
  • the average of the flow of the bus during the preset period may be taken.
  • the congestion degree information for each bus it can be determined which congestion level the traffic of the bus belongs to during the time period, and the corresponding congestion degree value is which.
  • the bus line can be recommended to the user according to the congestion degree value of each bus in each bus line, thereby further enriching the information provided by the real-time bus service, enriching The function of real-time bus service, but also can greatly improve the user experience.
  • Fig. 2 is a structural view showing an embodiment of a bus line recommending device of the present invention.
  • the bus route recommendation device of the present embodiment may specifically include: a basic information acquisition module 10, a determination module 11, a congestion degree acquisition module 12, and a recommendation module 13.
  • the basic information obtaining module 10 is configured to obtain a request time, a starting point, and an end point of the real-time bus retrieval request of the user.
  • the determining module 11 is configured to determine at least two bus lines that the user can ride according to the starting point and the ending point acquired by the basic information acquiring module 10 And the identifier of the bus included in each bus line;
  • the congestion degree acquisition module 12 is used for each bus line determined by the determining module 11, according to the request time acquired by the basic information acquiring module 10 and the obtained bus information of the bus, and the determining module 11 determining the congestion degree value of the bus corresponding to each bus in each preset time period, and obtaining the congestion degree value of each bus in the corresponding bus line;
  • the recommendation module 13 is configured to acquire the module according to the congestion degree 12 Obtain the congestion degree value of each bus taken in each bus line, and recommend the bus line to the user.
  • the bus line recommendation device of the present embodiment is the same as the implementation of the related method embodiment by using the above-mentioned module to implement the bus line recommendation.
  • the bus line recommendation device of the present embodiment is the same as the implementation of the related method embodiment by using the above-mentioned module to implement the bus line recommendation.
  • bus route recommendation device of the present embodiment may further include the following technical solutions based on the technical solution of the embodiment shown in FIG.
  • the congestion degree acquisition module 12 in the bus route recommendation device of this embodiment is specifically configured to:
  • the recommendation module 13 specifically includes:
  • the comfort calculation unit 131 is configured to calculate the comfort value of each bus line according to the congestion degree value of each bus that is taken in each bus line acquired by the congestion degree acquisition module 12;
  • the recommendation unit 132 is configured to recommend a bus route to the user based on the comfort value of each bus line calculated by the comfort calculation unit 131.
  • the comfort calculation unit 131 is specifically configured to: multiply the congestion degree values of the buses in each bus route; and multiply the result by the logarithm , as the comfort value of the corresponding bus line.
  • the recommendation unit 132 is specifically configured to sort the comfort values of each bus line according to the order of the largest to the smallest; and recommend the user according to the comfort value from the largest to the smallest. At least one bus line.
  • the bus line recommendation device of the embodiment further includes a setting module 14 and a digging module 15.
  • the determining module 11 is further configured to determine the maximum load of each bus during the peak period according to the historical card data of the bus;
  • the setting module 14 is configured to set congestion degree information for each bus according to the maximum load of each bus determined by the determining module 11, and the congestion degree information includes the bus to each bus. Less than three congestion levels, and the flow rate corresponding to each congestion degree value;
  • the mining module 15 is configured to mine the traffic flow of each bus in each preset time period according to the historical card data of the bus;
  • the determining module 11 is further configured to determine, according to the traffic volume of each bus in each preset time period excavated by the mining module 15 and the congestion degree information of each bus set by the setting module 14, determine the bus of each bus in each preset time period. Congestion level value.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, and a read only memory. (Read-Only Memory, ROM), Random Access Memory (RAM), disk or optical disk, and other media that can store program code.

Abstract

A ground transportation journey recommendation method, device, apparatus, and computer storage medium. The method comprises: acquiring a request time, start point, and end point of a real-time public transportation search request of a user (100); determining, according to the start point and end point, at least two available public transportation journey options for the user and identifiers of one or more public transportation means included in the journey options (101); for each of the public transportation journey options, acquiring, according to the request time, acquired public transportation arrival information, and crowdedness levels of the public transportation means corresponding to the identifiers during individual predetermined time periods, crowdedness levels of the public transportation means included in said corresponding public transportation journey option (102); and recommending, according to the crowdedness levels of the public transportation means included in the public transportation journey options, a public transportation journey option to the user (103). By recommending, according to a crowdedness level of each public transportation means included in public transportation journey options, a public transportation journey option to a user, the present invention enriches information provided by a real-time public transportation service, and adds a function to the real-time public transportation service.

Description

公交路线推荐方法、装置、设备及计算机存储介质Bus route recommendation method, device, device and computer storage medium
本申请要求了申请日为2016年09月30日,申请号为201610874849.0发明名称为“公交路线推荐方法及装置”的中国专利申请的优先权。This application claims the priority of the Chinese patent application whose application date is September 30, 2016, and whose application number is 201610874849.0, and whose name is "Bus Route Recommendation Method and Apparatus".
技术领域Technical field
本发明涉电子公交处理技术领域,尤其涉及一种公交路线推荐方法、装置、设备及计算机存储介质。The invention relates to the technical field of electronic bus processing, and particularly relates to a bus route recommendation method, device, device and computer storage medium.
背景技术Background technique
随着智能终端和计算机技术的迅猛发展,涌现出了许多使用在智能终端上的应用,大大地方便了人们的生活。With the rapid development of smart terminals and computer technology, many applications for use in smart terminals have emerged, which greatly facilitates people's lives.
例如,为了便于用户有计划的出行,现有很多应用服务商都退出了实时公交服务,能够为用户提供实时公交信息,目前有的实时公交服务通过在地图等相关的出行应用中,用户使用也非常方便。例如,通常情况,用户准备外出时,先提前打开实时公交服务时,查看可以乘坐的公交线路。而且现有的实时公交服务可以定位用户当前的位置,用户即将上车的车站。同时实时公交服务还与公交公司的调度系统连接,可以获取到用户将要乘坐的公交车还有几站到达用户即将上车的车站,以及大于耗时。用户可以根据实时公交服务的提示信息做好出行安排,为用户的出行带来了很大的方便。For example, in order to facilitate the user's planned travel, many existing application service providers have withdrawn from the real-time bus service, and can provide real-time bus information for users. Currently, some real-time bus services are used by users in maps and other related travel applications. Convenience. For example, in general, when the user is ready to go out, when the real-time bus service is opened in advance, the bus route that can be taken is checked. Moreover, the existing real-time bus service can locate the user's current location, the station where the user is about to get on the bus. At the same time, the real-time bus service is also connected with the bus company's dispatching system, which can obtain the bus that the user will take and several stations to reach the station where the user is about to get on the bus, and it is more than time-consuming. The user can make travel arrangements according to the prompt information of the real-time bus service, which brings great convenience to the user's travel.
但是现有的实时公交服务提供的信息内容较为单一。However, the information provided by the existing real-time bus service is relatively simple.
发明内容Summary of the invention
本发明提供了一种公交路线推荐方法及装置,用于丰富实时公交服务提供的信息内容。The invention provides a bus route recommendation method and device for enriching the information content provided by the real-time bus service.
本发明提供一种公交线路推荐方法,所述方法包括: The invention provides a bus route recommendation method, and the method comprises:
获取用户的实时公交检索请求的请求时间、起点以及终点;Obtain the request time, start point, and end point of the user's real-time bus retrieval request;
根据所述起点和所述终点,确定所述用户能够乘坐的至少两条公交线路和各所述公交线路包括的公交车的标识;Determining, according to the starting point and the ending point, at least two bus lines that the user can ride and an identifier of a bus included in each of the bus lines;
对于各所述公交线路,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值;For each of the bus lines, obtaining the bus according to the request time and the obtained bus information of the bus, and the congestion degree value of the bus corresponding to the identifier of each bus in each preset time period. The value of the congestion level of the buses on each route taken in the line;
根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,向所述用户推荐所述公交线路。The bus line is recommended to the user according to the congestion degree value of the bus in each of the bus lines.
进一步可选地,如上所述的方法中,对于各所述公交线路,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值,具体包括:Further optionally, in the method as described above, for each of the bus lines, according to the request time and the obtained bus information of the bus, and the bus corresponding to the identifier of each bus, each of the buses is in each The congestion degree value of the preset time period is obtained, and the congestion degree value of the bus in each of the bus lines is obtained, which specifically includes:
对于各所述公交线路,根据所述请求时间和获得的公交的来车信息,确定所述用户在所述公交线路中乘坐的各路所述公交车的时间段;Determining, for each of the bus lines, a time period of each of the buses on which the user is riding in the bus line according to the request time and the obtained bus information of the bus;
根据所述用户在所述公交线路中乘坐的各路所述公交车的时间段、以及各路所述公交车的标识对应的所述公交车在各所述预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值。Obtaining, according to a time period of the bus in which the user is riding in the bus line, and a congestion degree value of the bus corresponding to the identifier of each bus in each of the preset time periods. The congestion degree value of the bus in each of the bus routes.
进一步可选地,如上所述的方法中,根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,向所述用户推荐所述公交线路,具体包括:Further, optionally, in the method as described above, the bus line is recommended to the user according to the congestion degree value of each bus in each of the bus lines, and specifically includes:
根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,计算各所述公交线路的舒适度值;Calculating a comfort value of each of the bus lines according to a congestion degree value of each of the buses in each of the bus lines;
根据各所述公交线路的舒适度值,向所述用户推荐所述公交线路。 The bus line is recommended to the user based on the comfort value of each of the bus lines.
进一步可选地,如上所述的方法中,根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,计算各所述公交线路的舒适度值,具体包括:Further, optionally, in the method as described above, calculating the comfort value of each of the bus lines according to the congestion degree value of each of the buses in each of the bus lines, specifically including:
将各所述公交线路中乘坐的各路所述公交车的拥挤程度值相乘;Multiplying the congestion degree values of the buses in each of the bus lines;
将相乘的结果取对数,作为对应的所述公交线路的舒适度值。The result of the multiplication is taken as a logarithm as the corresponding comfort value of the bus line.
进一步可选地,如上所述的方法中,根据各所述公交线路的舒适度值,向所述用户推荐所述公交线路,具体包括:Further, optionally, in the method as described above, the bus line is recommended to the user according to the comfort value of each of the bus lines, and specifically includes:
将各所述公交线路的舒适度值按照从大到小排序;Sorting the comfort values of each of the bus lines in descending order;
按照所述舒适度值从大到小的顺序,向所述用户推荐至少一条所述公交线路。At least one of the bus lines is recommended to the user in descending order of comfort values.
进一步可选地,如上所述的方法中,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度值,获取各所述公交线路中乘坐的各路所述公交车的拥挤程度值之前,所述方法还包括:Further optionally, in the method as described above, the congestion degree value of the bus in each preset time period corresponding to the requested time and the obtained bus information of the public bus and the identifier of each bus Before obtaining the congestion degree value of each of the buses in each of the bus lines, the method further includes:
根据公交车的历史刷卡数据,确定各路所述公交车在高峰时期的最大负荷;According to the historical credit card data of the bus, determine the maximum load of the bus in each peak during the peak period;
根据各路所述公交车的最大负荷,为各路所述公交车设置拥挤程度信息,所述拥挤程度信息中包括各路所述公交车的至少三个拥挤程度值,以及各所述拥挤程度值对应的人流量区间;Providing congestion degree information for each of the buses according to the maximum load of the buses, and the congestion degree information includes at least three congestion levels of the buses, and the degree of congestion The flow rate corresponding to the value;
根据所述公交车的历史刷卡数据,挖掘各路所述公交车在各所述预设时段的人流量;Extracting the flow of the bus of each of the buses in each of the preset time periods according to the historical card data of the bus;
根据各路所述公交车在各所述预设时段的人流量以及各路所述公交车的拥挤程度信息,确定各路所述公交车在各所述预设时段的拥挤程度 值。Determining the congestion degree of each bus in each of the preset time periods according to the traffic volume of each bus in each of the preset time periods and the congestion degree information of each bus in each road. value.
本发明还提供一种公交线路推荐装置,所述装置包括:The invention also provides a bus route recommending device, the device comprising:
基础信息获取模块,用于获取用户的实时公交检索请求的请求时间、起点以及终点;The basic information obtaining module is configured to acquire a request time, a starting point, and an end point of the real-time bus retrieval request of the user;
确定模块,用于根据所述起点和所述终点,确定所述用户能够乘坐的至少两条公交线路和各所述公交线路包括的公交车的标识;a determining module, configured to determine, according to the starting point and the ending point, at least two bus lines that the user can ride and an identifier of a bus included in each of the bus lines;
拥挤程度获取模块,用于对于各所述公交线路,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值;a congestion degree acquisition module, configured, for each of the bus lines, according to the request time and the obtained bus information of the bus, and the bus corresponding to the identifier of each bus in each preset time period a degree value obtained by acquiring a congestion degree value of each of the buses on the bus line;
推荐模块,用于根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,向所述用户推荐所述公交线路。And a recommendation module, configured to recommend the bus line to the user according to a congestion degree value of the bus in each of the bus lines.
进一步可选地,如上所述的装置中,所述拥挤程度获取模块,具体用于:Further optionally, in the device as described above, the congestion degree acquisition module is specifically configured to:
对于各所述公交线路,根据所述请求时间和获得的公交的来车信息,确定所述用户在所述公交线路中乘坐的各路所述公交车的时间段;Determining, for each of the bus lines, a time period of each of the buses on which the user is riding in the bus line according to the request time and the obtained bus information of the bus;
根据所述用户在所述公交线路中乘坐的各路所述公交车的时间段、以及各路所述公交车的标识对应的所述公交车在各所述预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值。Obtaining, according to a time period of the bus in which the user is riding in the bus line, and a congestion degree value of the bus corresponding to the identifier of each bus in each of the preset time periods. The congestion degree value of the bus in each of the bus routes.
进一步可选地,如上所述的装置中,所述推荐模块,具体包括:Further, optionally, in the device as described above, the recommendation module specifically includes:
舒适度计算单元,用于根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,计算各所述公交线路的舒适度值;a comfort calculation unit, configured to calculate a comfort value of each of the bus lines according to a congestion degree value of each of the buses in each of the bus lines;
推荐单元,用于根据各所述公交线路的舒适度值,向所述用户推荐 所述公交线路。a recommendation unit, configured to recommend the user according to the comfort value of each of the bus lines The bus line.
进一步可选地,如上所述的装置中,所述舒适度计算单元,具体用于:Further optionally, in the device as described above, the comfort calculation unit is specifically configured to:
将各所述公交线路中乘坐的各路所述公交车的拥挤程度值相乘;Multiplying the congestion degree values of the buses in each of the bus lines;
将相乘的结果取对数,作为对应的所述公交线路的舒适度值。The result of the multiplication is taken as a logarithm as the corresponding comfort value of the bus line.
进一步可选地,如上所述的装置中,所述推荐单元,具体用于:Further optionally, in the device as described above, the recommendation unit is specifically configured to:
将各所述公交线路的舒适度值按照从大到小排序;Sorting the comfort values of each of the bus lines in descending order;
按照所述舒适度值从大到小的顺序,向所述用户推荐至少一条所述公交线路。At least one of the bus lines is recommended to the user in descending order of comfort values.
进一步可选地,如上所述的装置中,根所述还包括设置模块和挖掘模块;Further optionally, in the device as described above, the root further includes a setting module and a mining module;
所述确定模块,还用于根据公交车的历史刷卡数据,确定各路所述公交车在高峰时期的最大负荷;The determining module is further configured to determine a maximum load of the bus in each peak period according to historical card data of the bus;
所述设置模块,用于根据各路所述公交车的最大负荷,为各路所述公交车设置拥挤程度信息,所述拥挤程度信息中包括各路所述公交车的至少三个拥挤程度值,以及各所述拥挤程度值对应的人流量区间;The setting module is configured to set congestion degree information for each bus of each road according to a maximum load of the bus of each road, where the congestion degree information includes at least three congestion degree values of each bus of each road And a human flow interval corresponding to each of the congestion degree values;
所述挖掘模块,用于根据所述公交车的历史刷卡数据,挖掘各路所述公交车在各所述预设时段的人流量;The mining module is configured to mine, according to historical bus card data of the bus, the flow of people in each of the preset time periods of each bus;
所述确定模块,还用于根据各路所述公交车在各所述预设时段的人流量以及各路所述公交车的拥挤程度信息,确定各路所述公交车在各所述预设时段的拥挤程度值。The determining module is further configured to determine, according to the traffic volume of each bus in each of the preset time periods and the congestion degree information of each bus of each road, the bus in each of the presets The value of the congestion level of the time period.
本发明的公交线路推荐方法及装置,通过获取用户的实时公交检索请求的请求时间、起点以及终点;根据起点和终点,确定用户能够乘坐 的至少两条公交线路和各公交线路包括的公交车的标识;对于各公交线路,根据请求时间和获得的公交的来车信息、以及各路公交车的标识对应的公交车在各预设时段的拥挤程度值,获取对应的公交线路中乘坐的各路公交车的拥挤程度值;根据各公交线路中乘坐的各路公交车的拥挤程度值,向用户推荐公交线路。本发明的技术方案,在现有技术的基础上,还可以根据各公交线路中乘坐的各路公交车的拥挤程度值,向用户推荐公交线路,进一步丰富了实时公交服务提供的信息,丰富了实时公交服务的功能,而且还能够极大地提高用户的体验度。The bus route recommendation method and device of the present invention obtains the request time, the start point and the end point of the real-time bus retrieval request of the user; according to the start point and the end point, it is determined that the user can ride At least two bus lines and the identification of the bus included in each bus line; for each bus line, the bus corresponding to the requested bus time and the bus information obtained by each bus, and the bus corresponding to each bus are in each preset time period. The value of the congestion degree is obtained by acquiring the congestion degree value of each bus in the corresponding bus line; and recommending the bus line to the user according to the congestion degree value of each bus in each bus line. According to the technical solution of the present invention, based on the prior art, the bus line can be recommended to the user according to the congestion degree value of each bus in each bus line, thereby further enriching the information provided by the real-time bus service, enriching the information. The function of real-time bus service, but also can greatly improve the user experience.
附图说明DRAWINGS
图1为本发明的公交线路推荐方法实施例的流程图。1 is a flow chart of an embodiment of a bus route recommendation method according to the present invention.
图2为本发明的公交线路推荐装置实施例的结构图。Fig. 2 is a structural view showing an embodiment of a bus line recommending device of the present invention.
图3为本发明的公交线路推荐装置实施例二的结构图。3 is a structural diagram of a second embodiment of a bus route recommending device of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。The present invention will be described in detail below with reference to the drawings and specific embodiments.
图1为本发明的公交线路推荐方法实施例的流程图。如图1所示,本实施例的公交线路推荐方法,具体可以包括如下步骤:1 is a flow chart of an embodiment of a bus route recommendation method according to the present invention. As shown in FIG. 1 , the bus route recommendation method in this embodiment may specifically include the following steps:
100、获取用户的实时公交检索请求的请求时间、起点以及终点;100. Obtain a request time, a starting point, and an end point of the real-time bus retrieval request of the user;
101、根据起点和终点,确定用户能够乘坐的至少两条公交线路和各公交线路包括的公交车的标识;101. Determine, according to the starting point and the ending point, at least two bus lines that the user can take and the identifier of the bus included in each bus line;
102、对于各公交线路,根据请求时间和获得的公交的来车信息、以及各路公交车的标识对应的公交车在各预设时段的拥挤程度值,获取对应的公交线路中乘坐的各路公交车的拥挤程度值; 102. For each bus line, according to the request time and the obtained bus information of the bus, and the congestion degree value of the bus corresponding to the identifier of each bus in each preset time period, obtain the corresponding roads in the corresponding bus line. The congestion level of the bus;
103、根据各公交线路中乘坐的各路公交车的拥挤程度值,向用户推荐公交线路。103. Recommend a bus route to the user according to the congestion degree value of each bus in each bus line.
本实施例的公交线路推荐方法的执行主体可以为公交线路推荐装置,例如,该公交线路推荐装置可以设置在实时公交服务模块中,用于为在用户使用实时公交服务时,向用户推荐更加舒适的公交线路。The execution body of the bus route recommendation method in this embodiment may be a bus route recommendation device. For example, the bus route recommendation device may be disposed in the real-time bus service module, and is used to recommend more comfortable to the user when the user uses the real-time bus service. Bus lines.
具体地,本实施例的公交线路推荐方法中,首先获取用户的实时公交检索请求的请求时间、起点以及终点,具体可以从用户请求实时公交服务的请求数据中获取起点以及终点;该请求时间指的就是用户发出该实时公交检索请求的当前时刻。然后公交线路推荐装置根据起点和终点,可以获取到该起点到终点的所有公交线路。由于本实施例中主要用于在存在多条公交线路的情况下,向用户推荐更加有效地线路。因此在起点到终点之间的公交线路只有一条时,无法有效地体现本实施例的优势,因此本实施例中,暂不考虑起点到终点只有一条公交线路的情况。对于起点到终点的每一条公交线路中,用户可能不用换乘,一辆公交车便可以直接到达,此时该条公交线路中包括的公交只有一辆。对于起点到终点的公交线路中,用户需要换乘才能从起点到达终点时,对应的这条公交线路中包括的公交车有至少两个。为了清楚的标识公交线路和每条公交线路种的公交车,可以将公交线路采用数字标识来标注,例如No.1、No.2等等依次类推,或者也可以直接采用数字或者字母、或者其他标识来表示各条公交线路。每条公交线路中的公交车的标识可以直接采用对应的公交车的线路标识,如1路公交车采用1标识,688路公交车采用688标识等等。Specifically, in the bus route recommendation method of the embodiment, the request time, the start point, and the end point of the real-time bus retrieval request of the user are first acquired, and the start point and the end point may be obtained from the request data of the real-time bus service requested by the user; Is the current moment when the user sends the real-time bus retrieval request. Then, the bus route recommendation device can obtain all the bus routes from the start point to the end point according to the start point and the end point. Since this embodiment is mainly used to recommend a more efficient route to the user in the case where there are a plurality of bus lines. Therefore, when there is only one bus line between the start point and the end point, the advantages of the embodiment cannot be effectively reflected. Therefore, in this embodiment, the case where there is only one bus line from the start point to the end point is not considered. For each bus route from the start point to the end point, the user may not need to transfer, and a bus can arrive directly. At this time, there is only one bus included in the bus line. For the bus line from the start point to the end point, when the user needs to transfer to reach the end point from the starting point, there are at least two buses included in the corresponding bus line. In order to clearly identify the bus line and the bus type of each bus line, the bus line can be marked with a digital sign, such as No. 1, No. 2, etc., or directly using numbers or letters, or other The logo indicates each bus route. The identification of the bus in each bus line can directly use the line identification of the corresponding bus. For example, the bus No. 1 of the 1st bus adopts the 1 mark, and the bus of the 688 uses the 688 mark.
本实施例中,根据历史数据可以预先统计出每一个公交车每个预设 时段拥挤程度值;具体地,结合每一公交车的历史刷卡数据,预先统计出每一个公交车每个预设时段在每个路段的拥挤程度值,以增加统计数据的准确性。其中预设时段可以根据当前用户所在城市的路况来设置,例如具体可以将一天分为多个时段,具体可以设置每两个小时作为一个时段,如7:00-9:00,9:00-11:00等等,依次类推,可以设置晚上23:00-0:00以及0:00-1:00作为一个时段,实际应用中,时段的设置还可以采用其它时间长度周期性地设置,或者非周期性地设置。本实施例中,还需要获取公交的来车信息,公交的来车信息具体为公交总站调度各个公交车,获取的各个公交车在行驶中,到达每个站的时间等信息。因此,本实施例中,公交的来车信息具体地从公交总站的调度服务器获取。所以,本实施例中获得的公交来车信息中包括用户能够乘坐的至少两条公交线路中包括的各公交车到达每一站的时间信息。然后对于每一路公交路线,可以获取到该公交路线中的起点、终点、该条公交线路中包括的各公交车的标识以及换乘站信息,然后再结合请求时间、获得的公交的来车信息以及各路公交车的标识对应的公交车在各预设时段的拥挤程度值,可以获取各公交线路中乘坐的各路公交车的拥挤程度值。In this embodiment, each bus preset can be pre-stated based on historical data. The time congestion degree value; specifically, combined with the historical credit card data of each bus, the congestion degree value of each of the preset time periods of each bus is pre-stated to increase the accuracy of the statistical data. The preset time period can be set according to the road condition of the current user's city. For example, the day can be divided into multiple time periods, and each time can be set as a time period, such as 7:00-9:00, 9:00- 11:00 and so on, and so on, you can set the evening 23:00-0:00 and 0:00-1:00 as a time period. In actual application, the time period setting can also be set periodically with other time lengths, or Set aperiodically. In this embodiment, it is also necessary to obtain the information of the incoming bus of the public transportation. The information of the incoming transportation of the public transportation is specifically that the bus terminal dispatches each bus, and the obtained time of each bus in the driving, the time of each station is obtained. Therefore, in the present embodiment, the incoming vehicle information of the public transportation is specifically obtained from the dispatching server of the bus terminal. Therefore, the bus arrival information obtained in the embodiment includes time information of each bus included in at least two bus lines that the user can ride to arrive at each station. Then, for each bus route, the starting point and the ending point in the bus route, the identification of each bus included in the bus line, and the transfer station information can be obtained, and then the requested time and the obtained bus information of the bus are combined. As well as the congestion degree value of the bus corresponding to the identification of each bus in each preset time period, the congestion degree value of each bus in each bus line can be obtained.
进一步地,本实施例中的公交车的拥挤程度值还可以根据路段来标识时,此时还可以根据用户本次请求的起点到终点,确定每辆公交车上乘坐的路段,然后获取该公交车在该时段在该路段的拥挤程度值,如果用户在其中一辆公交车上需要乘坐多个路段时,那么该公交车的拥挤程度值可以取该多个路段的拥挤程度值的平均值。Further, the congestion degree value of the bus in this embodiment may also be identified according to the road segment. At this time, according to the starting point to the end point of the current request of the user, the road segment on each bus is determined, and then the bus is obtained. The value of the congestion degree of the vehicle at the road section during the period. If the user needs to take multiple road sections on one of the buses, the congestion degree value of the bus may take the average value of the congestion degree values of the plurality of road sections.
最后,本实施例中,可以各公交线路中乘坐的各路公交车的拥挤程度值,向用户推荐公交线路,例如,可以向用户推荐最舒适、最不拥挤 的公交线路。Finally, in this embodiment, the bus line value can be recommended to the user by the congestion degree value of each bus in each bus line. For example, the user can recommend the most comfortable and least crowded. Bus lines.
本实施例的公交线路推荐方法,通过获取用户的实时公交检索请求的请求时间、起点以及终点;根据起点和终点,确定用户能够乘坐的至少两条公交线路和各公交线路包括的公交车的标识;对于每一条公交线路,根据请求时间和获得的公交的来车信息、以及各路公交车的标识对应的公交车在各预设时段的拥挤程度值,获取对应的公交线路中乘坐的各路公交车的拥挤程度值;根据各公交线路中乘坐的各路公交车的拥挤程度值,向用户推荐公交线路。本实施例的技术方案,在现有技术的基础上,还可以根据各公交线路中乘坐的各路公交车的拥挤程度值,向用户推荐公交线路,进一步丰富了实时公交服务提供的信息,丰富了实时公交服务的功能,而且还能够极大地提高用户的体验度。The bus route recommendation method of the embodiment obtains the request time, the start point and the end point of the real-time bus retrieval request of the user; and according to the start point and the end point, determines at least two bus lines that the user can take and the identifier of the bus included in each bus line. For each bus line, according to the request time and the information of the bus arrival of the bus, and the congestion value of the bus corresponding to the identification of each bus in each preset time period, obtain the corresponding roads in the bus line. The value of the congestion degree of the bus; the bus route is recommended to the user according to the congestion degree value of each bus in each bus line. According to the technical solution of the present embodiment, based on the prior art, the bus line can be recommended to the user according to the congestion degree value of each bus in each bus line, thereby further enriching the information provided by the real-time bus service, enriching The function of real-time bus service, but also can greatly improve the user experience.
进一步可选地,在上述实施例的技术方案的基础上,其中步骤102“对于各公交线路,根据请求时间和获得的公交的来车信息、以及各路公交车的标识对应的公交车在各预设时段的拥挤程度值,获取对应的公交线路中乘坐的各路公交车的拥挤程度值”,具体可以包括如下步骤:Further, optionally, based on the technical solution of the foregoing embodiment, in step 102, “for each bus line, according to the request time and the obtained bus information of the bus, and the bus corresponding to the identification of each bus, each of the buses The value of the congestion degree of the preset time period, and the value of the congestion degree of each bus in the corresponding bus line is obtained, which may include the following steps:
(a1)对于各公交线路,根据请求时间、获得的公交的来车信息,确定用户在该公交线路中乘坐的各路公交车的时间段;(a1) for each bus line, according to the request time, the obtained bus information of the bus, determine the time period of each bus that the user rides in the bus line;
(a2)根据用户在该公交线路中乘坐的各路公交车的时间段、以及各路公交车的标识对应的公交车在各预设时段的拥挤程度值,获取该公交线路中乘坐的各路公交车的拥挤程度值。(a2) obtaining the various routes taken in the bus line according to the time period of each bus that the user is riding in the bus line, and the congestion degree value of the bus corresponding to the identification of each bus in each preset time period. The value of the congestion level of the bus.
例如,具体地,对于每一条公交线路,可以确定起点、终点以及包括的公交车标识。然后还可以从来车信息中获取该公交线路中第一辆要坐的公交车的来车时间即第一辆要坐的公交车到大起点所在公交站的时 间信息,例如第一辆车预计5分钟达到,然后可以根据请求时间和第一辆车的来车信息,确定用户乘坐第一个公交车的上车时间,然后根据请求时间和第一辆公交车的上车时间以及公交线路中第一辆公交车的经过的站数和路段,确定用户乘坐第一辆公交车的下车时间,从而推算用户在第一辆公交车上乘坐的时间段;然后同理再根据获得的公交的来车信息,预估该公交线路上换乘的第二辆公交车到换乘站的时间,并预估用户在该公交路线中第二辆公交车上的时间段;依次类推,可以预估在该条公交线路中乘坐的各路公交车的时间段。同理,可以预估每条公交线路中乘坐的各路公交车的时间段。For example, specifically, for each bus line, the starting point, the ending point, and the included bus identification can be determined. Then, you can also get the bus time of the first bus in the bus line from the bus information, that is, when the first bus to be taken to the bus stop where the big starting point is located. Inter-information, for example, the first car is expected to arrive in 5 minutes, and then the user can determine the time of the first bus ride based on the requested time and the arrival information of the first car, and then according to the request time and the first bus The boarding time of the car and the number of stations and sections of the first bus in the bus line determine the time of the user getting off the first bus, thereby estimating the time period during which the user is on the first bus; Then, based on the obtained bus information of the bus, the time of the second bus to the transfer station on the bus line is estimated, and the user is estimated to be on the second bus in the bus route. The time period; and so on, can estimate the time period of each bus that is taken in the bus line. In the same way, it is possible to estimate the time period of each bus that is taken in each bus line.
然后对于各条公交线路,根据预估的用户在每个公交车上的时间段和预先统计的各路公交车的标识对应的公交车在各预设时段的拥挤程度值,可以准确获取用户在乘坐每一公交线路的每一公交车时该公交车的拥挤程度值。Then, for each bus line, according to the estimated time period of the user on each bus and the pre-stated bus number of each bus corresponding to the congestion degree value of each preset time period, the user can be accurately obtained. The value of the congestion level of each bus when taking each bus on each bus route.
其中预先统计的各路公交车在预设时段的拥挤程度值,可以是按照公交标识、预设时段以及拥挤程度值之间对应关系存储的。例如本实施例中设置的拥挤程度值可以分为五档,其中5为拥挤程度值最高的,1为拥挤程度值最低的。可以标识为12路公交,在早上7:00-9:00时段的拥挤程度值为5。此时,可以根据用户在各公交线路中乘坐的各路公交车的时间段,从预设的各路公交车的标识对应的公交车在各预设时段的拥挤程度值中,获取对应的各公交线路中乘坐的各路公交车的拥挤程度值。The pre-stated value of the congestion degree of each bus in the preset time period may be stored according to the correspondence between the bus identification, the preset time period, and the congestion degree value. For example, the congestion degree value set in this embodiment can be divided into five files, wherein 5 is the highest congestion degree value and 1 is the lowest congestion degree value. It can be identified as a 12-way bus, with a congestion level of 5 in the morning between 7:00 and 9:00. At this time, according to the time period of each bus that the user rides in each bus line, the corresponding bus numbers in the preset time periods are obtained from the preset congestion values of the buses corresponding to the respective buses. The value of the congestion level of each bus in the bus line.
进一步地,还可以根据路段来标识公交的拥挤程度值,即将公交标识、预设时段、预设路段以及拥挤程度值之间对应关系存储;例如12 路公交,在早上7:00-9:00时段、在link1、link2、link5和link6的拥挤程度值为5,在link3和link4的拥挤程度值为4,而在link7和link8的拥挤程度值为3,等等。此时,可以根据用户在各公交线路中乘坐的各路公交车的时间段和路段link,从预设的各路公交车的标识对应的公交车在各预设时段以及各路段的拥挤程度值中,获取对应的各公交线路中乘坐的各路公交车的拥挤程度值。例如,若用户在起点前往终点的某一条公交线路中,需要在7:00-9:00这个时段,乘坐12路公交车的Link3-Link8的路段,此时用户在该公交线路中乘坐的12路公交车的拥挤程度值为Link3-Link8的路段的拥挤程度值的平均,即(4+3+5+8+3+3)/6=4.33。Further, the congestion degree value of the bus may be identified according to the road segment, that is, the correspondence between the bus identification, the preset time period, the preset road segment, and the congestion degree value is stored; for example, 12 Road bus, in the morning from 7:00-9:00, the congestion degree value of link1, link2, link5 and link6 is 5, the congestion degree value of link3 and link4 is 4, and the congestion degree value of link7 and link8 is 3, and so on. At this time, according to the time period and the link of each bus that the user rides in each bus line, the congestion value of the bus corresponding to the preset bus number in each preset time period and each road segment may be used. In the middle, the congestion degree value of each bus that is taken in each corresponding bus line is obtained. For example, if the user is on a bus route from the starting point to the end point, it is necessary to take the link of Link-Link8 of the 12 bus at the time of 7:00-9:00, at which time the user is riding in the bus line. The congestion value of the road bus is the average of the congestion level of the link of Link3-Link8, that is, (4+3+5+8+3+3)/6=4.33.
进一步可选地,在上述实施例的技术方案的基础上,步骤103“根据各公交线路中乘坐的各路公交车的拥挤程度值,向用户推荐公交线路”,具体可以包括如下步骤:Further, optionally, based on the technical solution of the foregoing embodiment, step 103 “recommend the bus route to the user according to the congestion degree value of each bus in each bus line”, which may specifically include the following steps:
(b1)根据各公交线路中乘坐的各路公交车的拥挤程度值,计算各公交线路的舒适度值;(b1) Calculating the comfort value of each bus line according to the congestion degree value of each bus in each bus line;
(b2)根据各公交线路的舒适度值,向用户推荐公交线路。(b2) Recommend the bus route to the user based on the comfort value of each bus line.
例如,具体地,将各公交线路中乘坐的各路公交车的拥挤程度值相乘;将相乘的结果取对数,作为对应的公交线路的舒适度值。也就是说,对于同一条公交线路,将该公交线路中的各个公交车的拥挤程度值相乘,并将相乘的结果取对数即为该公交线路的舒适度值。这样得到的舒适度值和拥挤程度值是成反比的。拥挤程度值越高,表示越拥挤,而对应的舒适度值越低,舒适度越差;反之,拥挤程度值越低,表示越不拥挤,而对应的舒适度值越高,舒适度越好。 For example, specifically, the congestion degree values of the buses on each bus line are multiplied; the multiplied result is taken as the logarithm as the comfort value of the corresponding bus line. That is to say, for the same bus line, the congestion degree value of each bus in the bus line is multiplied, and the result of the multiplication is taken as the comfort value of the bus line. The comfort value and the degree of congestion obtained in this way are inversely proportional. The higher the congestion degree value, the more crowded, and the lower the comfort value is, the worse the comfort is. On the contrary, the lower the congestion degree value, the less crowded, and the higher the comfort value, the better the comfort. .
另外,本实施例中,也可以采用其他计算方式,例如,将该公交线路中的各个公交车的拥挤程度值相加,并将相加的结果取对数的值作为该公交线路的舒适度值。或者还可以采用其他方式,例如该公交线路中的各个公交车的拥挤程度值相加取平均,并将相加取平均的结果取对数的值作为该公交线路的舒适度值。或者,还可以其他方式,遵从舒适度值与拥挤程度值成反比的原理即可。In addition, in this embodiment, other calculation manners may also be adopted, for example, adding the congestion degree values of each bus in the bus line, and taking the value of the added result as the logarithm value as the comfort degree of the bus line. value. Alternatively, other methods may be used, for example, the congestion degree values of the respective buses in the bus line are added and averaged, and the value of the sum averaged result is taken as the comfort value of the bus line. Alternatively, it is also possible to follow the principle that the comfort value is inversely proportional to the value of the congestion level.
最后,根据各公交线路的舒适度值,向用户推荐公交线路;例如具体地,可以将各公交线路的舒适度值按照从大到小排序;按照舒适度值从大到小的顺序,向用户推荐至少一条公交线路。例如,当向用户推荐时,如果有多条公交线路,可以优选地,向用户推荐舒适度值排前三名的公交路线,如果该公交线路中包括多辆公交车,该公交路线中除了包括各路公交车,还要包括换乘信息,即在哪站换乘等等。Finally, according to the comfort value of each bus line, the bus line is recommended to the user; for example, the comfort value of each bus line can be sorted from large to small; in order of comfort value from large to small, to the user Recommend at least one bus route. For example, when recommending to a user, if there are multiple bus lines, it may be preferable to recommend the bus route of the top three comfort values to the user. If the bus line includes multiple buses, the bus route includes Each bus also includes transfer information, ie where to transfer and so on.
进一步可选地,在上述实施例的技术方案的基础上,步骤102“根据请求时间和获得的公交的来车信息、以及各路公交车的标识对应的公交车在各预设时段的拥挤程度值,获取各公交线路中乘坐的各路公交车的拥挤程度值”之前,还可以包括如下步骤:Further optionally, based on the technical solution of the foregoing embodiment, step 102 “according to the request time and the obtained bus information of the public bus and the congestion of the bus corresponding to the identification of each bus in each preset time period. Before the value, the value of the congestion degree of each bus in each bus line is obtained, the following steps may be included:
(c1)根据公交车的历史刷卡数据,确定每一路公交车在高峰时期的最大负荷;(c1) Determine the maximum load of each bus during peak hours based on the historical credit card data of the bus;
(c2)根据每一路公交车的最大负荷,为各路公交车设置拥挤程度信息,拥挤程度信息中包括各路公交车的至少三个拥挤程度值,以及各拥挤程度值对应的人流量区间;(c2) setting congestion degree information for each bus according to the maximum load of each bus, and the congestion degree information includes at least three congestion degree values of each bus and a human flow interval corresponding to each congestion degree value;
(c3)根据公交车的历史刷卡数据,挖掘各路公交车在各预设时段的人流量; (c3) Excavate the traffic flow of each bus in each preset time period according to the history of the bus;
(c4)根据各路公交车在各预设时段的人流量以及各路公交车的拥挤程度信息,确定各路公交车在各预设时段的拥挤程度值。(c4) According to the traffic volume of each bus in each preset time period and the congestion degree information of each bus, the congestion degree value of each bus in each preset time period is determined.
本实施例的步骤(c1)-(c4)主要用于确定各路公交车在各预设时段的拥挤程度值。首先,根据公交车的历史刷卡数据,确定每一路公交车在高峰时期的最大负荷。由于每一路公交车,通常情况下车型是固定的,车容量也是固定的,因此本实施例中,可以将该最大负荷作为该公交车的人流量最大、拥挤程度最高时的负荷。然后根据每一路公交车的最大负荷,为各路公交车设置拥挤程度信息,拥挤程度信息中包括各路公交车的至少三个拥挤程度值,以及各拥挤程度值对应的人流量区间。为了能够更加精准地体现公交车的拥挤程度值,可以将拥挤程度分为多档,例如分为五档,五档可以分别采用1、2、3、4和5标识拥挤程度值,拥挤程度值越高表示越拥挤。例如某公交车的最大负荷为150人,可以为该公交车设置的拥挤程度信息包括五档拥挤程度值,其中第1档拥挤程度值为1,对应的人流量区间为0到30人;第2档拥挤程度值为2,对应的人流量区间为31到60人;第3档拥挤程度值为3,对应的人流量区间为61到90人;第4档拥挤程度值为4,对应的人流量区间为91到120人;第5档拥挤程度值为5,对应的人流量区间为121到150人。The steps (c1)-(c4) of the embodiment are mainly used for determining the congestion degree value of each bus in each preset time period. First, based on the historical credit card data of the bus, determine the maximum load of each bus during the peak period. Since each type of bus is normally fixed, the vehicle capacity is also fixed. Therefore, in this embodiment, the maximum load can be used as the load when the bus has the largest flow rate and the highest congestion level. Then, according to the maximum load of each bus, the congestion degree information is set for each bus, and the congestion degree information includes at least three congestion degree values of each bus, and a traffic flow interval corresponding to each congestion degree value. In order to more accurately reflect the congestion value of the bus, the congestion degree can be divided into multiple files, for example, divided into five files, and the fifth gear can be used to identify the congestion degree values by 1, 2, 3, 4, and 5, respectively, and the congestion degree value. The higher the more the more crowded. For example, the maximum load of a bus is 150, and the congestion degree information that can be set for the bus includes a five-level congestion degree value, wherein the first gear congestion degree value is 1, and the corresponding human traffic interval is 0 to 30 people; The 2nd congestion degree is 2, the corresponding traffic flow interval is 31 to 60 people; the third gear congestion degree is 3, the corresponding traffic flow interval is 61 to 90 people; the fourth gear congestion degree is 4, corresponding The flow rate range is 91 to 120 people; the fifth level of congestion is 5, and the corresponding flow rate is 121 to 150 people.
然后可以根据公交车的历史刷卡数据,挖掘各路公交车在各预设时段的人流量。其中预设时段可以根据公交车的路况规律来设置,同上述实施例所述,可以每两个小时设置一个时段。对于一个公交车在一个预设时段的人流量,具体可以取该公交车在该预设时段的人流量的平均值。再接着,可以根据为各路公交车设置拥挤程度信息,确定该公交车在该时段的人流量属于哪个拥挤程度档位,对应的拥挤程度值是哪个。 Then, according to the history of the bus, the card data can be used to mine the traffic of each bus in each preset time period. The preset time period may be set according to the road condition law of the bus, and as described in the above embodiment, one time period may be set every two hours. For the flow of a bus in a preset period of time, the average of the flow of the bus during the preset period may be taken. Then, according to the congestion degree information for each bus, it can be determined which congestion level the traffic of the bus belongs to during the time period, and the corresponding congestion degree value is which.
上述实施例的技术方案,在现有技术的基础上,还可以根据各公交线路中乘坐的各路公交车的拥挤程度值,向用户推荐公交线路,进一步丰富了实时公交服务提供的信息,丰富了实时公交服务的功能,而且还能够极大地提高用户的体验度。According to the technical solution of the above embodiment, based on the prior art, the bus line can be recommended to the user according to the congestion degree value of each bus in each bus line, thereby further enriching the information provided by the real-time bus service, enriching The function of real-time bus service, but also can greatly improve the user experience.
图2为本发明的公交线路推荐装置实施例的结构图。如图2所示,本实施例的公交线路推荐装置,具体可以包括:基础信息获取模块10、确定模块11和拥挤程度获取模块12和推荐模块13。Fig. 2 is a structural view showing an embodiment of a bus line recommending device of the present invention. As shown in FIG. 2, the bus route recommendation device of the present embodiment may specifically include: a basic information acquisition module 10, a determination module 11, a congestion degree acquisition module 12, and a recommendation module 13.
其中基础信息获取模块10用于获取用户的实时公交检索请求的请求时间、起点以及终点;确定模块11用于根据基础信息获取模块10获取的起点和终点,确定用户能够乘坐的至少两条公交线路和各公交线路包括的公交车的标识;拥挤程度获取模块12用于对于确定模块11确定的各公交线路,根据基础信息获取模块10获取的请求时间和获得的公交的来车信息、以及确定模块11确定的各路公交车的标识对应的公交车在各预设时段的拥挤程度值,获取对应的公交线路中乘坐的各路公交车的拥挤程度值;推荐模块13用于根据拥挤程度获取模块12获取的各公交线路中乘坐的各路公交车的拥挤程度值,向用户推荐公交线路。The basic information obtaining module 10 is configured to obtain a request time, a starting point, and an end point of the real-time bus retrieval request of the user. The determining module 11 is configured to determine at least two bus lines that the user can ride according to the starting point and the ending point acquired by the basic information acquiring module 10 And the identifier of the bus included in each bus line; the congestion degree acquisition module 12 is used for each bus line determined by the determining module 11, according to the request time acquired by the basic information acquiring module 10 and the obtained bus information of the bus, and the determining module 11 determining the congestion degree value of the bus corresponding to each bus in each preset time period, and obtaining the congestion degree value of each bus in the corresponding bus line; the recommendation module 13 is configured to acquire the module according to the congestion degree 12 Obtain the congestion degree value of each bus taken in each bus line, and recommend the bus line to the user.
本实施例的公交线路推荐装置,通过采用上述模块实现公交线路推荐的实现原理以及技术效果与上述相关方法实施例的实现相同,详细可以参考上述相关方法实施例的记载,在此不再赘述。The bus line recommendation device of the present embodiment is the same as the implementation of the related method embodiment by using the above-mentioned module to implement the bus line recommendation. For details, refer to the description of the related method embodiment, and details are not described herein again.
图3为本发明的公交线路推荐装置实施例二的结构图。如图3所示,本实施例的公交线路推荐装置,在上述图2所示实施例的技术方案的基础上,进一还可以包括如下技术方案。3 is a structural diagram of a second embodiment of a bus route recommending device of the present invention. As shown in FIG. 3, the bus route recommendation device of the present embodiment may further include the following technical solutions based on the technical solution of the embodiment shown in FIG.
本实施例的公交线路推荐装置中的拥挤程度获取模块12具体用于: The congestion degree acquisition module 12 in the bus route recommendation device of this embodiment is specifically configured to:
根据基础信息获取模块10获取的请求时间和获得的公交的来车信息,确定用户在各公交线路中乘坐的各路公交车的标识对应的公交车的时间段;根据用户在各公交线路中乘坐的各路公交车的时间段、以及确定模块11确定的各路公交车的标识对应的各路公交车在各预设时段的拥挤程度值,获取各公交线路中乘坐的各路公交车的拥挤程度值。Determining, according to the request time acquired by the basic information obtaining module 10 and the obtained information of the bus of the public transportation, the time period of the bus corresponding to the identification of each bus that the user rides in each bus line; according to the user riding in each bus line The time period of each bus and the congestion degree value of each bus corresponding to the identification of each bus determined by the module 11 are obtained, and the congestion of each bus in each bus line is obtained. Degree value.
进一步可选地,如图3所示,本实施例的公交线路推荐装置中,推荐模块13具体包括:Further, as shown in FIG. 3, in the bus route recommendation device of this embodiment, the recommendation module 13 specifically includes:
舒适度计算单元131用于根据拥挤程度获取模块12获取的各公交线路中乘坐的各路公交车的拥挤程度值,计算各公交线路的舒适度值;The comfort calculation unit 131 is configured to calculate the comfort value of each bus line according to the congestion degree value of each bus that is taken in each bus line acquired by the congestion degree acquisition module 12;
推荐单元132用于根据舒适度计算单元131计算的各公交线路的舒适度值,向用户推荐公交线路。The recommendation unit 132 is configured to recommend a bus route to the user based on the comfort value of each bus line calculated by the comfort calculation unit 131.
进一步可选地,本实施例的公交线路推荐装置中,舒适度计算单元131具体用于:将各公交线路中乘坐的各路公交车的拥挤程度值相乘;将相乘的结果取对数,作为对应的公交线路的舒适度值。Further, in the bus route recommendation device of the embodiment, the comfort calculation unit 131 is specifically configured to: multiply the congestion degree values of the buses in each bus route; and multiply the result by the logarithm , as the comfort value of the corresponding bus line.
进一步可选地,本实施例的公交线路推荐装置中,推荐单元132具体用于将各公交线路的舒适度值按照从大到小排序;按照舒适度值从大到小的顺序,向用户推荐至少一条公交线路。Further, in the bus route recommendation device of the embodiment, the recommendation unit 132 is specifically configured to sort the comfort values of each bus line according to the order of the largest to the smallest; and recommend the user according to the comfort value from the largest to the smallest. At least one bus line.
进一步可选地,如图3所示,本实施例的公交线路推荐装置中,还包括设置模块14和挖掘模块15。Further, as shown in FIG. 3, the bus line recommendation device of the embodiment further includes a setting module 14 and a digging module 15.
其中确定模块11还用于根据公交车的历史刷卡数据,确定各路公交车在高峰时期的最大负荷;The determining module 11 is further configured to determine the maximum load of each bus during the peak period according to the historical card data of the bus;
设置模块14用于根据确定模块11确定的各路公交车的最大负荷,为各路公交车设置拥挤程度信息,拥挤程度信息中包括各路公交车的至 少三个拥挤程度值,以及各拥挤程度值对应的人流量区间;The setting module 14 is configured to set congestion degree information for each bus according to the maximum load of each bus determined by the determining module 11, and the congestion degree information includes the bus to each bus. Less than three congestion levels, and the flow rate corresponding to each congestion degree value;
挖掘模块15用于根据公交车的历史刷卡数据,挖掘各路公交车在各预设时段的人流量;The mining module 15 is configured to mine the traffic flow of each bus in each preset time period according to the historical card data of the bus;
确定模块11还用于根据挖掘模块15挖掘的各路公交车在各预设时段的人流量以及设置模块14设置的各路公交车的拥挤程度信息,确定各路公交车在各预设时段的拥挤程度值。The determining module 11 is further configured to determine, according to the traffic volume of each bus in each preset time period excavated by the mining module 15 and the congestion degree information of each bus set by the setting module 14, determine the bus of each bus in each preset time period. Congestion level value.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器 (Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, and a read only memory. (Read-Only Memory, ROM), Random Access Memory (RAM), disk or optical disk, and other media that can store program code.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included in the present invention. Within the scope of protection.

Claims (14)

  1. 一种公交线路推荐方法,其特征在于,所述方法包括:A bus route recommendation method, characterized in that the method comprises:
    获取用户的实时公交检索请求的请求时间、起点以及终点;Obtain the request time, start point, and end point of the user's real-time bus retrieval request;
    根据所述起点和所述终点,确定所述用户能够乘坐的至少两条公交线路和各所述公交线路包括的公交车的标识;Determining, according to the starting point and the ending point, at least two bus lines that the user can ride and an identifier of a bus included in each of the bus lines;
    对于各所述公交线路,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值;For each of the bus lines, obtaining the bus according to the request time and the obtained bus information of the bus, and the congestion degree value of the bus corresponding to the identifier of each bus in each preset time period. The value of the congestion level of the buses on each route taken in the line;
    根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,向所述用户推荐所述公交线路。The bus line is recommended to the user according to the congestion degree value of the bus in each of the bus lines.
  2. 根据权利要求1所述的方法,其特征在于,对于各所述公交线路,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值,具体包括:The method according to claim 1, wherein for each of the bus lines, the bus corresponding to the requested bus time of the bus and the bus of the bus The value of the congestion degree of each preset time period is obtained, and the congestion degree value of each of the buses in the bus line is obtained, which specifically includes:
    对于各所述公交线路,根据所述请求时间和获得的公交的来车信息,确定所述用户在所述公交线路中乘坐的各路所述公交车的时间段;Determining, for each of the bus lines, a time period of each of the buses on which the user is riding in the bus line according to the request time and the obtained bus information of the bus;
    根据所述用户在所述公交线路中乘坐的各路所述公交车的时间段、以及各路所述公交车的标识对应的所述公交车在各所述预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值。Obtaining, according to a time period of the bus in which the user is riding in the bus line, and a congestion degree value of the bus corresponding to the identifier of each bus in each of the preset time periods. The congestion degree value of the bus in each of the bus routes.
  3. 根据权利要求1所述的方法,其特征在于,根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,向所述用户推荐所述公交线路,具体包括:The method according to claim 1, wherein the bus line is recommended to the user according to a congestion degree value of each of the buses in each of the bus lines, and specifically includes:
    根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,计算 各所述公交线路的舒适度值;Calculating according to the congestion degree value of the bus in each of the bus routes The comfort value of each of the bus lines;
    根据各所述公交线路的舒适度值,向所述用户推荐所述公交线路。The bus line is recommended to the user based on the comfort value of each of the bus lines.
  4. 根据权利要求3所述的方法,其特征在于,根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,计算各所述公交线路的舒适度值,具体包括:The method according to claim 3, wherein the comfort value of each of the bus lines is calculated according to the congestion degree value of each of the buses in each of the bus lines, and specifically includes:
    将各所述公交线路中乘坐的各路所述公交车的拥挤程度值相乘;Multiplying the congestion degree values of the buses in each of the bus lines;
    将相乘的结果取对数,作为对应的所述公交线路的舒适度值。The result of the multiplication is taken as a logarithm as the corresponding comfort value of the bus line.
  5. 根据权利要求3所述的方法,其特征在于,根据各所述公交线路的舒适度值,向所述用户推荐所述公交线路,具体包括:The method according to claim 3, wherein the recommending the bus line to the user according to the comfort value of each of the bus lines comprises:
    将各所述公交线路的舒适度值按照从大到小排序;Sorting the comfort values of each of the bus lines in descending order;
    按照所述舒适度值从大到小的顺序,向所述用户推荐至少一条所述公交线路。At least one of the bus lines is recommended to the user in descending order of comfort values.
  6. 根据权利要求1-5任一所述的方法,其特征在于,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度值,获取各所述公交线路中乘坐的各路所述公交车的拥挤程度值之前,所述方法还包括:The method according to any one of claims 1 to 5, characterized in that, according to the request time and the obtained bus information of the public bus, and the bus corresponding to the identification of the bus, each bus is preset. The method further includes: before obtaining the congestion degree value of each of the buses in each of the bus lines.
    根据公交车的历史刷卡数据,确定各路所述公交车在高峰时期的最大负荷;According to the historical credit card data of the bus, determine the maximum load of the bus in each peak during the peak period;
    根据各路所述公交车的最大负荷,为各路所述公交车设置拥挤程度信息,所述拥挤程度信息中包括各路所述公交车的至少三个拥挤程度值,以及各所述拥挤程度值对应的人流量区间;Providing congestion degree information for each of the buses according to the maximum load of the buses, and the congestion degree information includes at least three congestion levels of the buses, and the degree of congestion The flow rate corresponding to the value;
    根据所述公交车的历史刷卡数据,挖掘各路所述公交车在各所述预设时段的人流量; Extracting the flow of the bus of each of the buses in each of the preset time periods according to the historical card data of the bus;
    根据各路所述公交车在各所述预设时段的人流量以及各路所述公交车的拥挤程度信息,确定各路所述公交车在各所述预设时段的拥挤程度值。The congestion degree value of each bus in each of the preset time periods is determined according to the traffic volume of each bus in each of the preset time periods and the congestion degree information of each bus.
  7. 一种公交线路推荐装置,其特征在于,所述装置包括:A bus route recommending device, characterized in that the device comprises:
    基础信息获取模块,用于获取用户的实时公交检索请求的请求时间、起点以及终点;The basic information obtaining module is configured to acquire a request time, a starting point, and an end point of the real-time bus retrieval request of the user;
    确定模块,用于根据所述起点和所述终点,确定所述用户能够乘坐的至少两条公交线路和各所述公交线路包括的公交车的标识;a determining module, configured to determine, according to the starting point and the ending point, at least two bus lines that the user can ride and an identifier of a bus included in each of the bus lines;
    拥挤程度获取模块,用于对于各所述公交线路,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值;a congestion degree acquisition module, configured, for each of the bus lines, according to the request time and the obtained bus information of the bus, and the bus corresponding to the identifier of each bus in each preset time period a degree value obtained by acquiring a congestion degree value of each of the buses on the bus line;
    推荐模块,用于根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,向所述用户推荐所述公交线路。And a recommendation module, configured to recommend the bus line to the user according to a congestion degree value of the bus in each of the bus lines.
  8. 根据权利要求7所述的装置,其特征在于,所述拥挤程度获取模块,具体用于:The device according to claim 7, wherein the congestion degree acquisition module is specifically configured to:
    对于各所述公交线路,根据所述请求时间和获得的公交的来车信息,确定所述用户在所述公交线路中乘坐的各路所述公交车的时间段;Determining, for each of the bus lines, a time period of each of the buses on which the user is riding in the bus line according to the request time and the obtained bus information of the bus;
    根据所述用户在所述公交线路中乘坐的各路所述公交车的时间段、以及各路所述公交车的标识对应的所述公交车在各所述预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值。Obtaining, according to a time period of the bus in which the user is riding in the bus line, and a congestion degree value of the bus corresponding to the identifier of each bus in each of the preset time periods. The congestion degree value of the bus in each of the bus routes.
  9. 根据权利要求7所述的装置,其特征在于,所述推荐模块,具体包括: The device according to claim 7, wherein the recommendation module specifically includes:
    舒适度计算单元,用于根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,计算各所述公交线路的舒适度值;a comfort calculation unit, configured to calculate a comfort value of each of the bus lines according to a congestion degree value of each of the buses in each of the bus lines;
    推荐单元,用于根据各所述公交线路的舒适度值,向所述用户推荐所述公交线路。a recommending unit, configured to recommend the bus line to the user according to a comfort value of each of the bus lines.
  10. 根据权利要求9所述的装置,其特征在于,所述舒适度计算单元,具体用于:The device according to claim 9, wherein the comfort calculation unit is specifically configured to:
    将各所述公交线路中乘坐的各路所述公交车的拥挤程度值相乘;Multiplying the congestion degree values of the buses in each of the bus lines;
    将相乘的结果取对数,作为对应的所述公交线路的舒适度值。The result of the multiplication is taken as a logarithm as the corresponding comfort value of the bus line.
  11. 根据权利要求9所述的装置,其特征在于,所述推荐单元,具体用于:The device according to claim 9, wherein the recommendation unit is specifically configured to:
    将各所述公交线路的舒适度值按照从大到小排序;Sorting the comfort values of each of the bus lines in descending order;
    按照所述舒适度值从大到小的顺序,向所述用户推荐至少一条所述公交线路。At least one of the bus lines is recommended to the user in descending order of comfort values.
  12. 根据权利要求7-11任一所述的装置,其特征在于,根所述还包括设置模块和挖掘模块;The device according to any one of claims 7-11, wherein the root further comprises a setting module and a mining module;
    所述确定模块,还用于根据公交车的历史刷卡数据,确定各路所述公交车在高峰时期的最大负荷;The determining module is further configured to determine a maximum load of the bus in each peak period according to historical card data of the bus;
    所述设置模块,用于根据各路所述公交车的最大负荷,为各路所述公交车设置拥挤程度信息,所述拥挤程度信息中包括各路所述公交车的至少三个拥挤程度值,以及各所述拥挤程度值对应的人流量区间;The setting module is configured to set congestion degree information for each bus of each road according to a maximum load of the bus of each road, where the congestion degree information includes at least three congestion degree values of each bus of each road And a human flow interval corresponding to each of the congestion degree values;
    所述挖掘模块,用于根据所述公交车的历史刷卡数据,挖掘各路所述公交车在各所述预设时段的人流量;The mining module is configured to mine, according to historical bus card data of the bus, the flow of people in each of the preset time periods of each bus;
    所述确定模块,还用于根据各路所述公交车在各所述预设时段的人 流量以及各路所述公交车的拥挤程度信息,确定各路所述公交车在各所述预设时段的拥挤程度值。The determining module is further configured to: according to each of the buses, each of the preset time periods The flow rate and the congestion degree information of the buses in each road determine the congestion degree value of each bus in each of the preset time periods.
  13. 一种设备,包括a device, including
    一个或者多个处理器;One or more processors;
    存储器;Memory
    一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:One or more programs, the one or more programs being stored in the memory, when executed by the one or more processors:
    获取用户的实时公交检索请求的请求时间、起点以及终点;Obtain the request time, start point, and end point of the user's real-time bus retrieval request;
    根据所述起点和所述终点,确定所述用户能够乘坐的至少两条公交线路和各所述公交线路包括的公交车的标识;Determining, according to the starting point and the ending point, at least two bus lines that the user can ride and an identifier of a bus included in each of the bus lines;
    对于各所述公交线路,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值;For each of the bus lines, obtaining the bus according to the request time and the obtained bus information of the bus, and the congestion degree value of the bus corresponding to the identifier of each bus in each preset time period. The value of the congestion level of the buses on each route taken in the line;
    根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,向所述用户推荐所述公交线路。The bus line is recommended to the user according to the congestion degree value of the bus in each of the bus lines.
  14. 一种计算机存储介质,所述计算机存储介质被编码有计算机程序,所述程序在被一个或多个计算机执行时,使得所述一个或多个计算机执行如下操作:A computer storage medium encoded with a computer program, when executed by one or more computers, causes the one or more computers to perform the following operations:
    获取用户的实时公交检索请求的请求时间、起点以及终点;Obtain the request time, start point, and end point of the user's real-time bus retrieval request;
    根据所述起点和所述终点,确定所述用户能够乘坐的至少两条公交线路和各所述公交线路包括的公交车的标识;Determining, according to the starting point and the ending point, at least two bus lines that the user can ride and an identifier of a bus included in each of the bus lines;
    对于各所述公交线路,根据所述请求时间和获得的公交的来车信息、以及各路所述公交车的标识对应的所述公交车在各预设时段的拥挤程度 值,获取所述公交线路中乘坐的各路所述公交车的拥挤程度值;For each of the bus lines, according to the request time and the obtained bus information of the bus, and the congestion of the bus corresponding to the identifier of each bus in each preset time period a value obtained by acquiring a congestion degree value of the bus in each of the bus lines;
    根据各所述公交线路中乘坐的各路所述公交车的拥挤程度值,向所述用户推荐所述公交线路。 The bus line is recommended to the user according to the congestion degree value of the bus in each of the bus lines.
PCT/CN2017/084452 2016-09-30 2017-05-16 Ground transportation journey recommendation method, device, apparatus, and computer storage medium WO2018058967A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020197004158A KR102162729B1 (en) 2016-09-30 2017-05-16 How to recommend bus routes, devices, devices and computer storage media
JP2019523153A JP6742518B2 (en) 2016-09-30 2017-05-16 Bus route recommendation method, device, device and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610874849.0 2016-09-30
CN201610874849.0A CN106448135B (en) 2016-09-30 2016-09-30 Bus routes recommend method and device

Publications (1)

Publication Number Publication Date
WO2018058967A1 true WO2018058967A1 (en) 2018-04-05

Family

ID=58172794

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/084452 WO2018058967A1 (en) 2016-09-30 2017-05-16 Ground transportation journey recommendation method, device, apparatus, and computer storage medium

Country Status (4)

Country Link
JP (1) JP6742518B2 (en)
KR (1) KR102162729B1 (en)
CN (1) CN106448135B (en)
WO (1) WO2018058967A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109147318A (en) * 2018-08-03 2019-01-04 上海市政工程设计研究总院(集团)有限公司 A kind of mode of transportation comfort level judgement system for the evacuation of transport hub passenger flow

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106448135B (en) * 2016-09-30 2018-07-10 百度在线网络技术(北京)有限公司 Bus routes recommend method and device
CN109426417A (en) * 2017-08-31 2019-03-05 北京嘀嘀无限科技发展有限公司 Information display method and system
CN110069720B (en) * 2017-11-03 2021-12-21 北京嘀嘀无限科技发展有限公司 Bus taking route pushing method and device, computer equipment and storage medium
CN107862865B (en) * 2017-10-27 2020-01-07 沈阳世纪高通科技有限公司 Travel information prediction method and device
CN110857856A (en) * 2018-08-22 2020-03-03 阿里巴巴集团控股有限公司 Route planning method and system
CN111627239B (en) * 2019-02-28 2022-08-09 腾讯大地通途(北京)科技有限公司 Display method, device and equipment of public transport information and storage medium
CN110457606A (en) * 2019-04-26 2019-11-15 华为技术有限公司 A kind of route recommendation method and electronic device
CN110457416A (en) * 2019-07-31 2019-11-15 摩比科技(深圳)有限公司 A kind of method and apparatus for recommending bus trip route
KR102181109B1 (en) * 2020-01-16 2020-11-20 주식회사 룰루랩 Monitoring and total control system of indoor or outdoor atmospheric environment monitoring of public transportation
CN111739328A (en) * 2020-04-29 2020-10-02 青岛慧都智能科技有限公司 Bus route recommendation method, device and system
CN112183889B (en) * 2020-10-26 2023-06-06 中国联合网络通信集团有限公司 Riding route recommendation method and device
KR102405473B1 (en) * 2021-08-23 2022-06-08 포티투닷 주식회사 Method and apparatus for determining moving path of a vehicle considering movement flow of passengers
CN113657680B (en) * 2021-08-24 2024-01-16 深圳市新天能科技开发有限公司 Interactive intelligent bus operation method and system
WO2023062968A1 (en) * 2021-10-13 2023-04-20 株式会社Nttドコモ Recommendation system
JPWO2023062969A1 (en) * 2021-10-13 2023-04-20
JP2023125180A (en) * 2022-02-28 2023-09-07 三菱電機株式会社 Boarding guidance device, boarding guidance system using the same, and boarding guidance method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7257485B2 (en) * 2005-11-09 2007-08-14 Xanavi Informatics Corporation Navigation system, and information acquisition method
CN102867408A (en) * 2012-09-17 2013-01-09 北京理工大学 Method and system for selecting bus trip route
CN103246712A (en) * 2013-04-22 2013-08-14 东莞中山大学研究院 Metro line recommending method
CN104517040A (en) * 2014-12-31 2015-04-15 青岛海信网络科技股份有限公司 Method for calculating in-carriage congestion degree of public traffic vehicle based on IC card data
CN106448135A (en) * 2016-09-30 2017-02-22 百度在线网络技术(北京)有限公司 Bus route recommendation method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008225816A (en) * 2007-03-13 2008-09-25 Nec Corp Rerouting support system and rerouting support method
WO2008142783A1 (en) * 2007-05-23 2008-11-27 Navitime Japan Co., Ltd. Navigation system, route retrieval server and mobile terminal device, and route guiding method
JP5492608B2 (en) * 2010-03-09 2014-05-14 株式会社ナビタイムジャパン Navigation system, navigation server, navigation method, and program
JP5668380B2 (en) * 2010-09-10 2015-02-12 株式会社豊田中央研究所 Route search apparatus and program
KR20130010393A (en) * 2011-07-18 2013-01-28 주식회사 네비웨이 Bus information system
JP5937322B2 (en) * 2011-09-27 2016-06-22 株式会社ナビタイムジャパン Information processing system, information processing apparatus, information processing method, and information processing program
KR20160018968A (en) * 2014-08-08 2016-02-18 주식회사 케이티 Method and device for providing bus monitoring service
KR101656145B1 (en) * 2014-10-07 2016-09-08 고려대학교 산학협력단 Method for providing path information
CN105719476A (en) * 2016-03-28 2016-06-29 深圳市佳信捷技术股份有限公司 Updating method and device for public transport system scheduling information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7257485B2 (en) * 2005-11-09 2007-08-14 Xanavi Informatics Corporation Navigation system, and information acquisition method
CN102867408A (en) * 2012-09-17 2013-01-09 北京理工大学 Method and system for selecting bus trip route
CN103246712A (en) * 2013-04-22 2013-08-14 东莞中山大学研究院 Metro line recommending method
CN104517040A (en) * 2014-12-31 2015-04-15 青岛海信网络科技股份有限公司 Method for calculating in-carriage congestion degree of public traffic vehicle based on IC card data
CN106448135A (en) * 2016-09-30 2017-02-22 百度在线网络技术(北京)有限公司 Bus route recommendation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109147318A (en) * 2018-08-03 2019-01-04 上海市政工程设计研究总院(集团)有限公司 A kind of mode of transportation comfort level judgement system for the evacuation of transport hub passenger flow

Also Published As

Publication number Publication date
JP6742518B2 (en) 2020-08-19
KR20190028499A (en) 2019-03-18
CN106448135B (en) 2018-07-10
JP2019527902A (en) 2019-10-03
KR102162729B1 (en) 2020-10-07
CN106448135A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
WO2018058967A1 (en) Ground transportation journey recommendation method, device, apparatus, and computer storage medium
US9689693B2 (en) Systems and methods for learning and displaying customized geographical navigational options
Ma et al. Development of a data-driven platform for transit performance measures using smart card and GPS data
CN106779116B (en) Online taxi appointment customer credit investigation method based on time-space data mining
CN106504534B (en) A kind of method, apparatus and user equipment for predicting road conditions
CN105677793A (en) Site database establishing method and device, and candidate riding site recommending method and device
CN108922178B (en) Public transport vehicle real-time full load rate calculation method based on public transport multi-source data
CN104809344A (en) IC (Integrated Circuit) card data-based estimation method for passenger flow in bus station interval
CN105427594A (en) Bidirectional-getting-on-passenger-flow-based obtaining method and system for bus section passenger flow volume
CN110782301A (en) Order combining method and device, electronic equipment and computer readable storage medium
US20200065679A1 (en) Predicting refueling information for a client device
CN111861643A (en) Riding position recommendation method and device, electronic equipment and storage medium
CN104517040A (en) Method for calculating in-carriage congestion degree of public traffic vehicle based on IC card data
CN104599002A (en) Order value predicting method and equipment
CN109102093B (en) Method and device for determining single hot spot area under taxi appointment and electronic equipment
CN110046218B (en) Mining method, device and system for user travel mode and processor
Tushara et al. Mode choice modelling for work trips in Calicut City
CN114443303A (en) Resource allocation method, device, equipment and medium
CN111723835A (en) Vehicle movement track distinguishing method and device and electronic equipment
CN110826943B (en) Method and related equipment for judging whether bus allocation is needed or not and determining bus allocation number
CN111612493B (en) User grouping method and device
CN110657817A (en) Method and device for recommending travel route
CN113761398B (en) Information recommendation method and device, electronic equipment and storage medium
CN111310961A (en) Data prediction method, data prediction device, electronic equipment and computer readable storage medium
CN112686457B (en) Route arrival time estimation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17854423

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019523153

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20197004158

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17854423

Country of ref document: EP

Kind code of ref document: A1