Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GoogleMao\GeoCode

2 views
Skip to first unread message

alan

unread,
Jul 7, 2008, 3:36:17 PM7/7/08
to
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);

0 new messages