全球恐怖袭击可视化系统后端数据Restful API及数据管理
API root: http://47.94.208.122/gtd/api
API schema: http://47.94.208.122/gtd/api/schema
调用参数:
参数 | 描述 | 示例 |
---|---|---|
year | 年份 | 1970 |
countryid | 国家编号 | 100 |
regionid | 地区编号 | 12 |
keyword | 关键词 | 10 |
start | 开始时间 | 19700101 |
end | 结束时间 | 19701231 |
poly | 多边形边界 | [(0,0),(0,1),(1,1),(0,0)] |
format | 格式 | api/json |
返回数据格式为geojson:
{
"type": "FeatureCollection",
"features": [
{
"id": "197012310002",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-118.027606,
34.06857
]
},
"properties": {
"year": 1970,
"month": 12,
"day": 31,
"city": "El Monte ",
"country": {
"countryId": 165,
"countryName": "United States",
"region": 1
},
"dayInYear": 365
}
},
]
}
pk=eventid
eg: http://47.94.208.122/gtd/api/tdinfo/201701270001
参数 | 描述 | 示例 |
---|---|---|
year | 年份 | 1970 |
countryid | 国家编号 | 100 |
regionid | 地区编号 | 12 |
keyword | 关键词 | 10 |
start | 开始时间 | 19700101 |
end | 结束时间 | 19701231 |
poly | 多边形边界 | [(0,0),(0,1),(1,1),(0,0)] |
format | 格式 | api/json |
返回数据格式为geojson:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"coordinates": [
-118.027606,
34.06857
],
"type": "Point"
},
"properties": {
"year": 1970,
"month": 12,
"day": 31,
"city": "El Monte ",
"country_id": {
"country_id": 217,
"country_name": "United States"
}
}
}
]
}
返回格式数据格式:
pk=countryId
eg: http://47.94.208.122/gtd/api/country/1
返回所有国家边界多边形数据。