0

I want to get the data for a relation from the overpass turbo API, convert it to GeoJSON and get the LineString. What script/library should I use? I am using the query below to get the data.

[out:json][timeout:300];
(
relation(19763);
 <;
);
out geom;

I have tried using osmtogejosn.js but it doesn't return the same result as the overpass-turbo.eu export function.

Dimitar
  • 18
  • 1
  • 4
  • OSM data consists of three basic [elements](https://wiki.openstreetmap.org/wiki/Elements) (nodes, ways and relations) and [tags](https://wiki.openstreetmap.org/wiki/Tag). There are no LineStrings or MultiLineStrings in OSM, so you must be talking about a specific library or application. – scai May 14 '20 at 06:28
  • I meant GeoJSON. I have clarified the question. – Dimitar May 14 '20 at 07:08
  • Weird that you get a different output. overpass-turbo uses https://github.com/tyrasd/osmtogeojson as far as I know. – scai May 14 '20 at 08:58

0 Answers0