I am using OSMPYTHONTOOLS and this code is returning null. I was told that it’s a server problem and not my problem, but I tested a different piece of code and there weren’t no issues.
from OSMPythonTools.nominatim import Nominatim
nominatim = Nominatim()
areaId = nominatim.query(‘Tehran, Iran’).areaId()
from OSMPythonTools.overpass import overpassQueryBuilder, Overpass
No heavy uses (an absolute maximum of 1 request per second).
Provide a valid HTTP Referer or User-Agent identifying the application (stock User-Agents as set by http libraries will not do).
Clearly display attribution as suitable for your medium.
Data is provided under the ODbL license which requires to share alike (although small extractions are likely to be covered by fair usage / fair dealing).