geocoder-php / Geocoder

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

[Mapbox] Add support for the fuzzyMatch query parameter #1081

Closed DieterHolvoet closed 3 years ago

DieterHolvoet commented 3 years ago

Specify whether the Geocoding API should attempt approximate, as well as exact, matching when performing searches (true, default), or whether it should opt out of this behavior and only attempt exact matching (false). For example, the default setting might return Washington, DC for a query of wahsington, even though the query was misspelled.

https://docs.mapbox.com/api/search/#forward-geocoding

jbelien commented 3 years ago

Hello @DieterHolvoet,

We fixed these last few days the Style CI. Could you merge our master branch so the Style CI check passes ? Could you also add a test with the fuzzyMatch query parameter ?

Thanks.

DieterHolvoet commented 3 years ago

Done! Would you mind adding the hacktoberfest-accepted label to this pull request?

jbelien commented 3 years ago

Don't forget to add the cached response. Could you also add a test with fuzzyMatch to true ? Thanks.

DieterHolvoet commented 3 years ago

Done!