Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add driving directions (routing) #31

Open
zbycz opened this issue Jun 3, 2021 · 6 comments
Open

Add driving directions (routing) #31

zbycz opened this issue Jun 3, 2021 · 6 comments
Labels
Milestone

Comments

@zbycz
Copy link
Owner

zbycz commented Jun 3, 2021

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

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

@zbycz zbycz added this to the v2.0.0 milestone Jun 3, 2021
@zbycz zbycz added the new feature New feature or request label Jun 3, 2021
@zbycz zbycz added v2.0.0 and removed new feature New feature or request labels Jun 11, 2021
@Flohhhhh
Copy link
Contributor

Flohhhhh commented Jan 19, 2023

Related discussion #123

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

@kresp0
Copy link
Contributor

kresp0 commented Jan 19, 2023

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/

@zbycz
Copy link
Owner Author

zbycz commented Jan 20, 2023

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.

@kresp0
Copy link
Contributor

kresp0 commented Jan 21, 2023

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/

@zbycz
Copy link
Owner Author

zbycz commented Jan 29, 2023

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.

@karussell
Copy link

karussell commented Dec 28, 2023

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.

@zbycz zbycz changed the title Add driving directions Add driving directions (routing) Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants