---
id: "geojson"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/geojson"
---

# GeoJSON geometry (`geojson`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Geometry, feature or feature collection written in GeoJSON (RFC 7946), the JSON format for geographic data. Positions are longitude first, then latitude, in WGS 84.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)

## Detection

Regular expression (Python `re`):

```
^\{.*"type"\s*:\s*"(?:Point|MultiPoint|LineString|MultiLineString|Polygon|MultiPolygon|GeometryCollection|Feature|FeatureCollection)".*\}$
```

## Examples

- `{"type": "Point", "coordinates": [30.5234, 50.4501]}` — a point (longitude, latitude)
- `{"type": "LineString", "coordinates": [[30.0, 10.0], [10.0, 30.0], [40.0, 40.0]]}` — a line
- `POINT (30.5234 50.4501)` (invalid example) — WKT, not GeoJSON

## Mappings

- fta: `SPATIAL.GEOJSON`

## Supported by tools

- `csvdetective`
- `fta`

## Translations

- ru: Геометрия GeoJSON

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/GeoJSON>
- doc: <https://datatracker.ietf.org/doc/html/rfc7946>
- other: <https://github.com/tsegall/fta/blob/main/SemanticTypes.md>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/geojson.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/geojson.yaml>
