Class GoogleMapsGeocoder


  • @Component
    public class GoogleMapsGeocoder
    extends Object
    Encapsulates the geocoding logic using Google Maps api
    • Constructor Detail

      • GoogleMapsGeocoder

        public GoogleMapsGeocoder()
    • 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)