API GIS

API calls for accessing GIS data, and AidData pre-defined maps and layers.

Available Methods

/aid

Returns both aggregated and non-aggregated data, depending on the number of results the query obtains once the filters have been applied.

/flows

Returns a list of aggregated flows for mapping by country.

/data/map

Returns a list of pre-defined maps from the AidData server.

/data/layer

Returns a list of pre-defined map layers defined from AidData.

gis

gis/aid

Returns both aggregated and non-aggregated data, depending on the number of results the query obtains once the filters have been applied.

Parameters
  See Parameter Quick Guide

Example

http://api.aiddata.org/gis/aid

{
  type: "countries",
  project_count: 1439253,
  term_count: 220,
  stats: {
    count: 2489601,
    total: 17733476190335.555,
    min: -6997000000,
    max: 3093077609965.7334,
    mean: 7123019.387578795,
    sum_of_squares: 1.4157241661913592e+25,
    variance: 5686499702570364000,
    std_deviation: 2384638274.9948397
  },
  items: [
    {
      term: "CAF",
      count: 6717,
      total_count: 6713,
      min: -398915.88,
      max: 3093077609965.7334,
      total: 4060730312719.5347,
      mean: 604905454.002612
    }
  ]
}

gis/flows

Returns a list of aggregated flows for mapping by country.

Parameters
  See Parameter Quick Guide

Example

http://api.aiddata.org/gis/flows

{
  type: "countries",
  term_count: 238,
  stats: {
    min: -38495668886.49493,
    max: 489775486150.9944
  },
  items: [
    {
      total: 5146372971585.201,
      max: 489775486150.9944,
      min: 0,
      avg: 32571980832.81773,
      source: {
        _id: 110593598,
        iso2: "US",
        metadata: "recipient",
        name: "United States",
        parentAgency: 110593551
      }
    }
  ]
}

gis/data/map

Returns a list of pre-defined maps from the AidData server.

Parameters
  See Parameter Quick Guide

Example

http://api.aiddata.org/gis/data/map

{
  count: 14,
  hits: [
    {
      _id: "526bde744c817be30545f16f",
      id: 1,
      description: "Map desc...",
      title: "Test 1",
      layers: [
        {
          id: "http://gis.devgateway.org/arcgis/rest/services//CCAPS/Composite_Vulnerability/MapServer",
          type: "MapServer",
          url: "http://gis.devgateway.org/arcgis/rest/services//CCAPS/Composite_Vulnerability/MapServer",
          useTiledMapService: false,
          isOsmMap: false,
          opacity: 0.7,
          selected: true,
          title: "CCAPS/Composite_Vulnerability"
        },
        {
          id: "http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer",
          type: "Map Service",
          url: "http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer",
          useTiledMapService: false,
          isOsmMap: false,
          opacity: 0.2,
          selected: true,
          title: "USA Topo Maps"
        }
      ],
      base_map: [
        {
          id: "baseLayer2938",
          url: "http://gis.devgateway.org/arcgis/rest/services/World_Street_Map/MapServer",
          useTiledMapService: true,
          isOsmMap: false,
          opacity: 1,
          selected: false
        }
      ],
      filters: [
        {
          param: "ro",
          values: [
            110593723
          ]
        }
      ],
      zoom_level: 4,
      center: {
        type: "point",
        x: 3059927.116311361,
        y: -1178964.7242702455,
        spatialReference: {
          wkid: 102100,
          latestWkid: 3857
        }
      },
      tags: [
        "test",
        " map",
        " www"
      ],
      publisher: {
        name: "theAdmin",
        mail: "no-reply@cms.aiddata.org"
      },
      publication_date: 1382925940283
    }
  ]
}

gis/data/layer

Returns a list of pre-defined map layers defined from AidData.

Parameters
  See Parameter Quick Guide

Example

http://api.aiddata.org/gis/data/layer

{
  count: 17,
  hits: [
    {
      _id: "526bde744c817be30545f16d",
      id: "http://gis.devgateway.org/arcgis/rest/services//CCAPS/AfriPop_Population_Density/MapServer",
      type: "MapServer",
      url: "http://gis.devgateway.org/arcgis/rest/services//CCAPS/AfriPop_Population_Density/MapServer",
      useTiledMapService: false,
      isOsmMap: false,
      opacity: 0.2,
      selected: true,
      title: "CCAPS/AfriPop_Population_Density"
    }
  ]
}