Secure websites use HTTPS
Scam alert
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
Adding an API key gives you higher rate limits and priority support. Log in to create your API key.
import requests
dataset_id = "d_abf023b38d9bc451484e3d67b562bc5c"
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.
Attribute Legend
| Attributes | Data Type | Description |
|---|---|---|
| Name | Text | - |
| Description | Text | - |
Dataset preview
This code can be used to view the raw JSON dataset for LTA School Zone. 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>SITENAME</th> <td>Tampines North Primary School</td> </tr><tr bgcolor=\"\"> <th>INC_CRC</th> <td>F3A9A20A</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>FMEL_UPD_D</th> <td>20160329144329</td> </tr></table></center>"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
103.948719476966,
1.36006773833144,
0
],
[
103.948939672277,
1.36000798695146,
0
],
[
103.949240287323,
1.35993859610109,
0
],
[
103.949544735536,
1.35994436274287,
0
],
[
103.949745787646,
1.35997904116443,
0
],
[
103.949900886326,
1.36003299298,
0
],
[
103.950318318489,
1.36030276962743,
0
],
[
103.950523191612,
1.36016015264367,
0
],
[
103.950410214536,
1.36003874954483,
0
],
[
103.950174692306,
1.35991542527873,
0
],
[
103.949824284757,
1.35980559644656,
0
],
[
103.949493027049,
1.35974009041582,
0
],
[
103.949422177118,
1.35966493613074,
0
],
[
103.949429801682,
1.35894226538575,
0
],
[
103.949268961338,
1.35894227315935,
0
],
[
103.949244104452,
1.35967843454627,
0
],
[
103.94916943132,
1.35973625181399,
0
],
[
103.948644791369,
1.35986346708568,
0
],
[
103.948719476966,
1.36006773833144,
0
]
]
]
}
},
{
"type": "Feature",
"properties": {
"Name": "kml_2",
"Description": "<center><table><tr><th colspan='2' align='center'><em>Attributes</em></th></tr><tr bgcolor=\"#E3E3F3\"> <th>SITENAME</th> <td>Chij (Katong) Primary School</td> </tr><tr bgcolor=\"\"> <th>INC_CRC</th> <td>54B7FF5E</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>FMEL_UPD_D</th> <td>20160329144329</td> </tr></table></center>"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
103.910828071572,
1.30751675504071,
0
],
[
103.911060446535,
1.30691599956461,
0
],
[
103.910869637679,
1.30686183969858,
0
],
[
103.910637262749,
1.30746505727228,
0
],
[
103.910828071572,
1.30751675504071,
0
]
]
]
}
},
{
"type": "Feature",
"properties": {
"Name": "kml_3",
"Description": "<center><table><tr><th colspan='2' align='center'><em>Attributes</em></th></tr><tr bgcolor=\"#E3E3F3\"> <th>SITENAME</th> <td>Metta School</td> </tr><tr bgcolor=\"\"> <th>INC_CRC</th> <td>2B880636</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>FMEL_UPD_D</th> <td>20160329144329</td> </tr></table></center>"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
103.956270647278,
1.34661252878299,
0
],
[
103.957801714698,
1.34648563240322,
0
],
[
103.957775552873,
1.34628942442005,
0
],
[
103.957751777603,
1.34627267602787,
0
],
[
103.95626588195,
1.34640435573217,
0
],
[
103.956270647278,
1.34661252878299,
0
]
]
]
}
},
{
"type": "Feature",
"properties": {
"Name": "kml_4",
"Description": "<center><table><tr><th colspan='2' align='center'><em>Attributes</em></th></tr><tr bgcolor=\"#E3E3F3\"> <th>SITENAME</th> <td>Opera Estate Primary School</td> </tr><tr bgcolor=\"\"> <th>INC_CRC</th> <td>A838D0F7</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>FMEL_UPD_D</th> <td>20160329144329</td> </tr></table></center>"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
103.922350121729,
1.31925885661216,
0
],
[
103.922500980509,
1.31924504801104,
0
],
[
103.925247295819,
1.31899303907701,
0
],
[
103.925439302867,
1.31911035912386,
0
],
[
103.925535298474,
1.3189550695349,
0
],
[
103.92529186183,
1.3188273990229,
0
],
[
103.922343255891,
1.31901730085326,
0
],
[
103.922350121729,
1.31925885661216,
0
]
]
]
}
},
{
"type": "Feature",
"properties": {
"Name": "kml_5",
"Description": "<center><table><tr><th colspan='2' align='center'><em>Attributes</em></th></tr><tr bgcolor=\"#E3E3F3\"> <th>SITENAME</th> <td>Minds-Towner Gdns School</td> </tr><tr bgcolor=\"\"> <th>INC_CRC</th> <td>86AC26B3</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>FMEL_UPD_D</th> <td>20160329144329</td> </tr></table></center>"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
103.91371171332,
1.32707987108329,
0
],
[
103.9137171041,
1.32681087029935,
0
],
[
103.913800786316,
1.32652828103274,
0
],
[
103.913827773732,
1.32622395623416,
0
],
[
103.913819659006,
1.32574301603793,
0
],
[
103.913627969336,
1.32544684994595,
0
],
[
103.913557771718,
1.3252946902527,
0
],
[
103.913317496453,
1.32528926369652,
0
],
[
103.913441693253,
1.32559086644431,
0
],
[
103.913622582041,
1.32582453784343,
0
],
[
103.913606398164,
1.32627287271604,
0
],
[
103.913538931147,
1.32707987672725,
0
],
[
103.91371171332,
1.32707987108329,
0
]
]
]
}
},
{
"type": "Feature",
"properties": {
"Name": "kml_6",
"Description": "<center><table><tr><th colspan='2' align='center'><em>Attributes</em></th></tr><tr bgcolor=\"#E3E3F3\"> <th>SITENAME</th> <td>St Andrew's Autism School</td> </tr><tr bgcolor=\"\"> <th>INC_CRC</th> <td>D7B2960F</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>FMEL_UPD_D</th> <td>20160329144329</td> </tr></table></center>"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
103.930415272286,
1.31209880199325,
0
],
[
103.930432011369,
1.31196678979378,
0
],
[
103.929661777992,
1.311923752132,
0
],
[
103.929549219827,
1.31192001147598,
0
],
[
103.929440382808,
1.31192188819686,
0
],
[
103.92943852624,
1.3120239397408,
0
],
[
103.929923178251,
1.31205856230175,
0
],
[
103.930415272286,
1.31209880199325,
0
]
]
]
}
},
{
"type": "Feature",
"properties": {
"Name": "kml_7",
"Description": "<center><table><tr><th colspan='2' align='center'><em>Attributes</em