Can I get 'way' information via OverpassAPI in offline

229 Views Asked by At

I know the following code works well to get the 'way' information via OverpassAPI(or overpy) library.

from OSMPythonTools.overpass import Overpass  
overpass = Overpass()
query = "way[highway](around:3,35.356309, 139.598544);(._;>;);out;"
result = overpass.query(query)

But I want to know whether I can get such information in offline environment or not.
I can prepare the planet.osm data from https://planet.openstreetmap.org/ in local.
How can I get 'way' information with planet.osm data in offline?
Thank you.

0

There are 0 best solutions below