[Feature Request] Lookup by id (GoogleMapsProvider, Nominatim)
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 30/100
Rechercherichtung
Überprüfe die Provider-Schnittstelle und die im Issue genannten Einstiegspunkte von GoogleMapsProvider und NominatimProvider. Vergleiche deren bestehende Reverse-Lookup-Abläufe mit den ID-Lookup-APIs der Provider und ermittle anschließend die erforderlichen Änderungen an der Schnittstelle sowie an Location/Query; als abgeschlossen gilt die Aufgabe, wenn beide Provider die Abfrage anhand einer gespeicherten ID unterstützen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
First of all, thanks for this great php package!
I have a feature request for getting address information by id instead of doing a full search again. I think many applications will store part of the geocoding response and eventually will re-fetch information for the stored part.
At the moment, with GoogleMapsProvider and NominatimProvider you can only do a reverse lookup by lat/lng or re-do the query. However both of the endpoints have a dedicated API for lookup (for google maps this even is the preferred way, because it will not count as a request as far as I know).
For OpenStreetMap it looks like this: https://nominatim.openstreetmap.org/lookup?osm_ids=NXXXXX.
It would be great if the providers would have a lookup method for this.
An even better solution would be to extend the provider Interface (or have a 2nd interface "LookupAwareProvider" with a lookup action or the GeocodeQuery object with an id property and maybe also the Location interface.
If a provider defines an id for a location, it could be used for a lookup call.
I know, that I can easily achieve this by creating my own provider, however, if this feature is interesting for you, we could discus an solution and I could provide a PR for this.
- Vorherrschende Sprache
- PHP
- Sterne
- 4k
- Forks
- 525
- Ø Merge
- 8 Min.
- Gemergte PRs (30 T.)
- 1
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus geocoder-php/Geocoder
-
Wrong LocationIQ Bounds Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
geocoder-php/Geocoder#1272 ·
-
question
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
geocoder-php/Geocoder#1267 · 2 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
geocoder-php/Geocoder#1266 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 38/100
geocoder-php/Geocoder#1244 · 2 Kommentare · 2 Reaktionen ·
-
Add Support for IPQuery Offenprovider
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
geocoder-php/Geocoder#1243 ·
Alle Issues in geocoder-php/Geocoder
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
getgrav/grav-plugin-api#45 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
phingofficial/phing#2025 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
silverstripe/developer-docs#911 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100