PlainStreetEdges in routing result (UI)

45 views
Skip to first unread message

nfn

unread,
May 19, 2013, 7:01:49 AM5/19/13
to opentripp...@googlegroups.com
Hey all,

I want to build a routing system (only for cyclists) to Lisbon with OpenTripPlanner. I need to allow that users rate the segments (PlainStreetEdges) of an itinerary so the system will learn with users experiences.

I have to create an external application (I'm implementing a new front-end with Leaflet) for receive user feedback an put it in a database.. Then, ratings are imported to Graph.obj as a service and used in transverse method. I can regenerate a new graph every day/week. However,  I still don't know how can use this values in the transverse method. :(

My second problem is the current opentripplanner api doesn't provide the PlainStreetsEdges that have been used in a routing result and I need to identify these segments in UI. :(

Can anyone give me some opinions in how to start with this?

Thanks,
nfn

Stefan de Konink

unread,
May 19, 2013, 7:04:46 AM5/19/13
to nfn, opentripp...@googlegroups.com
On Sun, 19 May 2013, nfn wrote:

> I want to build a routing system (only for cyclists) to Lisbon with
> OpenTripPlanner. I need to allow that users rate the segments
> (PlainStreetEdges) of an itinerary so the system will learn with users
> experiences.

Is there a reason you don't want to go for any of the more common street
planners?


Stefan

nfn

unread,
May 20, 2013, 9:56:54 AM5/20/13
to opentripp...@googlegroups.com, nfn
What routing planner do you suggest, then?

I think that OTP is the only planner which provides routing for cyclists with an excellent and active community.
I got this idea when I was doing research.

Stefan de Konink

unread,
May 20, 2013, 10:33:54 AM5/20/13
to nfn, opentripp...@googlegroups.com
On Mon, 20 May 2013, nfn wrote:

> What routing planner do you suggest, then?
>
> I think that OTP is the only planner which provides routing for cyclists
> with an excellent and active community.
> I got this idea when I was doing research.

<http://wiki.openstreetmap.org/wiki/Gosmore>

<http://wiki.openstreetmap.org/wiki/Routing/online_routers>


Stefan

nfn

unread,
May 20, 2013, 4:39:46 PM5/20/13
to opentripp...@googlegroups.com, nfn
I saw this list of planners before. I chose OpenTripPlanner.. The majority of other systems have an inactive development community.
I've already started with OpenTripPlanner and I don't want to change to another system..

Why do you suggest me another planner? Is it hard to implement what I've said before?

Stefan de Konink

unread,
May 20, 2013, 4:50:52 PM5/20/13
to nfn, opentripp...@googlegroups.com
On Mon, 20 May 2013, nfn wrote:

> Why do you suggest me another planner? Is it hard to implement what I've
> said before?

Probably OpenTripPlanner supports (technically) what you want, the
question is: is about choosing the right tool for the job?

The current development/support focus is on transit planning, that is a
great leap from a streetnetwork planner which is a subproject.

Stefan

Andrew Byrd

unread,
May 20, 2013, 5:19:48 PM5/20/13
to opentripp...@googlegroups.com
A lot of our effort is concentrated on public transit routing, but many
people use OTP primarily as a bicycle planner. Contributers in Portland
spent quite some time tuning the interpretation of OSM tags to give good
bicycle routes. Other developers are currently working on making OTP a
viable planner for motorized vehicles.

So street modes (especially walking and bicycling) are part of OTP's
scope, and I wouldn't say OTP is particularly specialized in transit. We
did however decide to emphasize flexibility over speed in on-street
routing. There is a trade-off between personalized street preferences or
custom edge types and extremely fast pre-computation based algorithms
like contraction hierarchies. This is a trade-off between specialized
complexity and a more open system.

No, OTP is not optimized for giving driving directions instantaneously
over continental distances. It instead targets flexible multi-modal
itineraries at the regional scale, handling schedule-based transit modes
alongside on-street modes. On that basis, I'd say OTP is an good option
for this project. What you are describing could certainly be implemented
with OpenTripPlanner.

-Andrew

nfn

unread,
May 21, 2013, 6:23:49 PM5/21/13
to opentripp...@googlegroups.com
Thanks a lot. Good to hear this might be feasible with OpenTripPlanner. =)
 
Can anyone give me some opinions in how to start with this (provide PlainStreetsEdges that have been used in a routing result)?

If any main developers (mainly who worked with opentripplanner-api and routing modules)  are reading this, I'd be grateful for any help.

Thanks,
Nelson

nfn

unread,
Jun 8, 2013, 7:01:41 AM6/8/13
to opentripp...@googlegroups.com
I already changed a bit the OTP API to provide all the real plainstreetedges that have been used in a routing result.

I decided that users can rate the plainstreetedges with safety (0 - 4) and flatness (0 - 4) factors. I hope this make sense.
In Portugal, we don't have a free database to provide elevation data.
So, I think that users ratings can help a lot to provide flat routes..

I still don't know how can use this users ratings in the transverse method. When I plan a bike trip I choose the
value of three factors (quick, flatness and safety). I think these values contribute to estimate the weight of an edge.
However, I don't know where these values are used in the code..

Can anyone help me with this?

By the way, will the flatness factor be used in the routing algorithm if I don't import the elevation
data?

Thanks in advance,
Nelson
Reply all
Reply to author
Forward
0 new messages