mocnik-science / osm-python-tools

A library to access OpenStreetMap related services
GNU General Public License v3.0
441 stars 48 forks source link

Make User-Agent string customizable. #36

Closed Simon-Will closed 3 years ago

Simon-Will commented 3 years ago

I’m using your OSMPythonTools for a project of mine (currently at https://nlmaps.gorgor.de/, still WIP) and I’m very happy with it! Thanks a lot for making it!

Specifically, I’m using it for querying Overpass and Nominatim. And having read Nominatim’s usage policy, I think that I should use my application’s name as the User-Agent string.

Therefore, I suggest making the User-Agent string customizable. It’s a trivial change and I’m going to submit a pull request for it in a minute.