custom-components / places

Component to integrate with OpenStreetMap Reverse Geocode (places)
GNU General Public License v3.0
110 stars 22 forks source link

Do not use Nominatim details API #246

Closed lonvia closed 9 months ago

lonvia commented 9 months ago

You make automated use of the /details endpoint of Nominatim here: https://github.com/custom-components/places/blob/95ca1e20f3db844dd18a86add972a23579d5b7b8/custom_components/places/sensor.py#L1782

Please note that this is not permitted as per usage policy. Your usage is currently low enough that the server can cope but there is no guarantee that you won't get banned without notice in the future.

Have a look at the lookup endpoint. When used with addressdetails=1, extratags=1 and namedetails=1, it should get you all the details you could possibly need for a given OSM object. The one thing missing is the hierarchy information but this is unreliable anyway and will be removed soon. If you need something like "all street names in this town", you should have a look at Overpass API.

Snuffy2 commented 9 months ago

Thank you for letting me know. I'll get places transitioned from details to lookup.