Class PlacesUtil
java.lang.Object
com.adobe.marketing.mobile.places.PlacesUtil
Utility class for Places extension.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertMapToPOIList(List<Map> poiMap) static booleanisValidLat(double latitude) Verifies if the provided latitude is valid.static booleanisValidLon(double longitude) Verifies if the provided longitude is valid.
-
Constructor Details
-
PlacesUtil
public PlacesUtil()
-
-
Method Details
-
isValidLat
public static boolean isValidLat(double latitude) Verifies if the provided latitude is valid.- Parameters:
latitude- the latitude- Returns:
- true if latitude is in the range [-90,90]
-
isValidLon
public static boolean isValidLon(double longitude) Verifies if the provided longitude is valid.- Parameters:
longitude- the longitude- Returns:
- true if longitude is in the range [-180,180]
-
convertMapToPOIList
- Parameters:
poiMap-Listof Map representingPlacesPOIobject- Returns:
ListofPlacesPOI
-