GeoPoint (Google App Engine API for Java)

com.google.appengine.api.search

Class GeoPoint

  • java.lang.Object
    • com.google.appengine.api.search.GeoPoint


  • public class GeoPoint
    extends java.lang.Object
    Represents a point on the Earth's surface, in latitude and longitude coordinates.
    • Constructor Summary

      Constructors 
      Constructor and Description
      GeoPoint(double latitude, double longitude)
      Constructs a GeoPoint from a given latitude and longitude.
    • Constructor Detail

      • GeoPoint

        public GeoPoint(double latitude,
                        double longitude)
        Constructs a GeoPoint from a given latitude and longitude.
        Parameters:
        latitude - the angle between the equatorial plane and a line that passes through the GeoPoint
        longitude - is the angle east or west from a reference meridian to another meridian that passes through the GeoPoint
    • Method Detail

      • getLatitude

        public double getLatitude()
        Returns:
        the angle between the equatorial plan and a line that passes through the GeoPoint
      • getLongitude

        public double getLongitude()
        Returns:
        the angle east or west from a reference meridian to another meridian that passes through the GeoPoint
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

App Engine standard environment for Java