NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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?

permanent link

answered 16 Dec '20, 15:21

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483
×78

question asked: 16 Dec '20, 12:21

question was seen: 1,782 times

last updated: 16 Dec '20, 15:21

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum