Hi guys, when i use the code below , with sayulita town, the TMSFMXWebGMapsReverseGeocoding1 not retieve the postal code
TMSFMXWebGMapsGeocoding1.Address := TMSFMXSearchEdit1.Text; // (sayulita)
if TMSFMXWebGMapsGeocoding1.LaunchGeocoding = erOk then
begin
// deletemarkers
TMSFMXWebGMaps1.Markers.clear;
latmap := TMSFMXWebGMapsGeocoding1.ResultLatitude;
Longmap := TMSFMXWebGMapsGeocoding1.ResultLongitude;
TMSFMXWebGMapsReverseGeocoding1.Latitude := latmap;
TMSFMXWebGMapsReverseGeocoding1.Longitude := Longmap;
TMSFMXWebGMapsReverseGeocoding1.LaunchReverseGeocoding;
// Add a marker
TMSFMXWebGMaps1.Markers.Add(latmap,
Longmap, UTF8Decode(TMSFMXWebGMapsReverseGeocoding1.ResultAddress.Street) + ' ' +
UTF8Decode(TMSFMXWebGMapsReverseGeocoding1.ResultAddress.StreetNumber), '', false, true, true, true, false, 0);
showmessage(TMSFMXWebGMapsReverseGeocoding1.ResultAddress.postalcode);
if TMSFMXWebGMapsReverseGeocoding1.ResultAddress.PostalCode<>'' then
ActionCostoMasajeExecute(sender);
end;
other example town:
Cruz de Huanacaxtle
Punta de Mita
Sayulita
can You help Me?
thanks
Hi,
Please note that data received from the Google Geocoding API may be incomplete.
In this case it seems the postal code is not available for these locations.
Unfortunately we have no control over the data that is returned from the service.