[Feature Request] Lookup by id (GoogleMapsProvider, Nominatim)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Xem xét interface của provider và các entry point của GoogleMapsProvider và NominatimProvider được nêu trong issue. So sánh các flow reverse lookup hiện có của chúng với các API lookup bằng ID của các provider, sau đó xác định những thay đổi cần thiết đối với interface và location/query; hoàn thành khi cả hai provider đều hỗ trợ lookup bằng ID đã lưu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PHP
- Star
- 4k
- Fork
- 525
- Merge trung bình
- 8 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của geocoder-php/Geocoder
-
Wrong LocationIQ Bounds Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
geocoder-php/Geocoder#1272 ·
-
question
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
geocoder-php/Geocoder#1267 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
geocoder-php/Geocoder#1266 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 38/100
geocoder-php/Geocoder#1244 · 2 bình luận · 2 reaction ·
-
Add Support for IPQuery Đang mởprovider
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
geocoder-php/Geocoder#1243 ·
Tất cả issue của geocoder-php/Geocoder
Issue tương tự
-
jira-created
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
nunomaduro/phpinsights#745 ·
-
status/awaiting_triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
WordPress/plugin-check#1486 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
az-digital/az_quickstart#6019 ·