This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to conver downloaded element of map( .xml) in kml or any other format appropriate for google?

0

I went to the link https://www.openstreetmap.org/relation/3198047#map=6/21.384/97.027&layers=T then at the end of members list, I have pressed "Download XML". I have tried to covert downloaded file by https://mygeodata.cloud/converter/ it didn't help.

asked 11 Sep '19, 10:57

Dizzymezz's gravatar image

Dizzymezz
11112
accept rate: 0%


2 Answers:

2

The "Download XML" link mentioned in the question just gives the relation members (ways), and not their member nodes so there will be no latitudes and longitudes. I think you can add /full on the end, but wouldn't recommend it for this rather long relation due to the load on the API. See perhaps instead this question:

https://help.openstreetmap.org/questions/23679/how-to-export-a-route-relation-as-gpx-or-kml

The accepted answer there is to use Overpass Turbo, like this:

http://overpass-turbo.eu/s/Meo

Run the query, then choose an export option.

answered 11 Sep '19, 15:49

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

0

answered 11 Sep '19, 14:44

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

edited 11 Sep '19, 14:44

Source code available on GitHub .