GET /geo/communes

A propos

Cette ressource retourne les polygones des communes du territoire au format GeoJSON.

URL

https://api.solutions-territoire.fr/geo/communes

Informations

Disponibilité 0.5.0
Authentification requise Authorization Code ou Client Credentials
Scope requis Aucun
Formats disponibles GeoJSON
Code HTTP attendu 200

Réponse

La réponse est une collection de features au format GeoJSON.

Exemple

$ http -jv GET https://api.solutions-territoire.fr/geo/communes \
    Authorization:"Bearer dGCMv3RWEcgWjgeKS5D6IUw0gv2VKmaPqJzZg9mM_3A" \
    Accept:"application/geo+json"
GET /geo/communes HTTP/1.1
Accept: application/geo+json
Authorization: Bearer dGCMv3RWEcgWjgeKS5D6IUw0gv2VKmaPqJzZg9mM_3A
Content-Type: application/json; charset=utf-8

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "type":     "FeatureCollection"
  "features": [
    {
      "type":     "Feature",
      "geometry": {
        "type":        "Polygon"
        "coordinates": [
          [
            [ 43.61937, 3.81852 ],
            [ 43.61939, 3.81852 ],
            [ 43.61939, 3.81854 ],
            [ 43.61930, 3.81854 ],
            [ 43.61937, 3.81852 ],
            ...
          ]
        ]
      }
      "properties": {
        "title": "Commune de Montpellier"
      }
    }
  ]
}