Good morning. I am a beginner of p.s.m. Firts I tried the following from the browser, and it worked and it still works: https://nominatim.openstreetmap.org/search?street=via+tolmezzo+15&postcode=20132&city=milano&county=MI&country_code=IT&format=json Then I tried with php, with the following instructions, both from my pc that from a server, but it always return an Error 403. I read that this happens when there is an abuse, but it happened me from the very first submissmion. Thank you. $data = array(
'street' => "via tolmezzo 15",
'postcode' => "20132",
'city' => "Milano",
'county' => "MI", asked 08 Jan '22, 20:19 enzovisk |
You are not following the Nominatim Usage policy, see here: https://operations.osmfoundation.org/policies/nominatim/ You'll have to be esp. careful about including a unique user agent for your application ;) answered 08 Jan '22, 21:00 Spiekerooger Thank you for your kind answer. I have read and I followed all these guidelines. It send me such response "error 43" since the first attempt, but all is right. Afterwards,I tried from different servers and different connections. I also tried with curl. But It always gives me that answer. Best regards. Vincent
(09 Jan '22, 09:57)
enzovisk
1
No, you did not follow the instructions as laid out by the usage policy. I've added another hint in my answer above.
(09 Jan '22, 10:13)
Spiekerooger
|
you should use an UserAgent var httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.UserAgent.ParseAdd("Mozilla/5.0 (compatible; AcmeInc/1.0)") answered 18 Jan, 09:17 Nawar327 |