Creates a LatLng object representing a geographic point. Note the ordering of latitude and longitude.
Latitude is specified in degrees within the range [-90, 90].
Longitude is specified in degrees within the range [-180, 180].
Set noWrap to true to enable values outside of this range.
Creates a LatLng object representing a geographic point.
Object literal.
Set noWrap to true to enable values outside of this range.
Comparison function.
Returns the latitude in degrees.
Returns the longitude in degrees.
Converts to JSON representation. This function is intended to be used via {@link JSON.stringify}.
Converts to string representation.
Returns a string of the form "lat,lng" for this LatLng. We round the lat/lng values to 6 decimal places by default.
Generated using TypeDoc
A LatLng is a point in geographical coordinates: latitude and longitude.
Although the default map projection associates longitude with the x-coordinate of the map, and latitude with the y-coordinate, the latitude coordinate is always written first, followed by the longitude. Notice that you cannot modify the coordinates of a LatLng. If you want to compute another point, you have to create a new one.
Maps JavaScript API