v1

latestOpenAPI 3.0.02026-07-243964175.3 KB
features

v4 /surveyresources/{surveyResourceId}/features.json /surveyresources/

Returns features, their attributes and optional supplementary data within the given polygon or address, for the given survey resource.

get/surveyresources/{surveyResourceId}/features.json

Path parameters

surveyResourceIdstring required

The ID of the survey resource to fetch AI data from.

Query parameters

polygonstring

Represents the Area Of Interest (AOI) to query against. It is depicted by a set of points (longitude/latitude pairs) where the first and last point must be the same. The polygon must not self-intersect.

It cannot be used with the address geocoding parameters (streetAddress, city, state, zip and country), or with an aoi defined in the request body for the HTTP POST variant endpoints.

Must be omitted when TXv3 token authorization is used.

bulkboolean

Bulk determines whether if the request is part of a large batch of requests, meaning requests will not be rate-limited.

packsstring

Packs accepts a list of comma-separated product packs. This returns specific features and attributes under the pack. The response will return all features and attributes that the user is entitled to if no packs are provided.

It cannot be used with the classes query parameter. This parameter is ignored if used with an empty value.

classesstring

Classes accepts a list of comma-separated feature class IDs. Features classes not requested will be filtered out of the response. The full list of available feature classes can be obtained by using the classes.json endpoint (Feature class IDs are in the id field for classes of type Feature). The response will include all feature classes that the user is entitled to if the query parameter is not specified.

It cannot be used with the packs query parameter. This parameter is ignored if used with an empty value.

streetAddressstring

The street address for a geocoded request. Should consist of the street number, street name, and street type.

It cannot be used with the polygon query parameter.

Must be omitted when TXv3 token authorization is used.

citystring

The city, suburb, or locality for a geocoded request.

It cannot be used with the polygon query parameter.

Must be omitted when TXv3 token authorization is used.

statestring

The two-letter state code for a geocoded request.

It cannot be used with the polygon query parameter.

Must be omitted when TXv3 token authorization is used.

zipstring

The five-digit ZIP code or nine-digit ZIP+4 code for US addresses or the four-digit postal code for AU addresses for a geocoded request.

It cannot be used with the polygon query parameter.

Must be omitted when TXv3 token authorization is used.

country'US' | 'AU'

The two-letter country code for the geocoded request. Only supports US and AU. Defaults to US when geocoding is used without supplying the country code.

It cannot be used with the polygon query parameter.

Must be omitted when TXv3 token authorization is used.

alphaboolean

When set to true, causes alpha classes to be included in results.

betaboolean

When set to true, causes beta classes to be included in results.

parcelModeboolean

When set to true, the API will treat the input AOI (or address) as a parcel boundary. In this mode, the API will mark the features that are considered to be part of the parcel with the belongsToParcel flag. Features that are part of single-parcel structures will be returned in their entirety, while features that are part of multi-parcel structures will be clipped to the parcel boundary. In this case, the clippedGeometry field will be added to the feature containing the geometry clipped to the parcel boundary.

In this mode, supplementary data calculations will also take into account the parcel boundary and use the clipped geometry.

Parcel mode is only supported for gen6 system versions. If the resource does not resolve to a gen6 resource, the API will not include parcel mode data in the response and will not calculate supplementary data using the clipped geometry.

See: https://developer.nearmap.com/docs/parcel-mode-user-guide for a technical guide of the parcel mode algorithms.

includestring

A comma-separated list of supplementary data to include in the response. The currently supported values are: roofSpotlightIndex, roofConditionConfidenceStats, damage, defensibleSpace, hurricaneScore, windScore, hailScore, wildfireScore, windHailRiskScore, or all for all types of supplementary data available given the user's entitlements and request type (bulk requests may support a subset of supplementary data sources).

Inclusion of supplementary data is only supported for gen6 system versions. If the resource does not resolve to a gen6 resource, the API will not include supplementary data in the response.

damageModelVersionstring

When set, the API will use the specified damage model version when calculating damage supplementary data. If not set, the latest damage model version available will be used.

Currently supported model versions are: B.0 and B.1 (latest).

Headers

X-Nearmap-Ext-Referencestring

Allows a reference string to be echoed back opaquely in the body of the response.

Response

OK

systemVersionstring required

The version of the system used to generate the AI data.

resourceIdstring required

The ID of the survey resource.

surveyIdstring required

The survey ID of the survey associated with the survey resource.

surveyDatestring date required

The date of the survey capture.

creditsinteger required

The number of credits used for this request.

linkstring required

The MapBrowser link to the location that was requested.

geomatchedAddressstring

Matched address used for geocoded requests.

perspective'Vert' | 'TrueOrtho' required

The perspective used to generate the AI data.

referencestring

The reference passed in via the X-Nearmap-Ext-Reference request header value, if it is present. It is up to the user to track the semantics of this field. E.g. they may wish to interpret it as an insurance policy ID.

extentMinXnumber required

Approximate minimum longitude of the AOI extent.

extentMinYnumber required

Approximate minimum latitude of the AOI extent.

extentMaxXnumber required

Approximate maximum longitude of the AOI extent.

extentMaxYnumber required

Approximate maximum latitude of the AOI extent.

prereleaseboolean

Indicates whether or not the system version used to serve the request is a preview release. If it's not a preview release, then it's a regular GA release. This field is only populated if the alpha or beta request query parameters are set to true or a preview release is explicitly requested.

isRapidSurveyResourceboolean

Indicates whether or not the survey resource is a rapid survey resource. This field is only present if the rapid query parameter is set to true.

partialResourceboolean

Indicates that the resource only has prediction generated in certain areas of the survey. While it may have coverage in the AOI, it may not have coverage in other areas of the survey boundary.