We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1035eed commit a531679Copy full SHA for a531679
functions-python/extract_location/src/reverse_geolocation/geocoded_location.py
@@ -1,4 +1,5 @@
1
import logging
2
+import os
3
from typing import Tuple, Optional, List
4
5
import requests
@@ -7,8 +8,7 @@
7
8
"https://nominatim.openstreetmap.org/reverse?format=json&zoom=13&addressdetails=1"
9
)
10
DEFAULT_HEADERS = {
- "User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) "
11
- "Chrome/126.0.0.0 Mobile Safari/537.36"
+ "User-Agent": os.getenv("USER_AGENT", "mobility-database"),
12
}
13
14
0 commit comments