com.lamatek.tags.google.beans
Interface IPCoder

All Known Implementing Classes:
Ip2GeoCoder

public interface IPCoder

IPCoder

Version:
0.40 This is the parent interface of all IP based geocoders used in the GoogleMaps JSP Taglibrary.
Author:
Tom Cole

Method Summary
 boolean geocode()
          Attempts to geocode the current IP address.
 double getLatitude()
          Returns the latitude (in decimal form) of the IP as a double.
 double getLongitude()
          Returns the longitude (in decimal form) of the IP as a double.
 void setIp(java.lang.String ip)
          Sets the ip address to geocode.
 

Method Detail

setIp

void setIp(java.lang.String ip)
Sets the ip address to geocode.

Parameters:
ip - The IPv4 or IPv6 address to geocode.

geocode

boolean geocode()
Attempts to geocode the current IP address.

Returns:
True if the IP was geocoded or false if it was not.

getLongitude

double getLongitude()
Returns the longitude (in decimal form) of the IP as a double.

Returns:
Longitude as a double.

getLatitude

double getLatitude()
Returns the latitude (in decimal form) of the IP as a double.

Returns:
Latitude as a double.