Google geocode taglib ver. 1.2

    Custom JSP taglib. Lets you obtain the geocoding data from Google. For example:
 


<html>
<%@ taglib uri="taglib.tld" prefix="g" %>
  <p:GoogleGeocode address="Palo Alto" key="your_key_from_google"/>

Status code: <%=status%>
Latitude: <%=latitude%>
Longitude: <%=longitude%>
</html>

Tag GoogleGeocode creates 3 page scope variables:

status (type is java.lang.Integer) - describes a status of your request.
latitude (type is java.lang.Double) - describes a latitude.
longitude (type is java.lang.Double) - describes a longitude.

You can use this taglib in your mashup applications for maps. A key for your web applications could be obtained from Google here. Taglib incorporates code for dealing with Google's geocode restrictions: one geocode request every 1.73 seconds.

Tags are:

GoogleGeocode.

Body tag requests geocoding data from Google. Attributes are:

1) address - describes an address for search
2) key - describes a key from Google for your Google Maps applications
3) proxyHost Optional attribute. Describes proxy settings for your system.
4) proxyPort Optional attribute. Describes proxy settings for your system.

for downloading:

Library: googlegeocodetag.jar     Description: taglib.tld

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: