chiara
chiara

Reputation: 1

How do I filter api geocode google maps?

How can I filter the result of geocode API with region or bounds parameters ?

Example with filter region:

https://maps.googleapis.com/maps/api/geocode/json?address=tokyo&region=it

Why return "Tokyo Japan" if I have filtered with parameter "region=it" (Italy) ?

Example with filter bounds with the coordinates of Italy (I think):

https://maps.googleapis.com/maps/api/geocode/json?address=tokyo&bounds=47.092,18.7975999%7C35.4897,6.6267201

Why return "Tokyo Japan"??

Upvotes: -2

Views: 729

Answers (1)

jabamataro
jabamataro

Reputation: 1232

The region parameter and bounds parameter is only a bias, not a restriction. Please check the Geocoding API documentation:

Upvotes: 0

Related Questions