* google maps error (forbidden)

Posted on November 22nd, 2008 by Alex. Filed under Projects.


You can include a snippet of a map from Google Maps on your web page. After determine the cut out and customizing the size of the map in the iframe etc, you simply copy the code in the box and integrate it in your web page. However you might run into this error:

An error message displayed, if Google Maps is integrated inyour web page

An error message displayed, if Google Maps is integrated in your web page


The access is forbidden although the code directly comes from the Google page. In my opinion this is a bug and just now I figured out a work around. Have a look on an example code:

<iframe width="620" height="480" frameborder="0" scrolling="no" marginheight="0"
marginwidth="0" src="http://maps.google.com/maps?f=q&hl=de&geocode=&
q=oberforstbacher+stra%C3%9Fe+71,+kornelim%C3%BCnster,+germany&
sll=37.0625,-95.677068&sspn=48.374125,113.818359&ie=UTF8&ll=50.732435,6.166763&
spn=0.038028,0.111151&z=14&iwloc=addr&output=embed"></iframe>
<br /><small><a href="http://maps.google.com/maps?f=q&hl=de&
amp;geocode=&q=oberforstbacher+stra%C3%9Fe+71,+kornelim%C3%BCnster,
+germany&sll=37.0625,-95.677068&sspn=48.374125,113.818359&
ie=UTF8&ll=50.73526,6.170626&spn=0.026075,0.053215&z=14&
g=oberforstbacher+stra%C3%9Fe+71,+kornelim%C3%BCnster,germany&
iwloc=addr&source=embed" style="color:#0000FF;text-align:left">
Größere Kartenansicht</a></small>

I had much success in changing the language of the shown section of the map. The language is defined by the hl=de parameter shown in red in the code above (here German). Switching it over to English by replacing hl=de by hl=en in the iframe section did the trick.



Trackback URI | Comments RSS

Leave a Reply


RSS Feeds:

Search:


Pages:

Categories:

Archives: