API Documentation
APIWeb.FeatureCollectionOrganizations ¶
APIWeb.FeatureCollectionOrganizations ¶
APIWeb.FeatureCollectionOrganizations createPOST/UUU/
Example URI
POST /UUU/
Request
Create feature collection organizationPOST /UUU/feature-collection-organization
Headers
content-type: application/vnd.api+json
accept: application/vnd.api+jsonBody
{
"data": {
"attributes": {
"organization_id": "TGP",
"feature_collection_id": "POI.UUU.0001"
}
}
}Response
201Headers
content-type: application/vnd.api+json; charset=utf-8
cache-control: max-age=0, private, must-revalidateBody
{
"meta": null,
"links": {
"self": "http://www.example.com/api/feature-collection/POI.UUU.0001"
},
"included": [],
"data": {
"type": "feature-collection",
"relationships": {},
"links": {
"self": "http://www.example.com/api/feature-collection/POI.UUU.0001"
},
"id": "POI.UUU.0001",
"attributes": {
"visible": true,
"shared_with": null,
"organization_id": "UUU",
"name": "POI SMART TRACK",
"feature_limit": 5,
"description": "Smart Track"
}
}
}APIWeb.FeatureCollectionOrganizations deleteDELETE/UUU/feature-collection-organization/
Example URI
DELETE /UUU/feature-collection-organization/
Request
Delete chosen feature collection organizationBody
**DELETE** `/UUU/feature-collection-organization/POI.UUU.0001`Response
204Headers
cache-control: max-age=0, private, must-revalidate
content-type: application/vnd.api+json; charset=utf-8APIWeb.FeatureCollections ¶
APIWeb.FeatureCollections ¶
APIWeb.FeatureCollections createPOST/UUU/
Example URI
POST /UUU/
Request
Create feature collectionPOST /UUU/feature-collections
Headers
content-type: application/vnd.api+json
accept: application/vnd.api+jsonBody
{
"data": {
"id": "POI.UUU.0001",
"attributes": {
"visible": "false",
"type": "POI",
"organization_id": "UUU",
"name": "POI test",
"feature_limit": 5,
"description": "POI pour test"
}
}
}Response
201Headers
content-type: application/vnd.api+json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
location: /UUU/feature-collections/POI.UUU.0001Body
{
"meta": null,
"links": {
"self": "http://www.example.com/api/feature-collection/POI.UUU.0001"
},
"included": [],
"data": {
"type": "feature-collection",
"relationships": {},
"links": {
"self": "http://www.example.com/api/feature-collection/POI.UUU.0001"
},
"id": "POI.UUU.0001",
"attributes": {
"visible": false,
"shared_with": null,
"organization_id": "UUU",
"name": "POI test",
"feature_limit": 5,
"description": "POI pour test"
}
}
}APIWeb.FeatureCollections deleteDELETE/UUU/feature-collections/
Example URI
DELETE /UUU/feature-collections/
Request
Delete chosen feature collectionBody
**DELETE** `/UUU/feature-collections/POI.UUU.0001`Response
204Headers
cache-control: max-age=0, private, must-revalidate
content-type: application/vnd.api+json; charset=utf-8APIWeb.FeatureCollections indexGET/UUU/
Example URI
GET /UUU/
Request
List all feature collectionBody
**GET** `/UUU/feature-collections`Response
200Headers
content-type: application/vnd.api+json; charset=utf-8
cache-control: max-age=0, private, must-revalidateBody
{
"meta": null,
"links": {
"self": "http://www.example.com/api/feature-collection"
},
"included": [],
"data": [
{
"type": "feature-collection",
"relationships": {},
"links": {
"self": "http://www.example.com/api/feature-collection/POI.UUU.0002"
},
"id": "POI.UUU.0002",
"attributes": {
"visible": true,
"shared_with": [
"UUU"
],
"organization_id": "UUU",
"name": "POI SMART TRACK",
"feature_limit": 5,
"description": "Smart Track"
}
}
]
}APIWeb.FeatureCollections showGET/UUU/feature-collections/
Example URI
GET /UUU/feature-collections/
Request
Show feature collectionBody
**GET** `/UUU/feature-collections/POI.UUU.0001`Response
200Headers
content-type: application/vnd.api+json; charset=utf-8
cache-control: max-age=0, private, must-revalidateBody
{
"meta": null,
"links": {
"self": "http://www.example.com/api/feature-collection/POI.UUU.0001"
},
"included": [],
"data": {
"type": "feature-collection",
"relationships": {},
"links": {
"self": "http://www.example.com/api/feature-collection/POI.UUU.0001"
},
"id": "POI.UUU.0001",
"attributes": {
"visible": true,
"shared_with": null,
"organization_id": "UUU",
"name": "POI SMART TRACK",
"feature_limit": 5,
"description": "Smart Track"
}
}
}APIWeb.FeatureCollections updatePUT/UUU/feature-collections/
Example URI
PUT /UUU/feature-collections/
Request
Update chosen feature collectionPUT /UUU/feature-collections/POI.UUU.0001
Headers
content-type: application/vnd.api+json
accept: application/vnd.api+jsonBody
{
"data": {
"id": "POI.UUU.0001",
"attributes": {
"name": "some updated name"
}
}
}Response
200Headers
content-type: application/vnd.api+json; charset=utf-8
cache-control: max-age=0, private, must-revalidateBody
{
"meta": null,
"links": {
"self": "http://www.example.com/api/feature-collection/POI.UUU.0001"
},
"included": [],
"data": {
"type": "feature-collection",
"relationships": {},
"links": {
"self": "http://www.example.com/api/feature-collection/POI.UUU.0001"
},
"id": "POI.UUU.0001",
"attributes": {
"visible": false,
"shared_with": null,
"organization_id": "UUU",
"name": "some updated name",
"feature_limit": 5,
"description": "POI pour test"
}
}
}APIWeb.IconCategories ¶
APIWeb.IconCategories ¶
APIWeb.IconCategories indexGET/2MI/
Example URI
GET /2MI/
Request
List all icon categoryBody
**GET** `/2MI/icon-categories`Response
200Headers
content-type: application/vnd.api+json; charset=utf-8
cache-control: max-age=0, private, must-revalidateBody
{
"meta": null,
"links": {
"self": "http://www.example.com/api/icon-categories"
},
"included": [],
"data": [
{
"type": "icon-categories",
"relationships": {},
"links": {
"self": "http://www.example.com/api/icon-categories/1"
},
"id": "1",
"attributes": {
"name": "Smart Track"
}
},
{
"type": "icon-categories",
"relationships": {},
"links": {
"self": "http://www.example.com/api/icon-categories/2"
},
"id": "2",
"attributes": {
"name": "Utiles"
}
}
]
}APIWeb.Icons ¶
APIWeb.Icons ¶
APIWeb.Icons indexGET/2MI/icon-categories/2/
Example URI
GET /2MI/icon-categories/2/
Request
List icon in categoryBody
**GET** `/2MI/icon-categories/2/icon`Response
200Headers
content-type: application/vnd.api+json; charset=utf-8
cache-control: max-age=0, private, must-revalidateBody
{
"meta": null,
"links": {
"self": "http://www.example.com/api/icon"
},
"included": [],
"data": [
{
"type": "icon",
"relationships": {},
"links": {
"self": "http://www.example.com/api/icon/1"
},
"id": "1",
"attributes": {
"icon_category": {
"name": "Utiles",
"id": "2",
"__meta__": {
"state": "built",
"source": [
null,
"icon_category"
],
"context": null
}
},
"filename": "bulldozer.png"
}
},
{
"type": "icon",
"relationships": {},
"links": {
"self": "http://www.example.com/api/icon/2"
},
"id": "2",
"attributes": {
"icon_category": {
"name": "Utiles",
"id": "2",
"__meta__": {
"state": "built",
"source": [
null,
"icon_category"
],
"context": null
}
},
"filename": "splash.png"
}
}
]
}APIWeb.ReverseGeocodings ¶
APIWeb.ReverseGeocodings ¶
APIWeb.ReverseGeocodings showGET/reverse-geocoding/
Example URI
GET /reverse-geocoding/
Request
Reverse geocoding Reverse geocoding with geohashBody
**GET** `/reverse-geocoding/mhg09bpzc95?filter%5Bfeature_collection%5D%5B%5D[]=POI.UUU.0001`Response
200Headers
content-type: application/vnd.api+json; charset=utf-8
cache-control: max-age=0, private, must-revalidateBody
{
"meta": null,
"links": {
"self": "http://www.example.com/reverse-geocoding/mh9u9t1610g"
},
"included": [],
"data": {
"type": "reverse-geocoding",
"relationships": {},
"meta": {
"filter": {
"feature_collection": [
"POI.UUU.0001"
]
},
"feature": {
"type": "Point",
"coordinates": [
47.5286197,
-18.8686705
]
}
},
"links": {
"self": "http://www.example.com/reverse-geocoding/mh9u9t1610g"
},
"id": "mh9u9t1610g",
"attributes": {
"nominatim": {
"village": "Ivandry",
"type": "residential",
"suburb": "Ampetsapetsa",
"state": "Analamanga",
"postcode": "1",
"industrial": "Immeuble Assist Ivandry",
"country_code": "mg",
"country": "Madagasikara",
"category": "highway"
},
"near": [],
"inside": [],
"display_name": "Ampetsapetsa, Analamanga"
}
}
}Request
Reverse geocoding Reverse geocoding with latitude and longitudeBody
**GET** `/reverse-geocoding/?filter%5Bfeature_collection%5D%5B%5D[]=POI.UUU.0001&lat=-18.86867&lon=47.528620000000004`Response
200Headers
content-type: application/vnd.api+json; charset=utf-8
cache-control: max-age=0, private, must-revalidateBody
{
"meta": null,
"links": {
"self": "http://www.example.com/reverse-geocoding/mh9u9t1610g"
},
"included": [],
"data": {
"type": "reverse-geocoding",
"relationships": {},
"meta": {
"filter": {
"feature_collection": [
"POI.UUU.0001"
]
},
"feature": {
"type": "Point",
"coordinates": [
47.5286197,
-18.8686705
]
}
},
"links": {
"self": "http://www.example.com/reverse-geocoding/mh9u9t1610g"
},
"id": "mh9u9t1610g",
"attributes": {
"nominatim": {
"village": "Ivandry",
"type": "residential",
"suburb": "Ampetsapetsa",
"state": "Analamanga",
"postcode": "1",
"industrial": "Immeuble Assist Ivandry",
"country_code": "mg",
"country": "Madagasikara",
"category": "highway"
},
"near": [],
"inside": [],
"display_name": "Ampetsapetsa, Analamanga"
}
}
}