Class LonLat

    • Constructor Detail

      • LonLat

        public LonLat​(double lng,
                      double lat)
        Creates a new instance.
        Parameters:
        lng - Longitude value
        lat - Latitude value
      • LonLat

        public LonLat​(double lng,
                      double lat,
                      String projection)
        Creates a new instance.
        Parameters:
        lng - Longitude value
        lat - Latitude value
        projection - Projection for this coordinate
      • LonLat

        public LonLat​(double lng,
                      double lat,
                      String projection,
                      String targetProjection)
        Creates a new instance.
        Parameters:
        lng - Longitude value
        lat - Latitude value
        projection - Projection for this coordinate
        targetProjection - Target projection when placing coordinate on map
      • LonLat

        public LonLat​(com.vividsolutions.jts.geom.Point point)
        Creates a new instance.
        Parameters:
        point - Point coordinate
      • LonLat

        public LonLat​(com.vividsolutions.jts.geom.Point point,
                      String projection)
        Creates a new instance.
        Parameters:
        point - Point coordinate
        projection - Projection for this coordinate
      • LonLat

        public LonLat​(com.vividsolutions.jts.geom.Point point,
                      String projection,
                      String targetProjection)
        Creates a new instance.
        Parameters:
        point - Point coordinate
        projection - Projection for this coordinate
        targetProjection - Target projection when placing coordinate on map
    • Method Detail

      • getLat

        public double getLat()
        Returns the latitude for this coordinate.
        Returns:
        Latitude value
      • getLng

        public double getLng()
        Returns the longitude for this coordinate.
        Returns:
        Longitude value
      • getJSconstructor

        public String getJSconstructor()
        Specified by:
        getJSconstructor in interface Value
        Returns:
        A JavaScript constructor that represents this element.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getPoint

        public com.vividsolutions.jts.geom.Point getPoint()
      • parse

        public static LonLat parse​(String value)
        (37.34068368469045, -122.48519897460936)
      • parseWithNames

        public static LonLat parseWithNames​(String value)
        (lon=37.34068368469045, lat=-122.48519897460936)