zbycz / osmapp

Lets make a universal app for OpenStreetMap

Home Page:https://osmapp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add driving directions (routing)

zbycz opened this issue · comments

Consider using OSRM https://project-osrm.org/

Consider porting routing code from our friendly project cartes.app https://github.com/laem/cartes

commented

Related discussion #123

Also: Possible option https://github.com/Valhalla/valhalla

The link for the OSRM should be: https://project-osrm.org/

I would also consider OTP (OpenTripPlanner), as it is a multimodal planner that includes public transport (GTFS support), bicycle sharing and more, in addition to the traditional modes. https://www.opentripplanner.org/

I havent check the api limits yet, but i guess both could be fine. I liked the speed of the osrm, as well as possibility to add middle points. Do you ever use opentripplanner for intermodal directions and trust it? I tend to use other (non-free) services.

Yes, I do use intermodal OTP but just for bicycle/walk/bike sharing on my site bici.madrid and the results very good. Right click anywhere on the map and click "Ruta desde aquí" and "Ruta desde aquí" to choose the start end points. Then you can move those points to see how fast it recalculates.

It is the only option here in Madrid to plan a bike sharing trip and to calculate routes to the nearest bicycle parking to the destination (including the walking part from the bicycle parking to the final destination). I provided a digital elevation model, so OTP takes in account the slopes. And it allows the user to choose a point inside a triangle where each vertex represents "bike friendly", "fast" and "avoid slopes".

Some lovely feature is that it sometimes offer walk-your-bike shortcuts when on a bicycle route (Ex: it may suggest crossing a zebra crossing as a pedestrian, to save some minutes).

Unfortunately OTP don't support adding middle points. And there is no public world-wide API for OTP as far as I know, so it would have to be built along OsmAPP.

For public transport I believe OTP is (one of?) the best public transport route planner. It is used nationwide for PT routing for Norway and Finland, operated by their Transport Authorities. Check out some of the public deployments, there are quite a few cities and regions in Europe and the US that have chosen OTP for their official route planners. And most look way better than the included OTP demo that my site uses:
https://docs.opentripplanner.org/en/dev-2.x/Deployments/

Impresive work with bici.madrid. I like the little things like saving up time with walking your bike. I do something similar here in Prague, there is one shortcut using stairs which saves you 5 minutes uphill in high traffic :)

btw, in Prague we also have some bike planner with options on mapa.prahounakole.cz - didnt check if it's intermodal. But i know they use OSM data as well.

I definitelly support and welcome the idea to prepare world wide intermodal API for OsmAPP, but let's say it is not on a shortlist 😅 eg. I use only free APIs so far..

I suppose we could add OSRM first, and then iterate and perhaps allow user-chosen routers later, eg. based on city where you explore, etc. similar to community-index sources.

commented

POI search with directions combined is what I still miss from the official osm website and also from our GraphHopper Maps app. I really like what you have achieved so far. Let me know if also GraphHopper (or our API) is an option for driving directions for you (we can offer this for free if not high traffic :) ).

Even in-browser turn-by-turn GPS navigation is possible.