Secure websites use HTTPS
Updated 7 months ago
SPF (Singapore Police Force)Attribute Legend
Attributes | Data Type | Description |
---|---|---|
Name | Text | - |
Description | Text | - |
Dataset preview
This code can be used to view the raw JSON dataset for Singapore Police Force - National Day Parade 2022 Special Event Area. Large datasets may be truncated in the preview. Please download the dataset for complete data.
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
},
"features": [
{
"type": "Feature",
"properties": {
"Name": "kml_1",
"Description": "<center><table><tr><th colspan='2' align='center'><em>Attributes</em></th></tr><tr bgcolor=\"#E3E3F3\"> <th>SHAPE_LENG</th> <td>12522.3506201</td> </tr><tr bgcolor=\"\"> <th>INC_CRC</th> <td>C014D79FF176E372</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>FMEL_UPD_D</th> <td>20220621101810</td> </tr></table></center>"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
103.86949464298,
1.30420153926175,
0
],
[
103.87194836319,
1.30399852699882,
0
],
[
103.87208950442,
1.30207695810263,
0
],
[
103.873272644721,
1.30026364333183,
0
],
[
103.874906200019,
1.29920810577811,
0
],
[
103.877335604335,
1.29924365112111,
0
],
[
103.877553906683,
1.29929926570464,
0
],
[
103.876760836375,
1.29631667619488,
0
],
[
103.873544235143,
1.29547457628524,
0
],
[
103.868181010708,
1.29484240583823,
0
],
[
103.870113632505,
1.28918674396633,
0
],
[
103.873524228554,
1.28427284472158,
0
],
[
103.876204837353,
1.28191284319879,
0
],
[
103.875232468849,
1.28098007052131,
0
],
[
103.875221066611,
1.28099300312404,
0
],
[
103.87381112585,
1.28215776627712,
0
],
[
103.871470039088,
1.28043524085013,
0
],
[
103.872127839948,
1.27858757757849,
0
],
[
103.871878125937,
1.27728072003172,
0
],
[
103.87124194033,
1.2764253270944,
0
],
[
103.866335704528,
1.27278378929226,
0
],
[
103.864990222945,
1.27378436840894,
0
],
[
103.864700321378,
1.2739491201215,
0
],
[
103.864480334595,
1.27409297108055,
0
],
[
103.863706891752,
1.27552567517562,
0
],
[
103.862457736464,
1.27542700541342,
0
],
[
103.851940318505,
1.28217833227942,
0
],
[
103.851272248858,
1.28259045615555,
0
],
[
103.851301306205,
1.28367766532012,
0
],
[
103.850335476015,
1.28377634721789,
0
],
[
103.850427009577,
1.28503319673072,
0
],
[
103.849440829256,
1.28550546251635,
0
],
[
103.849577605986,
1.28566189867952,
0
],
[
103.848816233383,
1.2880167519777,
0
],
[
103.849507885012,
1.2894216694014,
0
],
[
103.849986596826,
1.29018730156671,
0
],
[
103.848906007109,
1.29105920659218,
0
],
[
103.850594704934,
1.29450086444014,
0
],
[
103.854033596198,
1.29848142719667,
0
],
[
103.855028637329,
1.29766546474703,
0
],
[
103.856115583408,
1.29913973244655,
0
],
[
103.857367638431,
1.29776197536366,
0
],
[
103.8603098764,
1.29862214105026,
0
],
[
103.8606519119,
1.29904729729005,
0
],
[
103.869158763433,
1.30462957985731,
0
],
[
103.86949464298,
1.30420153926175,
0
]
]
]
}
}
]
}
This code can be used to test a sample API query. It retrieves the data catalogue of this dataset. For a complete guide on query parameters and syntax, please refer to the API documentation
import requests
dataset_id = "d_60f198df581febf95a64539798a29a43"
url = "https://api-open.data.gov.sg/v1/public/api/datasets/" + dataset_id + "/poll-download"
response = requests.get(url)
json_data = response.json()
if json_data['code'] != 0:
print(json_data['errMsg'])
exit(1)
url = json_data['data']['url']
response = requests.get(url)
print(response.text)
This dataset can be reused and cited in research publications.
31 Jul 2023
Free forever for personal or commercial use, under the Open Data Licence.