GET api/area/{id}

Gets an Area by its string Id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The area id/fid

string

Required

Body Parameters

None.

Response Information

Resource Description

An AreaViewModel

AreaViewModel
NameDescriptionTypeAdditional information
Bbox

UTM 33 bounding box

string

None.

Dataset

Area type

string

None.

GoogleMercatorBbox

Google Mercator bounding box

string

None.

Id

The Fid feature Id of the Area

string

None.

Name

Area Name

string

None.

ParentFid

Parent Fid of municipalities

string

None.

Response Formats

text/javascript

Sample:
({"Bbox":"277827,7025437,298006,7048475","Dataset":"Kommune","GoogleMercatorBbox":null,"Id":"1663","Name":"Malvik","ParentFid":"16"});

application/json, text/json

Sample:
{
  "Bbox": "277827,7025437,298006,7048475",
  "Dataset": "Kommune",
  "GoogleMercatorBbox": null,
  "Id": "1663",
  "Name": "Malvik",
  "ParentFid": "16"
}

application/xml, text/xml

Sample:
<AreaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Artskart.UI.Models">
  <Bbox>277827,7025437,298006,7048475</Bbox>
  <Dataset>Kommune</Dataset>
  <GoogleMercatorBbox i:nil="true" />
  <Id>1663</Id>
  <Name>Malvik</Name>
  <ParentFid>16</ParentFid>
</AreaViewModel>

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

Sample:
Will return an Excel worksheet fileresult. Generate by using accept header or add '?format=excel' to request url.