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

ReverseGeocoding - iOS / Android

 Post Reply Post Reply
Author
Offergeld Sebastian View Drop Down
New Member
New Member
Avatar

Joined: 25 Jul 2014
Posts: 12
Post Options Post Options   Quote Offergeld Sebastian Quote  Post ReplyReply Direct Link To This Post Topic: ReverseGeocoding - iOS / Android
    Posted: 24 Jul 2015 at 10:22pm
Hi,
the following code works fine with iOS, but somehow the variable "adressString" which is public doesn't get the FormattedAdress. 

procedure TfrmContentMap.LocationSensor1LocationChanged(Sender: TObject;
  const OldLocation, NewLocation: TLocationCoord2D);
  var
  latitudePosition, longitudePosition: Double;

begin
  latitudePosition := NewLocation.Latitude;
  longitudePosition := NewLocation.Longitude;

  //reverse geocoding
  TMSFMXWebGMapsReverseGeocoding1.Latitude := latitudePosition;
  TMSFMXWebGMapsReverseGeocoding1.Longitude :=  longitudePosition;
  TMSFMXWebGMapsReverseGeocoding1.LaunchReverseGeocoding;
  AdressString := TMSFMXWebGMapsReverseGeocoding1.ResultAddress.FormattedAddress;
end;

I ask myself why it doesn't work with android. Any suggstions?

Kind regards
Back to Top
Offergeld Sebastian View Drop Down
New Member
New Member
Avatar

Joined: 25 Jul 2014
Posts: 12
Post Options Post Options   Quote Offergeld Sebastian Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jul 2015 at 10:25pm
the variable "adressString" which is public doesn't get the FormattedAdress IN ANDROID
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3504
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 10 Aug 2015 at 11:00am
Hi, 

We have investigated this here and are not able to reproduce this, the address is returned correctly with the following sample :

var
  latitudePosition, longitudePosition: Double;
begin
  latitudePosition := 40.7127837;
  longitudePosition := -74.00594130000002;

  //reverse geocoding
  TMSFMXWebGMapsReverseGeocoding1.Latitude := latitudePosition;
  TMSFMXWebGMapsReverseGeocoding1.Longitude := longitudePosition;
  TMSFMXWebGMapsReverseGeocoding1.LaunchReverseGeocoding;
  Button1.Text := TMSFMXWebGMapsReverseGeocoding1.ResultAddress.FormattedAddress;



Kind Regards, 
Pieter
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down