I would like to get the way information for https://www.openstreetmap.org/way/300589944 and another way with the python osmapi library.
This is my source code so far (3600148838 is the area id for "United States"):
import overpy
import osmapi
api = osmapi.OsmApi(api="https://api.openstreetmap.org/api", username = "me", password = "*")
api = overpy.Overpass()
result = api.query("""
area(3600148838)->.searchArea;
(
way["addr"](area.searchArea);
);
out body;
""")
for way in result.ways:
print(api.WayGet(way))
I'm getting (overpy.Way id=300589944 nodes=[3046663136, 3046663138, 3046663129, 3046663123, 3046663136])
in Python. How can I extract just the way from the overpy.Way class?
asked
12 Feb '19, 03:31
norcross
26●3●3●5
accept rate:
0%
No responses so far?
Impatient much?
You might get more responses if you provide more detail about what you're trying to do. Exactly what "way information" are you looking to get and what will you be doing with the result? How does an address search of the entire US relate to your first sentence about retrieving information about a specific way? Why are you connecting to the OSM editing API and then querying the Overpass API?