API request question #3568
Unanswered
ilovemypinktutu
asked this question in
Q&A
Replies: 1 comment
-
Set a user agent identifying your application "stock User-Agents as set by http libraries will not do" https://operations.osmfoundation.org/policies/nominatim/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I need to convert about 3,000 addresses into lat and lon. I was testing API search request using python for maybe 3 to 5 times manually. Soon, I got a message that my access is forbidden with response 403. I read the usage policy and I don't think I violated anything -- I didn't automate anything, all my requests were at least a couple of minutes apart, and the total number of queries doesn't exceed 5. Can someone correct me what I'm doing wrong and how to gain access again?
Here's what the request I made in python.
url = 'https://nominatim.openstreetmap.org/search?q=1626+Oak+Street+La+Crosse,+WI+54602'
r = re.get(url)
Thanks a lot!
Bo
Beta Was this translation helpful? Give feedback.
All reactions