API version v1.0.0
Search and identify critical infrastructure within a specified area.
Limitation: Query time interval must be less than one minute. This will allow 1440 queries per day.
https://api.crisisinfo.eu/get-critical-infra-info/v1/
Parameter | Description | Optional | Default |
---|---|---|---|
api_key | Authentication API key | Required | None |
type | Spatial search type. (possible: circle and polygon) | Required | None |
radius | If the search type is circle, it is the diameter of the radius (in kilometers) | True | 10 |
latitude | Latitude, WGS84 decimal format | Required | None |
lontitude | Longitude, WGS84 decimal format | Required | None |
Method: GET |
URL: https://api.crisisinfo.eu/get-critical-infra-info/v1/ |
{
"api_key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"type":1,
"radius":15000,
"latitude":46.595301,
"longitude":18.830262
}
{
"type": "FeatureCollection",
"metadata": {
"generated": "Wed, 23 Sep 2020 10:30:00 +0000",
"url": "https://api.crisisinfo.eu/get-critical-infra-info/v1/",
"title": "CRISISINFO - Search and identify critical infrastructure within a specified area.",
"status": 200,
"message": "Data has been published",
"api": "1.0.0",
"auth": 1
},
"features": [
{
"id": 29832,
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
18.9139,
46.895802
]
},
"properties": {
"data_type": "airports",
"ident": "LHDV",
"airport_name": "Dunaújváros Airfield",
"airport_type": "small_airport",
"country_name": "Hungary",
"admin_name": "County of Fejér",
"settlement": "Dunaújváros",
"elevation": "394"
}
},
{
"id": 43983,
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
18.942421,
46.549613
]
},
"properties": {
"data_type": "airports",
"ident": "HU-0002",
"airport_name": "Kalocsa/Foktő Airport",
"airport_type": "medium_airport",
"country_name": "Hungary",
"admin_name": "County of Bács-Kiskun",
"settlement": "Kalocsa/Foktő",
"elevation": "284"
}
},
{
"id": 42927,
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
18.8536,
46.5739
]
},
"properties": {
"data_type": "power_plants",
"power_plant_name": "Paksi Atomerőmű",
"country_name": "Hungary",
"capacity_mw": "1886.8",
"primary_fuel": "Nuclear"
}
}
]
}
Authentication failed
{
"type": "FeatureCollection",
"metadata": {
"generated": "Mon, 25 Nov 2019 16:15:54 +0000",
"url": "https://api.crisisinfo.eu/get-critical-infra-info/v1/",
"title": "CRISISINFO - Search and identify critical infrastructure whitin a specified area",
"status": 600,
"message": "Wrong, missing or expired api key",
"api": "1.0.0",
"auth": 0
}
}
Wrong spatial search type
{
"type": "FeatureCollection",
"metadata": {
"generated": "Thu, 17 Sep 2020 11:22:59 +0000",
"url": "https://api.crisisinfo.eu/get-critical-infra-info/v1/",
"title": "CRISISINFO - Search and identify critical infrastructure within a specified area.",
"status": 604,
"message": "Invalid spatial type definintion",
"api": "1.0.0",
"auth": 1
}
}
Invalid latitude or longitude value
{
"type": "FeatureCollection",
"metadata": {
"generated": "Thu, 17 Sep 2020 11:25:12 +0000",
"url": "https://api.crisisinfo.eu/get-critical-infra-info/v1/",
"title": "CRISISINFO - Search and identify critical infrastructure within a specified area.",
"status": 606,
"message": "Invalid longitude value",
"api": "1.0.0",
"auth": 1
}
}
Rate Limited | True |
Response Format | GeoJSON |
Authentication | Yes |