Recent site activity

API Reference‎ > ‎

addr Attribute

Version: 1.1

Use the 'addr' attribute inside your HTML tags in place of lat/lng tags.  Set 'addr' to any real-language address (like what you would use to search on Google Maps) and the GoRoam Geomapper will look up the address and place it on the map for you - no need to look up the latitude and longitude of your geotagged items.  Here are some examples of how this works:

<p addr='new york, ny'>I love visiting New York City in the fall.</p>
<img addr='empire state building' src='http://farm1.static.flickr.com/68/153059845_d76cd4049f.jpg' alt='Empire State Building' />
<a addr='767 5th Avenue, New York, NY 10153' href='http://www.fao.com/'>FAO Schwarz</a>

As you can see from these examples, you can set 'addr' to anything from a recognized place name all the way to the exact address of the location.  You can give just a state, or a city/state, or a zip code.  If you use the 'addr' attribute, you should check your page to make sure the lookup finds the correct location.

Something to note when using 'addr': it is slower than if you use lat/lng.  When you use 'addr', it first performs a lookup to find the lat/lng, then places your item on the map.  Because of this, it will always be faster to lookup your lat/lng on your own and use that instead of the 'addr' attribute.  But if you're feeling lazy or can't figure out the lat/lng of your item, the 'addr' attribute is a convenient shortcut.

  Sign in   Recent Site Activity   Terms   Report Abuse   Print page  |  Powered by Google Sites