geocoder-php / Geocoder

The most featured Geocoder library written in PHP.
https://geocoder-php.org
MIT License
3.95k stars 519 forks source link

Added a callable to decide what provider that should be used. #731

Closed Nyholm closed 7 years ago

Nyholm commented 7 years ago

From https://github.com/geocoder-php/Geocoder/issues/727#issuecomment-312446873

One potential case for extending (or providing an alternative implementation of such aggregator) is such where you would have a certain logic to automatically select a provider based on your query. For example -> use geoip2 for valid IP address geocode() calls, use google maps for anything else. Given the popularity of the library, I think more options to extend the library are better.

Ping @ddinchev