Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,10 +146,8 @@ def get_health_professionals_and_map(location, query):
|
|
| 146 |
professionals = []
|
| 147 |
map_ = folium.Map(location=(lat, lng), zoom_start=13)
|
| 148 |
for place in places_result:
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
"Address": place.get('vicinity', 'No address provided')
|
| 152 |
-
})
|
| 153 |
folium.Marker(
|
| 154 |
location=[place["geometry"]["location"]["lat"], place["geometry"]["location"]["lng"]],
|
| 155 |
popup=f"{place['name']}"
|
|
|
|
| 146 |
professionals = []
|
| 147 |
map_ = folium.Map(location=(lat, lng), zoom_start=13)
|
| 148 |
for place in places_result:
|
| 149 |
+
# Change to append a list containing Name and Address
|
| 150 |
+
professionals.append([place['name'], place.get('vicinity', 'No address provided')])
|
|
|
|
|
|
|
| 151 |
folium.Marker(
|
| 152 |
location=[place["geometry"]["location"]["lat"], place["geometry"]["location"]["lng"]],
|
| 153 |
popup=f"{place['name']}"
|