Class PlacesUtil

java.lang.Object
com.adobe.marketing.mobile.places.PlacesUtil

public class PlacesUtil extends Object
Utility class for Places extension.
  • 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

      public static List<PlacesPOI> convertMapToPOIList(List<Map> poiMap)
      Converts the list oflist of Map representing PlacesPOI into PlacesPOI objects.
      Parameters:
      poiMap - List of Map representing PlacesPOI object
      Returns:
      List of PlacesPOI