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&source=s_q&z=13&hl=en&iwloc=near&addr&&geocode=&q=
YOUR_ADDRESS_GOES_HERE&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!




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!