Open baoqger opened 5 years ago
I'm not a developer on the project, but the usage should be .osm (xml) file as input, and .geojson as output. If you input a .geojson, then I expect an empty output like you show.
Not really sure but having the same problem, it seems that if there is no node element with the way, conversion will not work.
Specifying out geom;
for the output appears to help.
Use [out:xml]
not [out:json]
in Overpass - your input is in wrong format (and no, it is not Geojson either)
I send the following request to Overpass API: http://overpass-api.de/api/interpreter?data=[out:json];way(50.7460,7.170,50.7461,7.171);out; and get the following OSM data in JSON format:
And then the npm osmtogeojson package failed to output the featurecollection, instead, I only get an empty list as following:
So what's the problem here? My usage is wrong or the tool miss this function?