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 all commits
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
11 changes: 11 additions & 0 deletions src/Provider/GoogleMapsPlaces/README.md
4A95
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ $results = $provider->geocodeQuery(
);
```

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('montpellier')
->withData('components', 'country:FR');
);
```

### Reverse Geocoding
Three options available for reverse geocoding of latlon coordinates:

Expand Down
0