'Google Maps API not returning some postal codes (French cities)

I have an autocomplete field on my rails app, which is not returning the postal_code for some French cities, whereas they actually DO exist (and since all cities in France have a unique postal code).

For example, in the link below, if you search for "Saint-Malo, France", no postal code is returned. Although when you search "Saint-Malo, France" in googlemaps.com the city is clearly identified :

http://lewagon.github.io/google-place-autocomplete/

Is there a smart way to work around this problem and be sure that when my visitors select a city in the autocomplete input field, a postal code will be found ?



Solution 1:[1]

Maybe you can return another postal code that also belongs to the city. Not a solution but it might work..

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Klara13