novalagung / muslimboard

🕌 Muslim Board Browser Extension
https://muslimboard.novalagung.com
MIT License
136 stars 27 forks source link

OpenStreetMap Reverse Geolocation API is deprecated #85

Closed novalagung closed 1 day ago

novalagung commented 3 weeks ago

The reverse geolocation API is deprecated https://nominatim.org/release-docs/latest/api/Reverse/ Need to replace it with AddressLookup instead https://nominatim.org/release-docs/latest/api/Lookup/

FerdinaKusumah commented 5 days ago

Hi @novalagung just read the documentation about lookup api, it needs to pass osm_ids as param. Not sure if it can pass lat and long.

After searching i got another solution that is using search api first. then get the osm_ids to get the detail information using lookup api

Example may like this:

  1. Call this search api and get the osm_ids
  2. Call this lookup api to get the equal response reverse api by using lookup api

What do you think for this solutions ?

[Revision] I'm sorry After reading carefully we only need to add more param to get response slightly same as reverse api with param addressdetails take a look this api

novalagung commented 1 day ago

thanks @FerdinaKusumah