Hi, I want to pass some instructions on how to reach a certain place to friends. Several routes are available with advantages and disadvantages (like shortest route, fastest route, prettiest route, most fun route,...). A simple solution would be to download the map tiles and then use a graphic editor such as gimp and add a transparent colored line covering the routes I recommend. Then I can share the resulting image file and I have the desired effect. The problem is, that I need to repeat this task over and over if the map updates (at least if I want my map to be up to date as well) and people can't scroll or zoom. Next solution would be to create a little html/javascript page that uses OpenLayers. But then I need a gpx-trace for all the routes. Where get those from short of driving the entire routes again? After all OSM has all the traces. I played with JOSM a little to figure out whether I can export some roads as GPX, but I could only figure out how to export entire layers which is clearly to much. Does anyone know a tool for extracting GPX files for a certain route from OSM? I am open for other ideas as well. asked 14 Sep '11, 19:52 yankee aseerel4c26 ♦ |
You could get the whole layer into JOSM, select your route, then make an inverse selection so everything else is selected. Now go to EDIT->PURGE (do NOT DELETE instead) and export the result as GPX. Btw.: I doubt you would have to change your GIMP-overlay very often. Mostly the route overlay would not change when the map slightly changes (simply keep the layers separate and exchange the map underneath), but I agree that an openlayers overlay is nicer. answered 15 Sep '11, 23:04 dieterdreist 4
OK, well... That IS a lot of work! But it works! So here's the stuff in more detail:
(16 Sep '11, 12:25)
yankee
The old reply to a query may help in some way ... or not? Using josm right-click over the Downloaded GPX Data in the layers pane, then select Info - you'll see a table of tracks with some of them showing links in the URL column which you then can select and copy into your browser.
(10 Aug '14, 17:13)
nevw
|
I know the present OSM html renderer is tile-based, but from potlach for instance, could we print the webpage to a vectorial pdf? If yes then one then can reedit this with any serious vector drawing application (ie, capable to "eat" vector pdf), just highlighting the ways of interest and changing their draw attributes...
Another point: did you check all the open OSM-based routers around, which may offer you up-to-date pages with the right routing preset?
@Herve5: yournavigation.org partially does not place the overlay over the road for some reason, on maps.cloudmade.com the target road is not in so far (it's obviously not through the tile cache since parts a visible on some zoom levels, even though I added the road in April), I could not get roadee.net to calculate any route at all, MapQuest is ok, except for one road which involves a track (MapQuest refuses to use that track). Any more proposals?
Have you tried openrouteservice.org? To route over tracks, you would need to choose the Pedestrian or Bicycle Profile. Besides GPX download you could also simply send a "Route link".
Yankee, sorry for being away... Besides the ones already mentioned for routing you have http://www.gpsdrive.de/download.shtml (linux), http://navigatorfree.mapfactor.com/en/download/ nav gps turn-by-turn (windows) http://sourceforge.net/projects/travelingsales/ (java) http://wiki.openstreetmap.org/wiki/Navit (java?) http://we-travel.biz/wetravel/ http://wiki.openstreetmap.org/wiki/KDE_Marble