Spaces:
Running
Running
Update src/modules/map_dashboard.py
Browse files
src/modules/map_dashboard.py
CHANGED
|
@@ -46,10 +46,11 @@ def geocode_addresses(df_clients):
|
|
| 46 |
st.write(f"🔄 Traitement: {client_id} - {address}")
|
| 47 |
|
| 48 |
try:
|
| 49 |
-
|
|
|
|
| 50 |
|
| 51 |
# IMPORTANT : Respecter le rate limit de Nominatim
|
| 52 |
-
time.sleep(1.5)
|
| 53 |
|
| 54 |
location = geolocator.geocode(search_query, timeout=10)
|
| 55 |
|
|
|
|
| 46 |
st.write(f"🔄 Traitement: {client_id} - {address}")
|
| 47 |
|
| 48 |
try:
|
| 49 |
+
# Ne plus forcer ", Sénégal" - laisser Nominatim détecter automatiquement
|
| 50 |
+
search_query = str(address)
|
| 51 |
|
| 52 |
# IMPORTANT : Respecter le rate limit de Nominatim
|
| 53 |
+
time.sleep(1.5)
|
| 54 |
|
| 55 |
location = geolocator.geocode(search_query, timeout=10)
|
| 56 |
|