Parameter | Type | Description |
---|---|---|
id |
Integer |
Unique identifier of the category. |
type |
String |
Is always Feature . |
geometry |
Object |
GeoJSON Geometry object describing the contribution’s location. |
properties |
Object |
Attributes and their values. The key names correspond to the field keys (see field response for more info). |
display_field |
Object |
Display attribute and its value. Defaults to the first field of the contribution’s category. The key name correspond to the field key (see field response for more info). |
expiry_field |
String |
Expiry date for the contribution. |
meta |
Object |
Meta information of the contribution. |
comments |
Array |
List of comments to the contribution. |
media |
Array |
List of documents added to the contribution. |
review_comments |
Array |
List of comments that refer to a problem with this contribution. Will be empty if contribution status is active . |
{
"id": 2966,
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-0.144415497779846,
51.54671869005856
]
},
"properties": {
"child_friendly": false,
"name": "The Grafton",
"address": "20 Prince of Wales Rd, London NW5 3LG",
"expires_at": "2030-01-12T11:12:38.690Z"
},
"display_field": {
"key": "name",
"value": "The Grafton"
},
"expiry_field": "2030-01-12T11:12:38.690Z",
"location": {
"id": 2964,
"name": null,
"description": null,
"created_at": "2014-09-19T15:51:32.790Z"
},
"meta": {
"creator": {
"id": 2,
"display_name": "Oliver"
},
"isowner": true,
"updator": null,
"status": "active",
"created_at": "2014-09-19T15:51:32.804Z",
"updated_at": "2014-09-21T15:51:32.804Z",
"version": 1,
"category": {
"id": 40,
"name": "Pubs",
"description": "",
"status": "active",
"fields": [
{
"id": 117,
"name": "Name",
"key": "name",
"fieldtype": "TextField",
"description": "",
"status": "active",
"required": true
},
{
"id": 118,
"name": "Address",
"key": "address",
"fieldtype": "TextField",
"description": "",
"status": "active",
"required": false
},
{
"id": 119,
"name": "Average spend",
"key": "average_spend",
"fieldtype": "NumberField",
"description": "How much would a person usually spend?",
"status": "active",
"required": false
}
],
"colour": "#0033ff",
"created_at": "2014-09-17T00:00:00Z"
}
},
"comments": [],
"review_comments": [],
"media": []
}