I need to query google maps to find information about a postal code. I need to know where in the world this postal code can be found. For exemple, if i want information about the postal code 75001, i expect to receive at least these results:
- Addison, TX 75001, USA
- 75001 Paris, France
If i query google maps by specifying the country code, we can cleary see that the postal code exist in the USA and in France:
- https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:75001|country:US&sensor=false will return Addison, TX 75001, USA
- https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:75001|country:FR&sensor=false will return 75001 Paris, France
If i query google maps by omitting the country code, it only return the USA address:
- https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:75001&sensor=false will only return Addison, TX 75001, USA
Why it doesn't return the one from France?