NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi there, when I put how to get between two points and I insert it on my website, the route cannot be seen, I see the empty map without the route that I previously traced, can you help me?

This question is marked "community wiki".

asked 14 Oct '21, 14:13

edwinvalencia05's gravatar image

edwinvalencia05
1111
accept rate: 0%

converted to question 15 Oct '21, 19:52

TZorn's gravatar image

TZorn
12.3k764225


Hi.

AFAIK, you can't do that with openstreetmap.org.

It seems to be possible with facilmap, here is the doc to embed a custom map in your website.

Some routers might offer the same functionality, but I don't know.

Otherwise, you could just export the route as GPX, using the router of your choice, and then display that GPX on top of a map (there's a number of leaflet plugins to do just that).

Calling a routing service at each visit on your website for a route that never changes seems a bit overkill.

Regards.

permanent link

answered 17 Oct '21, 17:19

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×179
×33

question asked: 14 Oct '21, 14:13

question was seen: 2,111 times

last updated: 17 Oct '21, 17:19

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum