A kind of recommended method and device of trip mode

文档序号:1753687 发布日期:2019-11-29 浏览:29次 中文

阅读说明:本技术 一种出行方式的推荐方法及装置 (A kind of recommended method and device of trip mode ) 是由 范哲铭 于 2018-05-21 设计创作,主要内容包括:本发明实施例提供了一种出行方式的推荐方法及装置。其中,所述方法包括:接收用户端发送的出行请求,所述请求至少携带了用户的出发位置和目的地位置;获取所述出发位置周边的至少一个公交车站,所述公交车站有能够到达所述目的地的公交车;确定从所述出发位置到所述公交车站及搭乘所述公交车到所述目的地的出行成本;向所述用户端发送按照出行成本排序后的出行方式。采用本发明提供的技术方案能够为用户推荐最优的公共出行方式。(The embodiment of the invention provides a kind of recommended method of trip mode and devices.Wherein, which comprises receive the trip request that user terminal is sent, the homeposition and destination locations for requesting at least to carry user;At least one bus stop on the homeposition periphery is obtained, there is the bus that can reach the destination in the bus stop;Determine from the homeposition to the bus stop and take the bus to the destination Trip Costs;The trip mode after sorting according to Trip Costs is sent to the user terminal.Use technical solution provided by the invention that can recommend optimal public trip mode for user.)

1. a kind of recommended method of trip mode, which is characterized in that the described method includes:

Receive the trip request that user terminal is sent, the homeposition and destination locations for requesting at least to carry user;

Obtain at least one bus stop on the homeposition periphery, the bus stop has and can reach the destination Bus;

Determine from the homeposition to the bus stop and take the bus to the destination Trip Costs;

The trip mode after sorting according to Trip Costs is sent to the user terminal.

2. the method according to claim 1, wherein obtaining at least one bus on the homeposition periphery It stands, there is the bus that can reach the destination in the bus stop, comprising:

In preset transit database, search for the first bus stop, first bus stop to the homeposition away from From within the scope of preset distance threshold and having the first bus that can reach the destination.

3. according to the method described in claim 2, it is characterized in that, determination to the bus stop and is taken from the homeposition Multiply the bus to the Trip Costs of the destination, specifically include:

It obtains the first duration of walking from the homeposition to the first bus stop and reaches the time of the first bus stop;

Based on the time for reaching the first bus stop, obtain after user reaches the first bus stop, first bus Drive to the first duration of traveling of the first bus stop;

The first duration of the first duration of walking and traveling is determined as with value from the homeposition to the first bus by described The first Trip Costs stood;

Obtain the second Trip Costs for taking the first bus to the destination;

First Trip Costs and the second Trip Costs and value are determined as the Trip Costs that walking adds bus trip mode.

4. according to the method described in claim 3, it is characterized in that, after sorting to user terminal transmission according to Trip Costs Trip mode before, the method further includes:

Get the position of the nearest shared bicycle of the homeposition;

It obtains from the homeposition to the second duration of walking of the position of the shared bicycle;

Obtain the difference of maximum first Trip Costs and the second duration of walking;

With the difference multiplied by preset riding speed, distance of riding is obtained;

Determine from the homeposition to the bus stop and take the bus to the destination Trip Costs, into One step includes:

In preset transit database, search for the second bus stop, second bus stop to the homeposition away from It rides in distance range from described and has the second bus that can reach the destination;

Acquisition is ridden from the position of shared bicycle to the duration of riding of the second bus stop;

Based on the second duration of walking and duration of riding, the time for reaching the second bus stop is obtained;

Based on the time for reaching the second bus stop, obtain after user reaches the second bus stop, second bus Drive to the second duration of traveling of the second bus stop;

Obtain the third Trip Costs for taking the second bus to the destination;

By the second duration of walking, the second duration of traveling, duration of riding and third Trip Costs and value be determined as walking add it is shared Bicycle adds the Trip Costs of bus trip mode.

5. a kind of recommendation apparatus of trip mode, which is characterized in that described device includes:

Request receiving module, for receiving the trip request of user terminal transmission, the position of setting out for requesting at least to carry user It sets and destination locations;

Bus stop obtains module, for obtaining at least one bus stop on the homeposition periphery, the bus stop There is the bus that can reach the destination;

Trip Costs obtain module, for determining from the homeposition to the bus stop and taking the bus to institute State the Trip Costs of destination;

Trip mode recommending module, for sending the trip mode after sorting according to Trip Costs to the user terminal.

6. device according to claim 5, which is characterized in that bus stop obtains module, specifically includes:

First bus acquiring unit, for searching for the first bus stop, first public transport in preset transit database The distance of station to the homeposition within the scope of preset distance threshold and has the first public affairs that can reach the destination Hand over vehicle.

7. device according to claim 6, which is characterized in that Trip Costs obtain module, specifically include:

First time acquiring unit, for obtaining the first duration of walking and arrival from the homeposition to the first bus stop The time of first bus stop;

The first duration acquiring unit is travelled, for obtaining and reaching the first public affairs in user based on the time for reaching the first bus stop After handing over station, first bus drives to the first duration of traveling of the first bus stop;

First Trip Costs acquiring unit, for by it is described by the first duration of walking and traveling the first duration and value be determined as from First Trip Costs of the homeposition to the first bus stop;

Second Trip Costs acquiring unit, for obtaining the second Trip Costs for taking the first bus to the destination;

Trip Costs first acquisition unit adds for first Trip Costs and the second Trip Costs and value to be determined as walking The Trip Costs of bus trip mode.

8. device according to claim 7, which is characterized in that described device further comprises:

Shared bicycle obtains module, for getting the position of the nearest shared bicycle of the homeposition;

Distance of riding obtains module, for obtaining from the homeposition to when the walking the second of the position of the shared bicycle It is long, the difference of maximum first Trip Costs and the second duration of walking is obtained, with the difference multiplied by preset speed of riding Degree, obtains distance of riding;

The Trip Costs obtain module, further comprise:

Second bus stop acquiring unit, in preset transit database, searching for the second bus stop, described second is public Hand over station to the homeposition distance it is described ride in distance range and have can reach the destination second public affairs Hand over vehicle;

Duration of riding acquiring unit is ridden for obtaining from the position of shared bicycle to the duration of riding of the second bus stop;

Trip Costs second acquisition unit, for obtaining and reaching the second bus stop based on the second duration of walking and duration of riding Time, based on reach the second bus stop time, obtain user reach the second bus stop after, second public transport Garage sails to the second duration of traveling of the second bus stop, obtain the third for taking the second bus to the destination go on a journey at This, by the second duration of walking, the second duration of traveling, duration of riding and third Trip Costs and value be determined as walking add it is shared single Vehicle adds the Trip Costs of bus trip mode.

9. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit requires the recommended method of trip mode described in any one of 1-4.

Technical field

The present invention relates to field of intelligent transportation technology, more particularly to the recommended method and device of a kind of trip mode.

Background technique

With the planning and construction of smart city, the transit trip tool based on public transport, subway etc. is by feat of just The advantages that prompt, environmental protection and low cost, together forms energy conservation, height with other emerging transit trip tools such as shared bicycles The urban traffic network of effect, this not only improves solution since motor vehicle largely uses bring energy consumption, traffic congestion and ring The problems such as border is polluted, also provides more and more trip modes that can choose for user.

But increasing with trip mode, it also results in user and encounters difficulties when selecting trip mode, therefore, such as The problem of what helps user that optimal trip mode is selected to become urgent need to resolve.

Summary of the invention

In view of this, the present invention provides the recommended method and device of a kind of trip mode, can recommend for user optimal Trip mode.

To achieve the goals above, technical solution provided in an embodiment of the present invention is as follows:

A kind of recommended method of trip mode, which comprises

Receive the trip request that user terminal is sent, homeposition and the purpose status for requesting at least to carry user It sets;

Obtain at least one bus stop on the homeposition periphery, the bus stop has and can reach the purpose The bus on ground;

Determine from the homeposition to the bus stop and take the bus to the destination trip at This;

The trip mode after sorting according to Trip Costs is sent to the user terminal.

A kind of recommendation apparatus of trip mode, described device include:

Request receiving module, it is described to request at least to carry going out for user for receiving the trip request of user terminal transmission Send out position and destination locations;

Bus stop obtains module, for obtaining at least one bus stop on the homeposition periphery, the public transport There is the bus that can reach the destination at station;

Trip Costs obtain module, for determining from the homeposition to the bus stop and taking the bus To the Trip Costs of the destination;

Trip mode recommending module, for sending the trip mode after sorting according to Trip Costs to the user terminal.

It can be seen from the above technical scheme that technical solution provided by the invention, by receiving going out for user terminal transmission Row request, the homeposition and destination locations for requesting at least to carry user;Obtain the homeposition periphery extremely A few bus stop, there is the bus that can reach the destination in the bus stop;Determine from the homeposition to The bus stop and take the bus to the destination Trip Costs;To the user terminal send according to trip at Trip mode after this sequence.Going out when being capable of determining that user takes bus trip due to technical solution provided by the invention Row cost, and recommend trip mode to user based on Trip Costs, public trip side is rule of thumb selected so as to avoid user The uncertainty of formula can recommend optimal trip mode for user, and the user experience is improved.

Detailed description of the invention

In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.

Fig. 1 is a kind of flow diagram of the recommended method of trip mode disclosed in the embodiment of the present invention one;

Fig. 2 is a kind of flow diagram of the recommended method of trip mode disclosed in the embodiment of the present invention two;

Fig. 3 is a kind of a part of the flow diagram of the recommended method of trip mode disclosed in the embodiment of the present invention three;

Fig. 3 (Continued) is a kind of another portion of the recommended method flow diagram of trip mode disclosed in the embodiment of the present invention three Point;

Fig. 4 is a kind of composition schematic diagram of the recommendation apparatus of trip mode disclosed by the embodiments of the present invention.

Specific embodiment

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.

It referring to Figure 1, is a kind of recommended method for trip mode that the embodiment of the present invention one provides, this method comprises:

Step 101: receiving the trip request that user terminal is sent, the homeposition and mesh for requesting at least to carry user Position;

Step 102: obtaining at least one bus stop on the homeposition periphery, the bus stop has and can reach The bus of the destination;

Step 103: determining from the homeposition to the bus stop and take the bus to the destination Trip Costs;

Step 104: Xiang Suoshu user terminal sends the trip mode after sorting according to Trip Costs.

It is a kind of recommended method for trip mode that the embodiment of the present invention one provides above, when user wishes by taking public affairs When the mode of vehicle being handed over to go on a journey, the present invention can determine bus stop first for user, can take in bus stop user To the bus for the destination that can reach its setting, secondly, present invention determine that user reaches the bus stop and takes public affairs It hands over vehicle to the cost of destination, and sends the trip mode after sorting according to Trip Costs to user.Under normal conditions, trip at This such as travel time cost is to influence user's trip experience or user's selection most concerned reference frame of trip mode, this Invention is ranked up trip mode according to Trip Costs, and user can be helped quickly to select from selectable trip mode Optimal trip mode out, improves user experience.

Further, it is contemplated that user reaches bus stop generally by the mode of walking, therefore, the embodiment of the present invention two A kind of recommended method of trip mode is provided, this method refers to Fig. 2, and the difference of this method and method shown in Fig. 1 is:

Step 102: obtaining at least one bus stop on the homeposition periphery, the bus stop has and can reach The bus of the destination is realized using following technological means, comprising:

Step 1021: in preset transit database, searching for the first bus stop, first bus stop is described in The distance of homeposition is within the scope of preset distance threshold and has the first bus that can reach the destination.

It should be noted that the preset distance threshold in the present invention is not too large, so that user can be pleasant Walking distance in walking reach the first bus stop.

Step 103: determining from the homeposition to the bus stop and take the bus to the destination Trip Costs, using following technological means realize, comprising:

Step 1031: obtaining the first duration of walking from the homeposition to the first bus stop and reach the first public transport The time at station;

It should be noted that the time that acquisition reaches the first bus stop needs to consider the departure time of user.

Step 1032: based on the time for reaching the first bus stop, obtaining after user reaches the first bus stop, institute State the first duration of traveling that the first bus drives to the first bus stop;

Step 1033: being determined as the first duration of the first duration of walking and traveling from the homeposition with value for described To the first Trip Costs of the first bus stop;

Step 1034: obtaining the second Trip Costs for taking the first bus to the destination;

Step 1035: first Trip Costs and the second Trip Costs and value being determined as walking and add bus trip mode Trip Costs.

As previously mentioned, it is walking that general user, which reaches the most convenient and fast trip mode in bus stop, in order to allow users to select It selects out optimal walking and adds bus trip route, when the present invention obtains user and walks to the walking the first of the first bus stop After long, user reaches the first bus stop, the first bus drives to the first duration of traveling of the first bus stop, i.e. user It needs the duration for waiting the first bus and user to take the first bus in the first bus stop in the first bus stop to arrive Second Trip Costs of destination, finally, by the first duration of walking, traveling the first duration and the second Trip Costs and value determine For walking plus the Trip Costs of bus trip mode, since to consider user whole from homeposition to destination for the Trip Costs Body trip situation, is ranked up trip mode according to the Trip Costs, is able to use the trip mode that family adds public transport from walking In select optimal trip mode.

It is a kind of recommended method of trip mode provided by Embodiment 2 of the present invention above, on the basis of above-described embodiment On, the embodiment of the present invention three additionally provides a kind of recommended method of trip mode, refers to Fig. 3 and Fig. 3 (Continued), this method and sheet The difference of two providing method of inventive embodiments is that this method further comprises:

Step 103 ': get the position of the nearest shared bicycle of the homeposition;

Step 104 ': it obtains from the homeposition to the second duration of walking of the position of the shared bicycle;

Step 105 ': obtain the difference of maximum first Trip Costs and the second duration of walking;

Step 106 ': with the difference multiplied by preset riding speed, obtain distance of riding;

Step 103: determining from the homeposition to the bus stop and take the bus to the destination Trip Costs, further comprise:

Step 1036: in preset transit database, searching for the second bus stop, second bus stop is described in The distance of homeposition rides in distance range described and has the second bus that can reach the destination;

Step 1037: acquisition is ridden from the position of shared bicycle to the duration of riding of the second bus stop;

Step 1038: based on the second duration of walking and duration of riding, obtaining the time for reaching the second bus stop;

Step 1039: based on the time for reaching the second bus stop, obtaining after user reaches the second bus stop, institute State the second duration of traveling that the second bus drives to the second bus stop;

Step 10310: obtaining the third Trip Costs for taking the second bus to the destination;

Step 10311: by the second duration of walking, the second duration of traveling, duration of riding and third Trip Costs and value really It is set to the Trip Costs that walking adds shared bicycle to add bus trip mode.

It is well known that shared bicycle not only solves the problem of user's last one kilometer trip, meanwhile, with manner of walking phase Than, in identical duration, the distance ridden can be greater than the distance of walking, therefore, the method that the embodiment of the present invention three provides, benefit It is bus stop of user's searching apart from user remotely with shared bicycle, these bus stops is also included in the model of user's selection Enclose, and by walking add public transport, walking add ride plus public transport trip mode be ranked up according to Trip Costs after be sent to user, So that user can not only go on a journey in such a way that walking adds public transport, additionally it is possible to select walking add ride plus public transport mode Trip, provides more choice for traveling for user.

In above-described embodiment one, embodiment two and embodiment three, the specific embodiment of same technique feature is not repeated It repeats, refers to the record of related embodiment, the specific implementation of same technique feature is suitable for any one embodiment.

Fig. 4 is referred to, is a kind of recommendation apparatus of trip mode provided in an embodiment of the present invention, the device and preceding method Embodiment one is corresponding, and described device includes:

Request receiving module 401, for receiving the trip request of user terminal transmission, the request at least carries user's Homeposition and destination locations;

Bus stop obtains module 402, for obtaining at least one bus stop on the homeposition periphery, the public affairs Station is handed over to have the bus that can reach the destination;

Trip Costs obtain module 403, for determining from the homeposition to the bus stop and taking the public affairs Hand over vehicle to the Trip Costs of the destination;

Trip mode recommending module 404, for sending the trip mode after sorting according to Trip Costs to the user terminal.

Further, the embodiment of the invention provides the recommendation apparatus of second of trip mode, the device and preceding method are real It is corresponding to apply example two, the difference with recommendation apparatus shown in Fig. 4 is:

Bus stop obtains module 402, specifically includes:

First bus acquiring unit is used in preset transit database, the first bus stop of search, and described first The distance of bus stop to the homeposition within the scope of preset distance threshold and has can reach the destination One bus.

Trip Costs obtain module 403, specifically include:

First time acquiring unit, for obtain the first duration of walking from the homeposition to the first bus stop and Reach the time of the first bus stop;

The first duration acquiring unit is travelled, for obtaining and reaching the in user based on the time for reaching the first bus stop After one bus stop, first bus drives to the first duration of traveling of the first bus stop;

First Trip Costs acquiring unit, for by it is described by the first duration of walking and traveling the first duration and value determine For the first Trip Costs from the homeposition to the first bus stop;

Second Trip Costs acquiring unit, for obtain take the first bus to the destination second trip at This;

Trip Costs first acquisition unit, for being determined as walking by first Trip Costs and the second Trip Costs and value The Trip Costs of row plus bus trip mode.

More preferably, the embodiment of the invention provides the recommendation apparatus of the third trip mode, the device and preceding method are real It is corresponding to apply example three, the difference of device corresponding with embodiment of the method two is that the device further comprises:

Shared bicycle obtains module, for getting the position of the nearest shared bicycle of the homeposition;

Distance of riding obtains module, for obtaining the walking second from the homeposition to the position of the shared bicycle Duration obtains the difference of maximum first Trip Costs and the second duration of walking, is ridden with the difference multiplied by preset Speed obtains distance of riding;

The Trip Costs obtain module 403, further comprise:

Second bus stop acquiring unit searches for the second bus stop in preset transit database, and described the The distance of two bus stops to the homeposition rides in distance range described and has can reach the destination Two buses;

Duration of riding acquiring unit is ridden to the second bus stop when riding for obtaining from the position of shared bicycle It is long;

Trip Costs second acquisition unit, for obtaining and reaching the second public transport based on the second duration of walking and duration of riding The time at station is obtained after user reaches the second bus stop, described second based on the time for reaching the second bus stop Bus drives to the second duration of traveling of the second bus stop, obtains the third for taking the second bus to the destination and goes out Row cost, by the second duration of walking, the second duration of traveling, duration of riding and third Trip Costs and value be determined as walking and add altogether Enjoy the Trip Costs that bicycle adds bus trip mode.

A kind of processor, the processor is for running program, wherein it is any real that the present invention is executed when described program is run The recommended method of the trip mode of example offer is provided.

For convenience of description, it is divided into various units when description system above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when invention.

All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.System and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.

Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.

The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:车辆导航系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!