Package lumis.portal.geolocation
Class GeoLocationUtil
- java.lang.Object
-
- lumis.portal.geolocation.GeoLocationUtil
-
public abstract class GeoLocationUtil extends Object
Geo location utilities.- Since:
- 14.0.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExtendedGeoPoint
createGeoPointFromLatLon(double lat, double lon)
Returns a newExtendedGeoPoint
from the given lat-lon.
The created object will not contain information about city, state and country.static ExtendedGeoPoint
createGeoPointFromMap(Map geolocation)
Returns a newExtendedGeoPoint
from geolocation map.
-
-
-
Method Detail
-
createGeoPointFromLatLon
public static ExtendedGeoPoint createGeoPointFromLatLon(double lat, double lon)
Returns a newExtendedGeoPoint
from the given lat-lon.
The created object will not contain information about city, state and country.- Parameters:
lat
- the latitudelon
- the longitude- Returns:
- an
ExtendedGeoPoint
- Since:
- 14.0.0
-
createGeoPointFromMap
public static ExtendedGeoPoint createGeoPointFromMap(Map geolocation) throws PortalException
Returns a newExtendedGeoPoint
from geolocation map.- Parameters:
geolocation
- the map source.- Returns:
- a new
ExtendedGeoPoint
from geolocation map. - Throws:
PortalException
- Since:
- 14.0.0
-
-