Closed posiczko closed 5 years ago
Your expectation is reasonable, but not how the gem actually works. There are no fallback lookups, it just uses the one you configure (using :lookup
), with Nominatim as the default. There's been talk about using fallbacks (see #351) but it's quite complicated.
Multiple API providers were defined in the initializer per README:
Expected behavior
For non-cached lookups, expected result is the for the first available API which does not time out/error out to provide result.
Actual behavior
Result was provided by Nominatin:
Adding
lookup: :mapbox
to the configure does result in lookup by Mapbox.Maybe I'm misunderstanding something? Should configuration with multiple sources result in first available API to respond? Many thanks for your work!
Environment info