0 Replies - 425 Views - Last Post: 26 February 2009 - 05:27 PM

#1 musya  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 11
  • View blog
  • Posts: 1,012
  • Joined: 25-April 07

Google Maps

Posted 26 February 2009 - 05:27 PM

Alright I was wanting to embed a google maps into this site, and pass in a different address each time and so that it would show me that house.

Well when I repalace their address with mine I get this error

Forbidden
Your client does not have permission to get URL /maps?f=q&source=s_q&hl=en&geocode=&q=129++Hills+West+Way+Richland+WA+99352&sll=37.0625,-95.677068&sspn=48.77566,114.257812&ie=UTF8&ll=46.266113,-119.333754&spn=0.020949,0.05579&t=h&z=14&iwloc=addr&output=embedXg from this server. (Client IP address: 64.185.115.16)



Here is my code of replacing it:
$address1 = implode("+", explode(' ',$address));
$city1 = implode("+", explode(' ',$city));
$state1 = implode("+", explode(' ',$state));
$zip1 = implode("+", explode(' ',$zip));
echo '
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" 
src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q='.$address1.'+'.$city1.'+'.$state1.'+'.$zip1.'
&amp;sll=37.0625,-95.677068&amp;sspn=48.77566,114.257812&amp;ie=UTF8&amp;ll=46.266113,-119.333754&amp;spn=0.020949,0.05579
&amp;t=h&amp;z=14&amp;iwloc=addr&amp;output=embed&amp;Xg"></iframe>
<br />';


Original Code:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=4001+Kennedy+Road+West+Richland,+WA+99353&amp;sll=37.0625,-95.677068&amp;sspn=48.77566,114.257812&amp;ie=UTF8&amp;ll=46.266113,-119.333754&amp;spn=0.020949,0.05579&amp;t=h&amp;z=14&amp;iwloc=addr&amp;output=embed&amp;Xg"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=4001+Kennedy+Road+West+Richland,+WA+99353&amp;sll=37.0625,-95.677068&amp;sspn=48.77566,114.257812&amp;ie=UTF8&amp;ll=46.266113,-119.333754&amp;spn=0.020949,0.05579&amp;t=h&amp;z=14&amp;iwloc=addr" style="color:#0000FF;text-align:left">View Larger Map</a></small>


Anybody know how I can make this right?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1