hoping someone can help me
I am trying to retrieve the exterior coordinates of the nearest building given a coordinate/geolocalization.
I can get all external coordinates of a building giving an address (code below) but I would need to retrieve same information, now giving a coordinate/geolocalization.
For example, I would need to get the external coordinates of the building located at this point with lat/long: 53.2588051, -2.124499.
import osmnx as ox
tesco = ox.geocode_to_gdf('Tesco, Exchange Street, SK11 6UZ, Macclesfield, Cheshire, GB')
polygon = tesco.iloc[0]['geometry']
polygon.exterior.coords
list(polygon.exterior.coords)
I tried using method "ox.pois_from_point" but I get error: AttributeError: module 'osmnx' has no attribute 'pois_from_point'
Many thanks in advance!