---
title: "GeoJsonObject | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface GeoJsonObject

The base GeoJSON object. [https://tools.ietf.org/html/rfc7946#section-3](https://tools.ietf.org/html/rfc7946#section-3) The GeoJSON specification also allows foreign members ([https://tools.ietf.org/html/rfc7946#section-6.1](https://tools.ietf.org/html/rfc7946#section-6.1)) Developers should use "&" type in TypeScript or extend the interface to add these foreign members.

interface GeoJsonObject {  
    [bbox](#bbox)?: [BBox](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BBox/);  
    [type](#type):  
        | "Point"  
        | "Feature"  
        | "FeatureCollection"  
        | "MultiPoint"  
        | "LineString"  
        | "MultiLineString"  
        | "Polygon"  
        | "MultiPolygon"  
        | "GeometryCollection";  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.GeoJsonObject))

-   GeoJsonObject
    -   [Feature](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Feature/)
    -   [FeatureCollection](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FeatureCollection/)
    -   [MultiPoint](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MultiPoint/)
    -   [LineString](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.LineString/)
    -   [MultiLineString](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MultiLineString/)
    -   [Polygon](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Polygon/)
    -   [Point](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Point/)
    -   [MultiPolygon](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MultiPolygon/)
    -   [GeometryCollection](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeometryCollection/)

##### Index

### Properties[](#properties)

[bbox?](#bbox) [type](#type)

## Properties[](#properties-1)

### `Optional`bbox[](#bbox)

bbox?: [BBox](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BBox/)

Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2\*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. [https://tools.ietf.org/html/rfc7946#section-5](https://tools.ietf.org/html/rfc7946#section-5)

### type[](#type)

type:  
    | "Point"  
    | "Feature"  
    | "FeatureCollection"  
    | "MultiPoint"  
    | "LineString"  
    | "MultiLineString"  
    | "Polygon"  
    | "MultiPolygon"  
    | "GeometryCollection"

Specifies the type of GeoJSON object.
