westnordost / osmapi

Java client for the OSM API 0.6
GNU Lesser General Public License v3.0
97 stars 19 forks source link

Added exports to JTS, WKT and GeoJSON #19

Closed situx closed 5 years ago

situx commented 5 years ago

I added two libraries and a converter class to export OSM geometries as WKT and GeoJSON and to use them as JTS java objects. Also I added toString methods in the respective data classes. In my opinion a JSON export also of Users and Changesets could be interesting to implement. (is there a common format to do this?)

westnordost commented 5 years ago

One clue additionally. If you are just out for getting map data from the OSM API and converting it to JTS/GeoJSON, there are other libraries which do exactly that. See: https://wiki.openstreetmap.org/wiki/Osm4j https://wiki.openstreetmap.org/wiki/Osmosis

situx commented 5 years ago

Thank you for your comments and suggestions of which I can surely profit in further development. I was using your library because it was in my view one of the easiest to get access to the data I needed. If you have no interest in merging it then I will just leave my modified version in my Github and use it further.