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

So I got the result of Dijkstra as sequence of coordinates

lat_1,lon_1
lat_2,lon_2
....
....
lat_n,lon_n

where lat_1,lon_1 is the start point and lat_n,lon_n is the end point of the vehicle route. I need to display this path on real map. After adding node_id and description, I used GPSVisluazer website to create GPX file. I opened it in jpeg and Google Map and all show just set of points or markers with no connected lines between them. Now my question is: how to display the result of Dijkstra on OSM or at least having it as image? I checked rendering and routing sections in openstreetmap.org but there is nothing obvious.

asked 17 Jun '16, 12:50

xline's gravatar image

xline
11223
accept rate: 0%


If you have a gpx with waypoints and just want a straight line joining the points, you could use a text editor and replace the 'wpt' tags with 'trk' tags and then the points will be joined by a line when viewed in gpsvisualizer. I haven't tried this but it should be easy enough if you open an example of a gpx track to use as an example. I suspect you instead require a road route between the points, and if so, you can upload the gpx file of the waypoints to a site like www.gpsies.com and draw a route to each point.
Example of correct tags here http://wiki.openstreetmap.org/wiki/GPX

permanent link

answered 17 Jun '16, 17:10

nevw's gravatar image

nevw
9.8k2690178
accept rate: 9%

edited 17 Jun '16, 17:46

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:

×710
×59
×6

question asked: 17 Jun '16, 12:50

question was seen: 3,005 times

last updated: 17 Jun '16, 17:46

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