Class GeoJsonPoint

  • All Implemented Interfaces:
    Geometry

    public class GeoJsonPoint
    extends Point
    A GeoJsonPoint geometry contains a single LatLng.
    • Constructor Summary

      Constructors 
      Constructor Description
      GeoJsonPoint​(com.google.android.gms.maps.model.LatLng coordinates)
      Creates a new GeoJsonPoint
      GeoJsonPoint​(com.google.android.gms.maps.model.LatLng coordinates, java.lang.Double altitude)
      Creates a new GeoJsonPoint
    • Constructor Detail

      • GeoJsonPoint

        public GeoJsonPoint​(com.google.android.gms.maps.model.LatLng coordinates)
        Creates a new GeoJsonPoint
        Parameters:
        coordinates - coordinates of GeoJsonPoint to store
      • GeoJsonPoint

        public GeoJsonPoint​(com.google.android.gms.maps.model.LatLng coordinates,
                            java.lang.Double altitude)
        Creates a new GeoJsonPoint
        Parameters:
        coordinates - coordinates of the KmlPoint
        altitude - altitude of the KmlPoint
    • Method Detail

      • getType

        public java.lang.String getType()
        Gets the type of geometry. The type of geometry conforms to the GeoJSON 'type' specification.
        Returns:
        type of geometry
      • getCoordinates

        public com.google.android.gms.maps.model.LatLng getCoordinates()
        Gets the coordinates of the GeoJsonPoint
        Returns:
        coordinates of the GeoJsonPoint
      • getAltitude

        public java.lang.Double getAltitude()
        Gets the altitude of the GeoJsonPoint
        Returns:
        altitude of the GeoJsonPoint