GET Api/v{apiVersion}/Areas/{id}/AsGeoJson?includeServiceLocations={includeServiceLocations}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

includeServiceLocations

boolean

Default value is False

apiVersion

string

None.

Body Parameters

None.

Response Information

Resource Description

FeatureCollection
NameDescriptionTypeAdditional information
type

GeoJSONObjectType

None.

features

Collection of Feature

None.

bbox

Collection of decimal number

None.

crs

ICRSObject

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Cannot write a null value for property 'features'. Property requires a value. Path ''.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Cannot write a null value for property 'features'. Property requires a value. Path ''.

application/xml, text/xml

Sample:
<FeatureCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GeoJSON.Net.Feature">
  <BoundingBoxes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/GeoJSON.Net">
    <d2p1:double>1.1</d2p1:double>
    <d2p1:double>2.1</d2p1:double>
  </BoundingBoxes>
  <CRS i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/GeoJSON.Net" />
</FeatureCollection>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Type"

FeatureCollection
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BoundingBoxes[0]"

1,1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BoundingBoxes[1]"

2,1
--MultipartDataMediaFormatterBoundary1q2w3e--