I used in a PHP script to call the Nominativ API with file_get_contents. This worked excellently until 13.09.2017. I have tried CURL but no result or error returns.
}
Can anyone help me with a working solution? |
PHP's
For more information see the PHP user manual. answered 24 Sep '17, 15:58 lonvia |
Do you run the script within the https://operations.osmfoundation.org/policies/nominatim/ limits, e.g. Number of requests per second? I see the email parameter is a non-existing email. It's possible you got blocked. That would explain why it stopped working from one day to the next. answered 23 Sep '17, 08:48 mtmail 1
the email address has been changed for security reasons. If I'm blocked, I would get a corresponding HTML text. Unfortunately, the code runs on my development machine, but not on the server. In which direction do I have to see which parameters (CURL installation?) can have an effect?
(23 Sep '17, 11:22)
user_5359
|
I had a similar problem while acquiring coordinates for geocoding. I need to add also my email address to url. I combined info from this: link text and this: link text to get this:
answered 31 Jul '18, 01:21 Pablo |
Cool, thanks to lonvia here's a practical example to get around this nonsense with php. Using the browsers user_agent as a variable.
answered 02 Dec '18, 07:35 J0naz So you are re-using/faking the user's useragent for your server-side script to execute a nominatim query on the user's behalf? Not sure if that is a good idea with regards to complying with https://operations.osmfoundation.org/policies/nominatim/ . Do not be surprised if your access will be blocked at some point in time. I guess that setting a proper referer, custom user agent (your application's name) a contact email address would be a better way to go. Note that to get around that "nonsense" you are free (and very welcome) to set up your own nominatim service using our free data.
(02 Dec '18, 11:14)
aseerel4c26 ♦
|