Find restaurants near a business hub for site suitability in Chicago

Find restaurants near a business hub for site suitability in Chicago#

[1]:
from pyplaces import overture_maps as om
import folium
[ ]:
# Get all restaurants in the Near West Side
gdf_food = om.overture_places_from_place("Near West Side, Chicago, IL",filters="categories.primary IN restaurant")

# Filter buildings by height
gdf_buildings = om.overture_buildings_from_place(
    address="Near West Side, Chicago, IL",
    filters="num_floors >= 5"
)

# put primary name of place into "name"
gdf_food["name"] = gdf_food["names"].apply(lambda x: x["primary"])
[10]:
gdf_food.head(5)
[10]:
id geometry bbox version sources names categories confidence websites socials emails phones brand addresses name
3 08f2664cab32432a039d3a31a79f59d7 POINT (-87.68687 41.86291) {'xmin': -87.68687438964844, 'xmax': -87.68685... 0 [{'property': '', 'dataset': 'meta', 'record_i... {'primary': 'El Ideas', 'common': None, 'rules... {'primary': 'american_restaurant', 'alternate'... 0.978172 [http://www.elideas.com/] [https://www.facebook.com/209428082411028] None [+13122268144] None [{'freeform': '2419 W 14th St', 'locality': 'C... El Ideas
4 08f2664caba812d4031aedbaee003b01 POINT (-87.68645 41.86409) {'xmin': -87.68645477294922, 'xmax': -87.68643... 0 [{'property': '', 'dataset': 'meta', 'record_i... {'primary': 'Burger King', 'common': None, 'ru... {'primary': 'fast_food_restaurant', 'alternate... 0.994980 [https://burgerking.com/store-locator/store/re... [https://www.facebook.com/895628703864497] None [+13122435293] {'wikidata': None, 'names': {'primary': 'Burge... [{'freeform': '2401 W Ogden Ave', 'locality': ... Burger King
5 08f2664caba3274c03df8f43e1d7c6d3 POINT (-87.68414 41.86549) {'xmin': -87.68415069580078, 'xmax': -87.68414... 0 [{'property': '', 'dataset': 'meta', 'record_i... {'primary': 'McDonald's', 'common': None, 'rul... {'primary': 'fast_food_restaurant', 'alternate... 0.994980 [https://www.mcdonalds.com/us/en-us/location/i... [https://www.facebook.com/372215050276943] None [+13127337712] {'wikidata': None, 'names': {'primary': 'McDon... [{'freeform': '2315 W Ogden Ave', 'locality': ... McDonald's
6 08f2664cabb9c14d030d1bee6d321c3f POINT (-87.68631 41.86711) {'xmin': -87.68630981445312, 'xmax': -87.68629... 0 [{'property': '', 'dataset': 'meta', 'record_i... {'primary': 'KFC', 'common': None, 'rules': None} {'primary': 'fast_food_restaurant', 'alternate... 0.994980 [https://locations.kfc.com/il/chicago/1144-s-w... [https://www.facebook.com/176694659151249] None [+13126009353] {'wikidata': None, 'names': {'primary': 'KFC',... [{'freeform': '1144 S Western Ave', 'locality'... KFC
7 08f2664cabb8840503bf06ffa2d6f115 POINT (-87.6852 41.86647) {'xmin': -87.6852035522461, 'xmax': -87.685195... 0 [{'property': '', 'dataset': 'meta', 'record_i... {'primary': 'The Dopest Bar and Grill', 'commo... {'primary': 'bar_and_grill_restaurant', 'alter... 0.978172 [http://www.thedopestbar.com] [https://www.facebook.com/104856918532349] None [+13122919297] None [{'freeform': '2343 W Roosevelt Rd', 'locality... The Dopest Bar and Grill
[11]:
gdf_food[["id","geometry",'name']].head(1)
[11]:
id geometry name
3 08f2664cab32432a039d3a31a79f59d7 POINT (-87.68687 41.86291) El Ideas
[12]:
gdf_buildings[["id","subtype","geometry"]].head(1)
[12]:
id subtype geometry
1 08b2664caba0cfff0200e24d7de9b351 None POLYGON ((-87.6822 41.86477, -87.68219 41.8644...
[8]:
m = plot_geodataframes([gdf_food[["id","geometry",'name']],gdf_buildings[["id","subtype","geometry"]],],popup_columns=["name","subtype"])
m
[8]:
Make this Notebook Trusted to load map: File -> Trust Notebook