Thread View: borland.public.delphi.language.delphi.dotnet
1 messages
1 total messages
Started by alan
Mon, 07 Jul 2008 19:36
GoogleMao\GeoCode
Author: alan
Date: Mon, 07 Jul 2008 19:36
Date: Mon, 07 Jul 2008 19:36
15 lines
1378 bytes
1378 bytes
I am trying to get the Lat\Lon from Google Maps using the code below. I
am not getting a result back. I am using this in a Delhpi 2006 WinForms
application. Does anyone have any idea what I am doing wrong.
TIA
IdHTTP1 := TIdHTTP.create(nil);
aResponse := IdHTTP1.Get( IdHTTP1.URL.UrlEncode(
'http://maps.google.com/maps/geo?q=' +
('1600 Amphitheatre Pky, Mountain View,
CA')+'&output=csv&key=ABQIAAAAtRXBYmocMM6bX363K0GZSxSklCjTizivJkywMlti0NKFTAb2mxQa8l3gg5qe-I1bYCNnObdBBIE8Tw'));
str1 := aResponse[1];
str2 := aResponse[2];
aLat := StrToFloat(str1);
aLon := StrToFloat(str2);
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads