Yes, I am using python. I wrote use this code below and it is working fine for me.
import overpy
import json
from copy import deepcopy
import haversine as hs
import math
api = overpy.Overpass()
#generate an intended map boundary for a given coordinates
result = api.query (f'way(around:100,49.8974309,-97.2033944 )["highway"="footway"];(._;>;);out geom;')
where,
radius=100m
latitude =49.8974309
longitude=-97.2033944
But now, i do not want to use radius again, rather i want to use four coordinates like a rectangular bounding box to query osm for highway (e.g. footway in particular, in the specified area) using python.
asked
17 Feb '22, 16:08
Segunlakata
16●13●13●16
accept rate:
0%