Secure websites use HTTPS
Updated 6 months ago
MINDEF (Ministry of Defence)Attribute Legend
Attributes | Data Type | Description |
---|---|---|
Name | Text | - |
Description | Text | - |
Dataset preview
This code can be used to view the raw JSON dataset for NAPFA Test Centre. 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>BLK</th> <td>297</td> </tr><tr bgcolor=\"\"> <th>ROAD_NAME</th> <td>LOR 6 TOA PAYOH</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>POSTAL_COD</th> <td>319389</td> </tr><tr bgcolor=\"\"> <th>REMARKS</th> <td></td> </tr><tr bgcolor=\"#E3E3F3\"> <th>TYPE_NAME</th> <td>NAPFA Test Venue</td> </tr><tr bgcolor=\"\"> <th>INC_CRC</th> <td>D179A5B33B99EB4A</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>FMEL_UPD_D</th> <td>20121123170207</td> </tr><tr bgcolor=\"\"> <th>NAME</th> <td>TOA PAYOH STADIUM</td> </tr></table></center>"
},
"geometry": {
"type": "Point",
"coordinates": [
103.852383215997,
1.33070503999913,
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_fb02554004cad17029a7e68819124973"
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.