Features¶
A feature is used to classify a geographical place. It describes the type of a place.
XML Schema:
Fields
Name |
Type |
Description |
---|---|---|
id read-only |
String |
|
href read-only |
Field |
|
name required |
String |
|
code required |
String |
|
description required |
String |
|
feature_category required |
Nested Object |
The classification group the feature belongs to |
|
String |
|
|
Field |
|
|
String |
|
|
String |
|
date_created |
Datetime |
The time when the resource was created, in the standard Dates & Times. |
date_last_modified |
Datetime |
The time when the resource was last modified, in the standard Dates & Times. |
Get a Feature
- GET /features/(feature_id)¶
Request
curl -H "X-Application-Key: YOUR_APPLICATION_KEY"
https://rest.gadventures.com/features/209
Response
{ "id": "209", "href": "https://rest.gadventures.com/features/209", "name": "populated place", "code": "PPL", "description": "a city, town, village, or other agglomeration of buildings where people live and work", "feature_category": { "id": "4", "href": "https://rest.gadventures.com/feature_categories/4", "code": "P", "description": "Populated Places" }, "date_created": "2014-05-05T18:09:40Z", "date_last_modified": "2014-05-05T18:09:40Z" }
List Features
- GET /features¶
Request
curl -H "X-Application-Key: YOUR_APPLICATION_KEY"
https://rest.gadventures.com/features/
Response
{ "count": 669, "max_per_page": 50, "current_page": 1, "links": [ { "href": "https://rest.gadventures.com/features?max_per_page=50&page=2", "rel": "next" } ], "results": [ { "id": "10", "href": "https://rest.gadventures.com/features/10", "name": "administrative division", "code": "ADMD" }, { "id": "23", "href": "https://rest.gadventures.com/features/23", "name": "buffer zone", "code": "ZNB" }, { "id": "14", "href": "https://rest.gadventures.com/features/14", "name": "dependent political entity", "code": "PCLD" }, { "id": "9", "href": "https://rest.gadventures.com/features/9", "name": "fifth-order administrative division", "code": "ADM5" }, { "id": "1", "href": "https://rest.gadventures.com/features/1", "name": "first-order administrative division", "code": "ADM1" }, { "id": "7", "href": "https://rest.gadventures.com/features/7", "name": "fourth-order administrative division", "code": "ADM4" }, { "id": "15", "href": "https://rest.gadventures.com/features/15", "name": "freely associated state", "code": "PCLF" }, { "id": "11", "href": "https://rest.gadventures.com/features/11", "name": "historical administrative division ", "code": "ADMDH" }, { "id": "2", "href": "https://rest.gadventures.com/features/2", "name": "historical first-order administrative division", "code": "ADM1H" }, { "id": "8", "href": "https://rest.gadventures.com/features/8", "name": "historical fourth-order administrative division", "code": "ADM4H" }, { "id": "16", "href": "https://rest.gadventures.com/features/16", "name": "historical political entity", "code": "PCLH" }, { "id": "4", "href": "https://rest.gadventures.com/features/4", "name": "historical second-order administrative division", "code": "ADM2H" }, { "id": "6", "href": "https://rest.gadventures.com/features/6", "name": "historical third-order administrative division", "code": "ADM3H" }, { "id": "17", "href": "https://rest.gadventures.com/features/17", "name": "independent political entity", "code": "PCLI" }, { "id": "12", "href": "https://rest.gadventures.com/features/12", "name": "leased area", "code": "LTER" }, { "id": "20", "href": "https://rest.gadventures.com/features/20", "name": "parish", "code": "PRSH" }, { "id": "13", "href": "https://rest.gadventures.com/features/13", "name": "political entity", "code": "PCL" }, { "id": "3", "href": "https://rest.gadventures.com/features/3", "name": "second-order administrative division", "code": "ADM2" }, { "id": "18", "href": "https://rest.gadventures.com/features/18", "name": "section of independent political entity", "code": "PCLIX" }, { "id": "19", "href": "https://rest.gadventures.com/features/19", "name": "semi-independent political entity", "code": "PCLS" }, { "id": "21", "href": "https://rest.gadventures.com/features/21", "name": "territory", "code": "TERR" }, { "id": "5", "href": "https://rest.gadventures.com/features/5", "name": "third-order administrative division", "code": "ADM3" }, { "id": "22", "href": "https://rest.gadventures.com/features/22", "name": "zone", "code": "ZN" }, { "id": "161", "href": "https://rest.gadventures.com/features/161", "name": "agricultural colony", "code": "AGRC" }, { "id": "194", "href": "https://rest.gadventures.com/features/194", "name": "agricultural reserve", "code": "RESA" }, { "id": "162", "href": "https://rest.gadventures.com/features/162", "name": "amusement park", "code": "AMUS" }, { "id": "181", "href": "https://rest.gadventures.com/features/181", "name": "arctic land", "code": "LAND" }, { "id": "163", "href": "https://rest.gadventures.com/features/163", "name": "area", "code": "AREA" }, { "id": "205", "href": "https://rest.gadventures.com/features/205", "name": "artillery range", "code": "RNGA" }, { "id": "166", "href": "https://rest.gadventures.com/features/166", "name": "battlefield", "code": "BTL" }, { "id": "173", "href": "https://rest.gadventures.com/features/173", "name": "business center", "code": "CTRB" }, { "id": "167", "href": "https://rest.gadventures.com/features/167", "name": "clearing", "code": "CLG" }, { "id": "170", "href": "https://rest.gadventures.com/features/170", "name": "coalfield", "code": "COLF" }, { "id": "172", "href": "https://rest.gadventures.com/features/172", "name": "coast", "code": "CST" }, { "id": "168", "href": "https://rest.gadventures.com/features/168", "name": "common", "code": "CMN" }, { "id": "169", "href": "https://rest.gadventures.com/features/169", "name": "concession area", "code": "CNS" }, { "id": "171", "href": "https://rest.gadventures.com/features/171", "name": "continent", "code": "CONT" }, { "id": "164", "href": "https://rest.gadventures.com/features/164", "name": "drainage basin", "code": "BSND" }, { "id": "202", "href": "https://rest.gadventures.com/features/202", "name": "economic region", "code": "RGNE" }, { "id": "175", "href": "https://rest.gadventures.com/features/175", "name": "field(s)", "code": "FLD" }, { "id": "195", "href": "https://rest.gadventures.com/features/195", "name": "forest reserve", "code": "RESF" }, { "id": "177", "href": "https://rest.gadventures.com/features/177", "name": "gasfield", "code": "GASF" }, { "id": "179", "href": "https://rest.gadventures.com/features/179", "name": "gravel area", "code": "GVL" }, { "id": "178", "href": "https://rest.gadventures.com/features/178", "name": "grazing area", "code": "GRAZ" }, { "id": "203", "href": "https://rest.gadventures.com/features/203", "name": "historical region", "code": "RGNH" }, { "id": "174", "href": "https://rest.gadventures.com/features/174", "name": "housing development", "code": "DEVH" }, { "id": "196", "href": "https://rest.gadventures.com/features/196", "name": "hunting reserve", "code": "RESH" }, { "id": "180", "href": "https://rest.gadventures.com/features/180", "name": "industrial area", "code": "INDS" }, { "id": "176", "href": "https://rest.gadventures.com/features/176", "name": "irrigated field(s)", "code": "FLDI" }, { "id": "204", "href": "https://rest.gadventures.com/features/204", "name": "lake region", "code": "RGNL" } ] }