This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Linking to OpenStreetMap powered routing from a website

0

I am creating a website about a small business and want to link to OSM powered routing to the company's location from the how-to-find us page.

Can I link to OpenStreetMap.org ? Which specific URL ?

Or do I have to use another OSM based service?

If there is a WordPress plugin for this, it's a plus.

I have found destination-linking here, German (https://forum.openstreetmap.org/viewtopic.php?id=15859) but it does not seem to work anymore.

asked 05 Jan '19, 14:41

AddisMap_Alexander's gravatar image

AddisMap_Ale...
1.1k314062
accept rate: 0%

edited 05 Jan '19, 14:45

1

Base on the answer by simonPoole I decided for Graphhoppe:

The following link leaves the "from" address empty and has a fixed destination:

https://graphhopper.com/maps/?point=&point=There&locale=de&vehicle=car&weighting=fastest&elevation=true&use_miles=false&layer=Omniscale

(07 Jan '19, 07:51) AddisMap_Ale...

Could you accept the answer in that case, thanks.

(07 Jan '19, 07:53) SimonPoole ♦

One Answer:

3

There are no routing services provided by the OSM / on openstreetmap.org All that can be used are simply linked to via the UI, you could for example use routing.openstreetmap.de which is based on OSRM and can be used similarly as the example you are quoting.

See https://wiki.openstreetmap.org/wiki/Open_Source_Routing_Machine and https://wiki.openstreetmap.org/wiki/Routing for more information.

answered 05 Jan '19, 18:11

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 05 Jan '19, 18:12

Source code available on GitHub .