I just want to convert osm
data to geojson
where it is pretty simple with node and way tags of osm
data, but relation which is giving complex can't find the logic to convert osm
relation to geojson
format especially how to form coordinates parameter of geojson
based on their roles (ex. Inner
, outer
, admin_centre
, riverbank
, side_stream
, main_stream
, from
, via
, to
, forward
, backward
, stop_entry_only
, stop_exit_only
, and platform_exit_only
).
As simple, how to form relation member's latitude and longitude in coordinates parameter of geojson
.
I have tried many documentation but no logics or code found in java and python.
In python: https://pypi.org/project/osm2geojson/
OSM Official: https://wiki.openstreetmap.org
geojson Official: https://geojson.org/
Sample data: https://download.geofabrik.de/asia/maldives-latest.osm.bz2
https://download.geofabrik.de/asia/bhutan-latest.osm.pbf
But no luck
I have tried in java and python but reason is I could not find the logic behind the conversion of the relation tags from osm to geojson
I am expecting the logic behind the conversion of the relation tags from osm
to geojson
and sample code for that.