Package lumis.portal.geolocation
Class GeoLocationUtil
- java.lang.Object
-
- lumis.portal.geolocation.GeoLocationUtil
-
public abstract class GeoLocationUtil extends java.lang.Object
Geo location utilities.- Since:
- 14.0.0
- Version:
- $Revision$ $Date$
-
-
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(java.util.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(java.util.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
-
-