Secure websites use HTTPS
Updated 4 months ago
MHA (Ministry of Home Affairs)Attribute Legends
Attributes | Data Type | Description |
---|---|---|
Name | Text | - |
Description | Text | - |
Dataset preview
This code can be used to view the raw JSON dataset for Protected Area under Section 7 Air Navigation Act. 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>LOCALES</th> <td>CAB West</td> </tr><tr bgcolor=\"\"> <th>DESCRIPTIO</th> <td>Protected Areas under Air Navigation Act</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>INC_CRC</th> <td>D8863630C3673E2A</td> </tr><tr bgcolor=\"\"> <th>FMEL_UPD_D</th> <td>20160224175217</td> </tr></table></center>"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
104.018917063637,
1.36259891826959,
0
],
[
104.017741032162,
1.35983830573826,
0
],
[
104.018577875628,
1.35947469864586,
0
],
[
104.018578284461,
1.35947453854265,
0
],
[
104.018579652026,
1.35947392708997,
0
],
[
104.018583111374,
1.35947242468158,
0
],
[
104.018584401662,
1.35947180419128,
0
],
[
104.019266543975,
1.35916686106826,
0
],
[
104.019339403325,
1.3591365684205,
0
],
[
104.01940983525,
1.35910093209824,
0
],
[
104.019428673623,
1.35908956916839,
0
],
[
104.019478447346,
1.35906218130098,
0
],
[
104.019535806198,
1.35902790433745,
0
],
[
104.019568023686,
1.35901046397683,
0
],
[
104.019571501893,
1.35900882952923,
0
],
[
104.019574782443,
1.35900754598847,
0
],
[
104.020253521561,
1.35871354744209,
0
],
[
104.020253954655,
1.35871337829313,
0
],
[
104.021577086886,
1.35814027456606,
0
],
[
104.021787429314,
1.35802486813525,
0
],
[
104.022001291693,
1.35787869239081,
0
],
[
104.022156521075,
1.35775477209923,
0
],
[
104.022314613821,
1.35758025809041,
0
],
[
104.022430315747,
1.35742513325882,
0
],
[
104.022537380572,
1.35725689679622,
0
],
[
104.022594771259,
1.35713629594878,
0
],
[
104.022734103051,
1.3568021513006,
0
],
[
104.022765017091,
1.35672078455281,
0
],
[
104.022790678002,
1.35663758960403,
0
],
[
104.022810981578,
1.35655290831044,
0
],
[
104.022825842484,
1.35646708976155,
0
],
[
104.022858720573,
1.35623302086724,
0
],
[
104.022871991009,
1.3560430292827,
0
],
[
104.022858704504,
1.35585313565235,
0
],
[
104.022828415254,
1.35563762918853,
0
],
[
104.022813274931,
1.35555049535052,
0
],
[
104.022792524091,
1.35546453942987,
0
],
[
104.022766250823,
1.35538012678063,
0
],
[
104.022734567475,
1.35529761823311,
0
],
[
104.02129442491,
1.35188271495175,
0
],
[
104.019213337413,
1.34694798719964,
0
],
[
104.01805141211,
1.34419905128631,
0
],
[
104.016557416058,
1.34066449218863,
0
],
[
104.01547374913,
1.33810069418675,
0
],
[
104.013743419261,
1.33400698485581,
0
],
[
104.012660775369,
1.33144558295248,
0
],
[
104.01060186995,
1.32657445514665,
0
],
[
104.010443752436,
1.32620038515125,
0
],
[
104.009718170821,
1.32450216257953,
0
],
[
104.009266610577,
1.32343724003672,
0
],
[
104.009233580231,
1.32336524717129,
0
],
[
104.009189787697,
1.32327669533056,
0
],
[
104.009168498165,
1.32323543540821,
0
],
[
104.009062047862,
1.32306807121878,
0
],
[
104.008937558322,
1.32290094253669,
0
],
[
104.008779122873,
1.32272602338776,
0
],
[
104.008612249506,
1.32259426180694,
0
],
[
104.008331861279,
1.32240678700694,
0
],
[
104.008258378374,
1.32236137252657,
0
],
[
104.008182090549,
1.32232091142439,
0
],
[
104.00810332938,
1.3222855773139,
0
],
[
104.00802243363,
1.32225552391219,
0
],
[
104.007939751945,
1.32223087870927,
0
],
[
104.007855641055,
1.32221175020304,
0
],
[
104.00777046398,
1.32219821976019,
0
],
[
104.007703139486,
1.32218776830418,
0
],
[
104.007531299348,
1.32216371631654,
0
],
[
104.00743738508,
1.32215440441572,
0
],
[
104.00734305345,
1.322151729642,
0
],
[
104.00724876721,
1.3221557055282,
0
],
[
104.007154988211,
1.32216631124162,
0
],
[
104.006993574582,
1.32219035146616,
0
],
[
104.00685991193,
1.3222172719256,
0
],
[
104.006670187775,
1.32228105172041,
0
],
[
104.005163641779,
1.32291622532006,
0
],
[
104.005161164544,
1.32291716693202,
0
],
[
104.004317637243,
1.32327274689848,
0
],
[
104.00362452025,
1.32163324152072,
0
],
[
104.003622354622,
1.32160501567054,
0
],
[
104.00360773849,
1.32150767672684,
0
],
[
104.003586114668,
1.32141166767626,
0
],
[
104.003557598208,
1.32131749947437,
0
],
[
104.003522340998,
1.32122567222179,
0
],
[
104.003472274826,
1.32110763580874,
0
],
[
103.999854190368,
1.31251999234736,
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
datasetId = "d_3d05a22ad76368500bd6d5ef72367123"
url = "https://api-open.data.gov.sg/v1/public/api/datasets/" + datasetId + "/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)
31 Jul 2023
Free forever for personal or commercial use, under the Open Data Licence.