Stay organized with collections Save and categorize content based on your preferences.
An immutable class representing a pair of latitude and longitude coordinates, stored as degrees.
Inherited Constant Summary From interface android.os.Parcelable int CONTENTS_FILE_DESCRIPTOR int PARCELABLE_WRITE_RETURN_VALUE Field Summary public final double latitude Latitude, in degrees. public final double longitude Longitude, in degrees. Public Constructor Summary LatLng(double latitude, double longitude)
Constructs a LatLng with the given latitude and longitude, measured in degrees.
Public Method Summary Inherited Method Summary From class java.lang.Object Objectclone()
boolean voidfinalize()
final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
From interface android.os.Parcelable abstract intdescribeContents()
abstract void writeToParcel(
Parcelarg0, int arg1)
Fields public final double latitudeLatitude, in degrees. This value is in the range [-90, 90].
public final double longitudeLongitude, in degrees. This value is in the range [-180, 180).
Public Constructors public LatLng (double latitude, double longitude)Constructs a LatLng with the given latitude and longitude, measured in degrees.
Parameters latitude The point's latitude. This will be clamped to between -90 degrees and +90 degrees inclusive. longitude The point's longitude. This will be normalized to be within -180 degrees inclusive and +180 degrees exclusive. Public Methods public boolean equals (Object o)Tests if this LatLng
is equal to another.
Two points are considered equal if and only if their latitudes are bitwise equal and their longitudes are bitwise equal. This means that two LatLng
s that are very near, in terms of geometric distance, might not be considered .equal()
.
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-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`LatLng` is an immutable class that stores latitude and longitude coordinates in degrees."],["Latitude values range from -90 to +90 degrees, while longitude values range from -180 to +180 degrees."],["The class provides methods for constructing a `LatLng` object, checking equality, generating a hash code, converting to a string, and writing to a parcel."],["`LatLng` objects are considered equal if and only if their latitudes and longitudes are bitwise equal."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4