Hi! It-it possible to draw an itinerary (for example between two cities), with polylines folowing automatiquely the curves on the roads? This itinerary is due to be be exported to GPS format. Thank you.

asked 25 Mar '15, 09:47

achat2015's gravatar image

achat2015
11112
accept rate: 0%

edited 06 Apr '17, 07:10

aseerel4c26's gravatar image

aseerel4c26 ♦
32.1k16239551


I'm not sure what you mean. The routing certainly follows the road contours http://www.openstreetmap.org/directions?engine=osrm_car&route=-34.8217%2C140.7287%3B-34.4873%2C140.6614#map=11/-34.6431/140.6549

Do you mean to export a map only dislaying the route plus nearby roads within 200 metres of the track or similar.

or do you just want to export the displayed route (using the osm routing link) to a .gpx file to load into a GPS receiver like a garmin. If this is what you require, select 'Directions courtesy of OSRM' at the bottom of the 'Directions' section and the OSRM site will offer a download of a .gpx file if you re-enter the start and end locations in that routing page.

permanent link

answered 25 Mar '15, 11:00

nevw's gravatar image

nevw
8.5k2584152
accept rate: 9%

edited 25 Mar '15, 12:38

2

Ok! Thank's, the routing is that I wanted. I'll export only the track to my Garmin, not a buffer. I'll try to built my europeen itinerary of 1500 km. Thank you again.

(25 Mar '15, 13:59) achat2015
1

then also have a look at

http://map.project-osrm.org

http://www.openrouteservice.org

https://graphhopper.com/maps

or http://wiki.openstreetmap.org/wiki/Routing/online_routers in general to see services that can export a calculated route as GPX.

(25 Mar '15, 17:52) stephan75

It is possible, this is what GPSies.com allows you to do. I'm not sure whether they use OpenStreetMap data for the underlying roads. So you can develop a similar service if you wish.

It is not possible on OpenStreetMap.org.

permanent link

answered 25 Mar '15, 11:21

escada's gravatar image

escada
17.9k16155284
accept rate: 21%

You can use OSRM to get each steps on the route.

GET http://router.project-osrm.org/route/v1/driving/-0.8854,52.1985;-2.27117,51.0349?geometries=geojson&steps=true

Here, make sure steps=true.

If draw all the coordinates in legs.steps.geometry.coordinates, you will get what you want.

permanent link

answered 06 Apr '17, 06:39

opturion-cy's gravatar image

opturion-cy
1
accept rate: 0%

how is that related to the original question? I cannot see anything about steps there.

(06 Apr '17, 07:09) aseerel4c26 ♦
Your answer
toggle preview

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:

×255
×224
×11
×7

question asked: 25 Mar '15, 09:47

question was seen: 4,111 times

last updated: 06 Apr '17, 07:10

powered by OSQA