Description


This function converts degrees to longitude / latitude coordinates. The result of the function is contained in the variables Lon and Lat.





Example


procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
var
   Lon, Lat: Double;
begin
   if Form1.Map1.DegreesToLonLat('17°47''19.809"E', '49°31''46.604"N', Lon, Lat) then
   begin
      ShowMessage('Longitude: ' + FloatToStr(Lon));
      ShowMessage('Latitude: ' + FloatToStr(Lat));
   end;
end;