Location

  • Location is an abstract class representing a single instance of a geographic location.

  • It has two known direct subclasses: TerminalLocation and VehicleLocation, representing terminal points and vehicle positions respectively.

  • A Location object can be created using latitude and longitude coordinates (LatLng).

  • It provides methods for retrieving the latitude and longitude (getLatLng), checking equality (equals), and generating a hash code (hashCode).

public abstract class Location extends Object
Known Direct Subclasses

Object representing a single instance of a location.

Public Constructor Summary

Public Method Summary

static Location
create(LatLng latLng)
boolean
equals(Object object)
abstract LatLng
int
String

Inherited Method Summary

Public Constructors

public Location ()

Public Methods

public static Location create (LatLng latLng)

public boolean equals (Object object)

public abstract LatLng getLatLng ()

public int hashCode ()

public String toString ()