Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   acces google map (https://www.delphipraxis.net/176541-acces-google-map.html)

question 12. Sep 2013 16:35

acces google map
 
Hi
i would like to access the google map onbuttonclick,i got the error "HTTP/1.1 403 Forbidden" , i have debug the whole program and the error comes after the following line
Code:
var
 urlLink, apikey :String
 HTTP : TIdHTTP;
urlLink:= HTTP.Get('http://maps.google.com/maps/geo?q='+theAddress+'&output=csv&key=+apikey);
i have also tried with other format and other url such as http://maps.googleapis.com/maps/api/... but i got the error still now
does anybody can give me some suggestions please,concerning this error

DeddyH 12. Sep 2013 16:44

AW: acces google map
 
http://www.delphipraxis.net/157004-g...ect-model.html

kretabiker 5. Dez 2013 11:44

AW: acces google map
 
If this is still an issue, try to change the UserAgent in idHTTP.Request.UserAgent from "Mozilla/3.0 (compatible; Indy Library)" to something else (e.g. without "Indy Library"). I had the same problem today with Open Street Maps and it seems that these UserAgent is blacklisted on their servers.


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:55 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz