Skip to content

Commit a531679

Browse files
authored
hotfix: location extraction nomatium header block (#917)
1 parent 1035eed commit a531679

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions-python/extract_location/src/reverse_geolocation/geocoded_location.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import os
23
from typing import Tuple, Optional, List
34

45
import requests
@@ -7,8 +8,7 @@
78
"https://nominatim.openstreetmap.org/reverse?format=json&zoom=13&addressdetails=1"
89
)
910
DEFAULT_HEADERS = {
10-
"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"
11+
"User-Agent": os.getenv("USER_AGENT", "mobility-database"),
1212
}
1313

1414

0 commit comments

Comments
 (0)