Howto: Embed Google Maps, Full Address, NO API!

Marty Sullens September 27, 2010 1

I’m currently developing a site that needed to use Google maps to display a address, Easy right? Yea not so much. It actually turned out to be a nightmare that envolved complicated API’s that had a limit of 2500 query’s a day, that was just not going to work.

So after tinkering around for a while, I finally got the Google Maps Embed code to work will full, Non Geocoded, non URL spaced addresses! by using the “&q=” parameter.

And since I’m working with wordpress, all I had to do is make a custom field and type in the address and my theme would produce the correct map.

Here is the code I used

<iframe width=”556″ height=”260″ frameborder=”0″ scrolling=”no” marginheight=”0″ marginwidth=”0″ src=”http://maps.google.com/maps?f=q&amp;source=s_q&amp;z=13&amp;hl=en&amp;iwloc=near&addr&amp;&amp;geocode=&amp;q=‎
YOUR_ADDRESS_GOES_HERE‎&amp;output=embed”></iframe>

Re-size how you like and bam, you’ve got Google maps pulling addresses from static text or dynamic PHP.

Hope this helps!

One Comment »

  1. Sales Techniques June 30, 2011 at 5:50 am -

    I appreciate you for the useful guidance in this article. I will be back to continue reading more of your threads and I have saved this web site. Thanks again!

Leave A Response »