8000 [GoogleMaps] Filters GoogleMaps results with components by gilles-g · Pull Request #1154 · geocoder-php/Geocoder · GitHub
[go: up one dir, main page]

Skip to content

[GoogleMaps] Filters GoogleMaps results with components #1154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feedback 1
  • Loading branch information
gilles-g committed May 30, 2022
commit 829a2d68d56826987f129146037007739534dc98
4 changes: 2 additions & 2 deletions src/Provider/GoogleMapsPlaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ $results = $provider->geocodeQuery(
);
```

matches a country name or a two letter ISO 3166-1 country code. If you only use the "region" parameter, you will not be guaranteed to have results on the region, as the documentation indicates [Region](https://developers.google.com/maps/documentation/javascript/geocoding#GeocodingRequests):
country matches a country name or a two letter ISO 3166-1 country code. If you only use the "region" parameter, you will not be guaranteed to have results on the region, as the documentation indicates [Region](https://developers.google.com/maps/documentation/javascript/geocoding#GeocodingRequests):

> The region parameter will only influence, not fully restrict, results from the geocoder.

```php
$results = $provider->geocodeQuery(
GeocodeQuery::create('montpe')
GeocodeQuery::create('montpellier')
->withData('components', 'country:FR');
);
```
Expand Down
0