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()
           
 
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 gets address string and uses google service to find more details about this address using ccTLD
 LatLng getLatLngPointsByAddress(String address)
          This method get address string as param and returns geolocation which contains the lattitude and longitude points of the geo location
 void initializeProperties()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoAddressService

public GeoAddressService()
Method Detail

initializeProperties

@PostConstruct
public void initializeProperties()

getAddress

public GeocoderResult getAddress(String address)
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

getAddress

public GeocoderResult getAddress(String address,
                                 String ccTLD)
This method gets address string and uses google service to find more details about this address using ccTLD

Specified by:
getAddress in interface GeoSearchableAddress
Parameters:
address -
ccTLD - country code top-level domain
Returns:
tmss address object

getLatLngPointsByAddress

public LatLng getLatLngPointsByAddress(String address)
This method get address string as param and returns geolocation which contains the lattitude and longitude points of the geo location

Specified by:
getLatLngPointsByAddress in interface GeoSearchableAddress
Parameters:
address - to be find
Returns:
geo location points


Copyright © 2013. All Rights Reserved.