Skip to content

Instantly share code, notes, and snippets.

@SebastianoF
Last active April 24, 2022 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SebastianoF/f7db481c35237ea96d6537c9327d1666 to your computer and use it in GitHub Desktop.
Save SebastianoF/f7db481c35237ea96d6537c9327d1666 to your computer and use it in GitHub Desktop.
b001_06.py
osmnx.config(use_cache=True, log_console=True)
def gdf_concat(list_gdf: list):
return gpd.GeoDataFrame( pd.concat(list_gdf, ignore_index=True))
query_city = {'city': 'City of London'}
query_london = {'city': 'London'}
gdf = gdf_concat([osmnx.geocode_to_gdf(query_city), osmnx.geocode_to_gdf(query_london)])
gdf.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment