This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

We tried to resolve the data but some nodes are still missing

0

I am trying to get the lat and long of all nodes of a way. Here is the query :

import overpy api = overpy.Overpass() result = api.query("""way["name"="New York"];out;""") result.ways

for way in result.ways: for node in way.nodes: n_id = node.id n_id_lat = node.lat n_id_lon = node.lon

The error occurs when I loop each way:

This is the error I get : We tried to resolve the data but some nodes are still missing DataIncomplete: ('Data incomplete try to improve the query to resolve the missing data', 'Resolve missing nodes is disabled')

How could I manage it, any hints will be welcome.
Thanks.

asked 16 Dec '20, 12:21

Dykay's gravatar image

Dykay
36337
accept rate: 0%


One Answer:

0

out; on its own doesn't return co-ordinates, try out geom;

There are only 66 way with that name in the world; you may have defined your search area to one which doesn't include such an entity?

answered 16 Dec '20, 15:21

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%