You can try to call the Google Places API web service with PHP using admin_area_level_2 (add the country to the query parameter to get more accurate forecasts) the value of the selected location, for example:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Provincia%20di%20Ferrara,%20Italy&types=(regions)&language=pt_BR&key={private_key_removed}
The output should be:
{ "predictions" : [ { "description" : "Provincia di Ferrara, Itália", "id" : "b5fa0282b59be22bd0ad64f97011f744db1aeed8", "matched_substrings" : [ { "length" : 20, "offset" : 0 } ], "place_id" : "ChIJ7y4rEyxCfkcRwH-6_AubBwM", "reference" : "CkQ1AAAAqCcMPeJiVWhf2mlBLCJVf82WAxOUARNWqT6NWbp7AEb2nlub1ax3iUMDTKsCAvM_Y6Uylc78mSB_QB5bECVkGxIQxCwIgZ4_WC6fAPJB_N7o0RoU8m_Sdb6CpSyaZeW2lpi9YoJ8bO0", "terms" : [ { "offset" : 0, "value" : "Provincia di Ferrara" }, { "offset" : 22, "value" : "Itália" } ], "types" : [ "administrative_area_level_2", "political", "geocode" ] } ], "status" : "OK" }
source share