Location
Known Direct Subclasses
TerminalLocation
|
Represents a single instance of a geographic
location and associated terminal point. |
VehicleLocation
|
Object representing a VehicleLocation for a
trip vehicle. |
|
Object representing a single instance of a location.
Public Constructor Summary
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
public static
Location create (LatLng latLng)
public boolean equals (Object object)
public abstract LatLng
getLatLng ()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-31 UTC.
[null,null,["Last updated 2024-07-31 UTC."],[[["`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`)."]]],[]]