com.google.code.geocoder
Class GeoAddressService

java.lang.Object
  extended by com.google.code.geocoder.GeoAddressService
All Implemented Interfaces:
GeoSearchableAddress

public class GeoAddressService
extends Object
implements GeoSearchableAddress

This class is used as service class. this class used for searching for geo location points by address which represented as string

Author:
igal

Constructor Summary
GeoAddressService()
           
GeoAddressService(Geocoder geocoder)
           
 
Method Summary
 GeocoderResult getAddress(String address)
          This method receives address as string and returns GeocoderResult for the given address
 GeocoderResult getAddress(String address, String ccTLD)
          This method receives address as string input and country code top-level domain (ccTLD) that is used to indicate the region and returns GeocoderResult
 LatLng getLatLngPointsByAddress(String address)
          This method receives address as string input and and returns a LatLng object which represents this address
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoAddressService

public GeoAddressService()

GeoAddressService

public GeoAddressService(Geocoder geocoder)
Method Detail

getAddress

public GeocoderResult getAddress(String address)
                          throws IOException
Description copied from interface: GeoSearchableAddress
This method receives address as string and returns GeocoderResult for the given address

Specified by:
getAddress in interface GeoSearchableAddress
Parameters:
address - being looked for
Returns:
geocoder result
Throws:
IOException

getAddress

public GeocoderResult getAddress(String address,
                                 String ccTLD)
                          throws IOException
Description copied from interface: GeoSearchableAddress
This method receives address as string input and country code top-level domain (ccTLD) that is used to indicate the region and returns GeocoderResult

Specified by:
getAddress in interface GeoSearchableAddress
Parameters:
address - being looked for
ccTLD - - country code top-level domain
Returns:
geocoder result
Throws:
IOException

getLatLngPointsByAddress

public LatLng getLatLngPointsByAddress(String address)
                                throws IOException
Description copied from interface: GeoSearchableAddress
This method receives address as string input and and returns a LatLng object which represents this address

Specified by:
getLatLngPointsByAddress in interface GeoSearchableAddress
Returns:
Throws:
IOException


Copyright © 2014. All Rights Reserved.