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

# line

A **line** is a geospatial [feature](https://docs.mapbox.com/help/glossary/features/) defined by connected pairs of [latitude and longitude](https://docs.mapbox.com/help/glossary/lat-lon/) coordinates. Lines can be used to represent paths, waterways, or features that have length but no area, such as contour lines and boundaries.

You can represent line data using a `line` [layer](https://docs.mapbox.com/help/glossary/layer/).

**Related resources:**

-   [Mapbox Style Specification line layer documentation](https://docs.mapbox.com/style-spec/#layers-line)

**Related examples:**

-   [Line layer examples using Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/example/?search=line)
-   [Line layer examples using Mapbox Maps SDK for Android](https://docs.mapbox.com/android/maps/examples/?search=line)
-   [Line layer examples using Mapbox Maps SDK for iOS](https://docs.mapbox.com/ios/maps/examples/?search=line)