Class GoogleMapsGeoLocationService

  • All Implemented Interfaces:
    org.apereo.cas.authentication.adaptive.geo.GeoLocationService

    public class GoogleMapsGeoLocationService
    extends org.apereo.cas.support.geo.AbstractGeoLocationService
    Since:
    5.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apereo.cas.authentication.adaptive.geo.GeoLocationResponse locate​(java.lang.Double latitude, java.lang.Double longitude)  
      org.apereo.cas.authentication.adaptive.geo.GeoLocationResponse locate​(java.net.InetAddress address)  
      protected com.google.maps.model.GeocodingResult[] reverseGeocode​(com.google.maps.model.LatLng latlng)
      Reverse geocode.
      • Methods inherited from class org.apereo.cas.support.geo.AbstractGeoLocationService

        buildIpStackUrlFor, getIpStackAccessKey, locate, locate, locate, setIpStackAccessKey
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GoogleMapsGeoLocationService

        public GoogleMapsGeoLocationService()
    • Method Detail

      • locate

        public org.apereo.cas.authentication.adaptive.geo.GeoLocationResponse locate​(java.net.InetAddress address)
      • locate

        public org.apereo.cas.authentication.adaptive.geo.GeoLocationResponse locate​(java.lang.Double latitude,
                                                                                     java.lang.Double longitude)
      • reverseGeocode

        protected com.google.maps.model.GeocodingResult[] reverseGeocode​(com.google.maps.model.LatLng latlng)
                                                                  throws java.lang.Exception
        Reverse geocode.
        Parameters:
        latlng - the latlng
        Returns:
        the geocoding result []
        Throws:
        java.lang.Exception - the exception