mvexel / overpass-api-python-wrapper

Python bindings for the OpenStreetMap Overpass API
Apache License 2.0
359 stars 89 forks source link

Query for a road returns empty LineString coordinates. #117

Closed migvel closed 4 years ago

migvel commented 4 years ago

Hello,

I'm trying to know if this problem occurs in this module or in Overpass API, I get the information of a road by its name, the data returned is points and lines, the problem is that the LineString objects coordinates are empty, where do you think the problem is comming from? (I also posted in gis stack exchange in case comes from Overpass).

response = api.get('(node["name"="San Francisco – Oakland Bay Bridge"];way["name"="San Francisco – Oakland Bay Bridge"];relation["name"="San Francisco – Oakland Bay Bridge"];);out body;>;out skel qt;')

Thanks.

migvel commented 4 years ago

I checked and the element with type way comes with no coordinates, so looks the problem is in the O in my query and how Overpass handles the geometry of non node features.

https://stackoverflow.com/questions/25584423/overpass-api-ways-query-include-coordinates