I have updated the example URLs from above to only require start lat/lon and
end lat/lon values as well as a profile.
* Valhalla:
`https://valhalla.openstreetmap.de/directions?profile=pedestrian&wps=120.8635823%2C24.1893169%2C120.8648163%2C24.1825192`
* OSRM:
`https://routing.openstreetmap.de/?loc=24.189317%2C120.863582&loc=24.182519%2C120.864816&srv=2`
* GraphHopper:
`https://graphhopper.com/maps/?point=24.18978%2C120.86377&point=24.18252%2C120.86482&profile=foot`
For the profile values, I'd suggest the following mapping table:
| Car | Bicycle | Foot
-- | -- | -- | --
Valhalla | car | bicycle | pedestrian
OSRM | 0 | 1 | 2
GraphHopper | car | bike | foot
OSRM (FOSSGIS) is a bit special, since the values appear to be derived from the
sequence in
https://github.com/fossgis-routing-server/cbf-routing-profiles/blob/master/profiles.conf.example#L2
... the profile values are valid for the FOSSGIS instance only.
I think that's probably all we need to generate URLs similar to Nominatim.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5224#issuecomment-2365144537
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/issues/5224/2365144...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev