geocoder-php / Geocoder

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

Same data attributes for different provider in chain providers #1080

Open sudent opened 3 years ago

sudent commented 3 years ago

Hello,

I'm not sure if anyone have encountered this. If I want to use the chain provider with Mapbox and Google Maps provider to do reverse geocode, I can't specify location_type data attributes with the query because it will mean differently to each provider (ie. valid location_type for Mapbox is poi, place, localityetc. but for Google Maps valid values were eg. ROOFTOP, RANGE_INTERPOLATED etc.

We can call each provider individually to work around this, but I'm wondering if there's built-in handler within the chain provider itself?

Thanks!