modern-php icon indicating copy to clipboard operation
modern-php copied to clipboard

Update to willdurand/geocoder version 3.2

Open JaimeChavarriaga opened this issue 10 years ago • 0 comments

This is an update to the example of traits to support newer versions of willdurand/geocoder (+3.x).

The Geocoder API since 3.x use HTTP Adapters and returns a list of addresses instead of only one. In consequence, the modified example,

  • uses the egelon/ivory HTTP Adapter (included by default)
  • uses the ProviderAggregator
  • and obtains the results from the first address in the response.

JaimeChavarriaga avatar Oct 28 '15 13:10 JaimeChavarriaga