Geocoder icon indicating copy to clipboard operation
Geocoder copied to clipboard

Same data attributes for different provider in chain providers

Open sudent opened this issue 5 years ago • 0 comments

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, locality etc. 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!

sudent avatar Sep 13 '20 11:09 sudent