Package org.cyclos.impl.users
Class GoogleMapsGeocoder
- java.lang.Object
-
- org.cyclos.impl.users.GoogleMapsGeocoder
-
@Component public class GoogleMapsGeocoder extends Object
Encapsulates the geocoding logic using Google Maps api
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGoogleMapsGeocoder.Geometrystatic classGoogleMapsGeocoder.Locationstatic classGoogleMapsGeocoder.Responsestatic classGoogleMapsGeocoder.Resultstatic classGoogleMapsGeocoder.Status
-
Constructor Summary
Constructors Constructor Description GoogleMapsGeocoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangeocode(GeoLocatedAddress address)Localizes the given address, returning whether the request was accepted (true) or rejected - probably by exceeding the limit (false)booleangeocode(GeoLocatedAddress address, String apiKey, String defaultCountry)Localizes the given address, returning whether the request was accepted (true) or rejected - probably by exceeding the limit (false)
-
-
-
Method Detail
-
geocode
public boolean geocode(GeoLocatedAddress address)
Localizes the given address, returning whether the request was accepted (true) or rejected - probably by exceeding the limit (false)
-
geocode
public boolean geocode(GeoLocatedAddress address, String apiKey, String defaultCountry)
Localizes the given address, returning whether the request was accepted (true) or rejected - probably by exceeding the limit (false)
-
-