org.chenillekit.google.services.impl
Class GoogleGeoCoderImpl

java.lang.Object
  extended by org.chenillekit.google.services.impl.AbstractGoogleService
      extended by org.chenillekit.google.services.impl.GoogleGeoCoderImpl
All Implemented Interfaces:
GoogleGeoCoder, GoogleService

public class GoogleGeoCoderImpl
extends AbstractGoogleService
implements GoogleGeoCoder

This service let you ues some Google Maps services in your application.

Version:
$Id: GoogleGeoCoderImpl.java 594 2009-12-05 15:17:26Z mlusetti $

Constructor Summary
GoogleGeoCoderImpl(Logger logger, String googleKey, int timeout, String referer, String proxy)
          standard constructor.
 
Method Summary
 GeoCodeResult getGeoCode(GeoCodeLocation geoCodeLocation)
          get the geo code from google map service for address.
 GeoCodeResult getGeoCode(Locale locale, String street, String country, String state, String zipCode, String city)
          get the geo code from google map service for address.
 GeoCodeResult getGeoCode(String street, String country, String state, String zipCode, String city)
          get the geo code from google map service for address.
 
Methods inherited from class org.chenillekit.google.services.impl.AbstractGoogleService
getEncodedString, getKey, getProxy, getProxySelector, getReferer, getTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.chenillekit.google.services.GoogleService
getKey, getProxy, getReferer, getTimeout
 

Constructor Detail

GoogleGeoCoderImpl

public GoogleGeoCoderImpl(Logger logger,
                          String googleKey,
                          int timeout,
                          String referer,
                          String proxy)
standard constructor.

Parameters:
logger - system logger
Method Detail

getGeoCode

public GeoCodeResult getGeoCode(GeoCodeLocation geoCodeLocation)
get the geo code from google map service for address.

Specified by:
getGeoCode in interface GoogleGeoCoder
Parameters:
geoCodeLocation - location holder

getGeoCode

public GeoCodeResult getGeoCode(String street,
                                String country,
                                String state,
                                String zipCode,
                                String city)
get the geo code from google map service for address.

Specified by:
getGeoCode in interface GoogleGeoCoder
Parameters:
street - the street
country - the country
state - the state
zipCode - the zip code
city - the city

getGeoCode

public GeoCodeResult getGeoCode(Locale locale,
                                String street,
                                String country,
                                String state,
                                String zipCode,
                                String city)
get the geo code from google map service for address.

Specified by:
getGeoCode in interface GoogleGeoCoder
Parameters:
street - the street
country - the country
state - the state
zipCode - the zip code
city - the city


Copyright © 2008-2011 ChenilleKit. All Rights Reserved.