Class TimeZoneApi


  • public class TimeZoneApi
    extends java.lang.Object
    The Google Time Zone API provides a simple interface to request the time zone for a location on the earth.

    See the Time Zone API documentation.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PendingResult<java.util.TimeZone> getTimeZone​(GeoApiContext context, LatLng location)
      Retrieves the TimeZone for the given location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTimeZone

        public static PendingResult<java.util.TimeZone> getTimeZone​(GeoApiContext context,
                                                                    LatLng location)
        Retrieves the TimeZone for the given location.
        Parameters:
        context - The GeoApiContext to make requests through.
        location - The location for which to retrieve a time zone.
        Returns:
        Returns the time zone as a PendingResult.