I recently wondered if there’s a possibility of getting all nodes and ways of an area or tile via entering a specific url like “www.opengeofiction.net/api/0.6/gettiles/{zoom}/{x}/{y}” The resulting data output format should be xml, e.g. Way 24084 (www.opengeofiction.net/api/0.6/way/24084)
I have no knowledge of servers and all the stuff around it, so maybe someone can help me?
I am grateful for every answer. Bstn
Discussion
Comment from wangi on 2 April 2016 at 09:47
Sure, using the API; see: osm.wiki/API_v0.6
Another approach is to take the nightly backup and use osmconvert to cut it down to a smaller area, constrained by a lat:lon bounding box.
Comment from Luciano on 2 April 2016 at 10:22
I’m not sure what exactly you’re asking.
In JOSM, it’s quite easy to download from a URL. Here’s a very brief documentation with screenshot.
http://opengeofiction.net/wiki/index.php/User:Luciano/Sandbox/Help/Download_URL_from_JOSM
Comment from Bstn on 2 April 2016 at 10:42
The problem is, that I am programming with Java from scratch, so without JOSM or other software. So, the easiest possibility is to download the required data via internet, but I haven’t found a possibility yet which works. Thank you for your tips. -Bstn
Comment from Luciano on 2 April 2016 at 11:09
Hm… an api invocation like:
opengeofiction.net/api/0.6/map?bbox=left,bottom,right,top
gives you a .osm file. Could that work for you?
Comment from Bstn on 2 April 2016 at 15:42
Worked perfectly. Thank you!