Regions across datasets

 
This endpoint returns all the common regions across the datasets provided by the user by comparing all the optional dataset regions with the base dataset regions. 
 
Input:
At least one unique dataset identifier requiered to fetch up the regions and rest are optional, user can pass any number of datasets separated by comma's to get the common regions out of it. 
 
Ex: http://data.gov.om/api/1.0/meta/dataset/CDIACTACHIINDUSAA/regions?ds=WBWDIGDF,EIAIES2012
 
Result:
NameType Description 
DatasetIdString Unique dataset Id
geoDimensionIdstring Id of geographical dimension 
regionslist<regions>

List of common regions contains:
key: Key for the region
name: Name of the region
regionId: Id of the region
fields: Metadat fields of the region

 

Example:
Get: http://data.gov.om/api/1.0/meta/dataset/OMINF2016/regions?ds=OMINTRD2016 
[
  {
    "datasetId": "OMINTRD2016",
    "geoDimensionId": "region",
    "regions": [
      {
        "key": 1000000,
        "name": "Oman",
        "regionId": "OM",
        "isRealRegion": true,
        "level": 0,
        "fields": {
          "id": "1",
          "regionid": "OM",
          "iso": "OM",
          "description": ""
        }
      }
    ]
  },
  {
    "datasetId": "OMINF2016",
    "geoDimensionId": "region",
    "regions": [
      {
        "key": 1000000,
        "name": "Oman",
        "regionId": "OM",
        "isRealRegion": true,
        "level": 0,
        "fields": {
          "id": "1",
          "regionid": "OM",
          "iso": "OM",
          "description": ""
        }
      }
    ]
  }
]