Logo SERTIT ICube
fr_FR

API REST for ICube-SERTIT’s Rapid Mapping resources

  3 May 2021

ICube-SERTIT’s catalogue of rapid mapping actions is now accessible through a read-only REST API. In order words you can view our rapid mapping assets through a machine friendly interface.

For instance the complete catalogue of public rapid mapping actions is accessible through the following URI: https://sertit.unistra.fr/wp-json/rms/v1/actions

Issuing a HTTP GET request on this address will produce a GeoJSON formatted response:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
          28.876100086299999247785308398306369781494140625,
          -2.515962036239999921605203780927695333957672119140625
        ]
      },
      "properties": {
        "action_id": 221,
        "event_type": "Earthquake",
        "event_name": {
          "en": "Earthquake in Rwanda & DR Congo",
          "fr": "Séisme au Rwanda et en République Démocratique du Congo"
        },
        "localisation": {
          "en": "Rwanda and  Dem. Rep. Congo",
          "fr": "Rwanda et en Rép. Dém. Congo"
        },
        "description": {
          "en": "Two earthquakes of magnitude 6.0 and 5.0 struck the Lakes Region on 3 February at 7.35 et 11.37 UTC, the first in the Democratic Republic of the Congo, the second in Rwanda. Media report 34 dead, 750 wounded, and considerable damage in the two countries.",
          "fr": "Deux tremblements de terre de magnitude 6.0 et 5.0 ont frappé la zone des Grands Lacs le 3 février a 7.35 et 11.37 UTC, le premier en République démocratique du Congo, le deuxième au Rwanda. Les médias font état de 34 morts, 750 blessés, et des dégâts considérables dans les deux pays."
        },
        "date": "2008-02-01T00:00:00Z",
        "url": {
          "en": "https:\/\/sertit.unistra.fr\/en\/rms\/?action=221",
          "fr": "https:\/\/sertit.unistra.fr\/cartographie-rapide\/?action=221"
        },
        "tags": [
          "charter",
          "unosat",
          "respond",
          "sertit"
        ],
        "products": [
          "https:\/\/sertit.unistra.fr\/wp-json\/rms\/v1\/actions\/221\/products\/1142",
          "https:\/\/sertit.unistra.fr\/wp-json\/rms\/v1\/actions\/221\/products\/1143",
          "https:\/\/sertit.unistra.fr\/wp-json\/rms\/v1\/actions\/221\/products\/1144",
          "https:\/\/sertit.unistra.fr\/wp-json\/rms\/v1\/actions\/221\/products\/1145",
          "https:\/\/sertit.unistra.fr\/wp-json\/rms\/v1\/actions\/221\/products\/1146",
          "https:\/\/sertit.unistra.fr\/wp-json\/rms\/v1\/actions\/221\/products\/1147",
          "https:\/\/sertit.unistra.fr\/wp-json\/rms\/v1\/actions\/221\/products\/1148",
          "https:\/\/sertit.unistra.fr\/wp-json\/rms\/v1\/actions\/221\/products\/1149"
        ],
        "charter_id": {
          "en": "Charter Action 193",
          "fr": "Charte 193"
        }
      }
    },
    ...
  ]
}

Similarly details about an activation can be accessed through URI: https://sertit.unistra.fr/wp-json/rms/v1/actions/$action_id (see previous request for action ids).

The list of products for a given action can be accessed through URI: https://sertit.unistra.fr/wp-json/rms/v1/actions/$action_id/products

Product details for a given action and a given product can be access through URI: https://sertit.unistra.fr/wp-json/rms/v1/actions/$action_id/products/$product_id

You can use this API through the browser directly or with specialized tools like the command line tool curl:

or using the javascript library Leaflet:

$.getJSON("https://sertit.unistra.fr/wp-json/rms/v1/actions", function(data) {
     L.geoJson(data, {
         style: myStyle
     }).addTo(map);
 }

Hopefully, this will provide =you an alternative way to view our catalogue of activations / products we have produced over the years.

If you have any questions do not hesitate to contact us.