Class GoogleMapsGeoLocationService
- java.lang.Object
-
- org.apereo.cas.support.geo.AbstractGeoLocationService
-
- org.apereo.cas.support.geo.google.GoogleMapsGeoLocationService
-
- All Implemented Interfaces:
org.apereo.cas.authentication.adaptive.geo.GeoLocationService
public class GoogleMapsGeoLocationService extends org.apereo.cas.support.geo.AbstractGeoLocationServiceThis isGoogleMapsGeoLocationService.- Since:
- 5.0.0
-
-
Constructor Summary
Constructors Constructor Description GoogleMapsGeoLocationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apereo.cas.authentication.adaptive.geo.GeoLocationResponselocate(java.lang.Double latitude, java.lang.Double longitude)org.apereo.cas.authentication.adaptive.geo.GeoLocationResponselocate(java.net.InetAddress address)protected com.google.maps.model.GeocodingResult[]reverseGeocode(com.google.maps.model.LatLng latlng)Reverse geocode.
-
-
-
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.ExceptionReverse geocode.- Parameters:
latlng- the latlng- Returns:
- the geocoding result []
- Throws:
java.lang.Exception- the exception
-
-