I agree, I'm a big OSM fan so I personally really like to see osm being used for routing. They're already using Mapbox for various things, so it's probably the quickest to implement for routing. Not sure how well their routing is, but yeah.
@damian in the meantime, could we also have maybe a button to open openstreetmap.org for directions?
(this issue shouldn't be closed when that button gets added tbc)
This is the url schema with an example:
https://www.openstreetmap.org/directions?route=51.0415876%2C3.3978175%3B51.0004346%2C3.3271187
Looking at this OpenStreetMap URL step-by-step:
Base URL
https://www.openstreetmap.org/directions - OpenStreetMap's routing/directions service
Query Parameters
Routing Engine (optional, not included in this example, defaults to this anyway)
engine=fossgis_osrm_car - Uses FOSSGIS OSRM routing engine optimized for car routes
Route Coordinates
route=51.0415876%2C3.3978175%3B51.0004346%2C3.3271187
Decoded coordinates:
- Start point:
51.0415876,3.3978175 (latitude, longitude)
- End point:
51.0004346,3.3271187 (latitude, longitude)
- Separator:
%3B (URL-encoded semicolon ;)
- Coordinate separator:
%2C (URL-encoded comma ,)