Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

sayulita in mexico not retrieve postal code

 Post Reply Post Reply
Author
camacho hilda View Drop Down
New Member
New Member
Avatar

Joined: 09 Feb 2015
Posts: 23
Post Options Post Options   Quote camacho hilda Quote  Post ReplyReply Direct Link To This Post Topic: sayulita in mexico not retrieve postal code
    Posted: 12 Sep 2016 at 7:34pm

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
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2163
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 13 Sep 2016 at 8:57am
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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down