> For the complete documentation index, see [llms.txt](https://docs.mapbox.com/help/ja/llms.txt)

# latitude and longitude

**Latitude and longitude** are a pair of numbers (*coordinates*) used to describe a position on the plane of a [geographic coordinate system](http://en.wikipedia.org/wiki/Latitude_and_longitude). Across the Mapbox product ecosystem, latitude and longitude are formatted in [decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees) and range from `-90` to `90` for latitude and `-180` to `180` for longitude.

For example, Washington DC has a latitude `38.8951` and longitude `-77.0364`. In API calls you will often see the numbers placed together and separated by a comma: `-77.0364,38.8951`. In some cases, altitude can be included as a third value.

## Find a location's coordinates

If you want to find a location's coordinates, use the [Location Helper](https://labs.mapbox.com/location-helper/#3/40.78/-73.97) which allows you to search for a location and copy its coordinates for use in your code.

## Present coordinates in real time

The [Get coordinates of the mouse pointer](https://docs.mapbox.com/mapbox-gl-js/example/mouse-position/) Mapbox GL JS example shows how to query the geographic coordinates for the position of the mouse cursor on a web map.

## Adding longitude and latitude lines to your map

If you want to add visible longitude and latitude lines (a graticule) to your map, there are [community plugins](https://github.com/maptiler/maplibre-grid) for Mapbox GL JS available, or you can add a graticule dataset to your map style. A list of graticule datasets is located at [geojson.xyz](https://geojson.xyz/).

## Coordinate format handling

Different Mapbox services handle coordinate order differently. When you start using a Mapbox product, read its documentation to see how the latitude and longitude should be formatted. For example, [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/api/geography/#lnglat) and [most Mapbox web services APIs](https://docs.mapbox.com/api/overview/#coordinate-format) use the format `longitude,latitude`, while other products including the [Mapbox Maps SDK for iOS](https://docs.mapbox.com/ios/maps/guides/) use the format `latitude,longitude`.

> **Related content (example): [Add a default marker to a web map](https://docs.mapbox.com/mapbox-gl-js/example/geojson-markers/)**
> 
> Learn how to add Markers to a Mapbox GL JS web map using latitude and longitude coordinates.

**Related resources:**

-   [Mapbox web services APIs coordinate documentation](https://docs.mapbox.com/api/overview/#coordinate-format)
-   [Mapbox GL JS `LngLat` object documentation](https://docs.mapbox.com/mapbox-gl-js/api/geography/#lnglat)