Secure websites use HTTPS
Real-time Weather APIs will be unavailable from 24 Nov 2024 12:00 AM to 12:00 PM due to upstream maintenance.
Updated 6 months ago
PA (People's Association)Attribute Legend
Attributes | Data Type | Description |
---|---|---|
Name | Text | - |
Description | Text | - |
Dataset preview
This code can be used to view the raw JSON dataset for PA Headquarters. 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>ADDRESSBLOCKHOUSENUMBER</th> <td>9</td> </tr><tr bgcolor=\"\"> <th>ADDRESSBUILDINGNAME</th> <td></td> </tr><tr bgcolor=\"#E3E3F3\"> <th>ADDRESSFLOORNUMBER</th> <td></td> </tr><tr bgcolor=\"\"> <th>ADDRESSPOSTALCODE</th> <td>208581</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>ADDRESSSTREETNAME</th> <td>King George's Avenue</td> </tr><tr bgcolor=\"\"> <th>ADDRESSTYPE</th> <td>A</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>DESCRIPTION</th> <td>Headquarters</td> </tr><tr bgcolor=\"\"> <th>HYPERLINK</th> <td>https://www.pa.gov.sg/contact_us</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>LANDXADDRESSPOINT</th> <td>0</td> </tr><tr bgcolor=\"\"> <th>LANDYADDRESSPOINT</th> <td>0</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>NAME</th> <td>People's Association</td> </tr><tr bgcolor=\"\"> <th>PHOTOURL</th> <td></td> </tr><tr bgcolor=\"#E3E3F3\"> <th>INC_CRC</th> <td>B801B314D23CB334</td> </tr><tr bgcolor=\"\"> <th>FMEL_UPD_D</th> <td>20151103145025</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>ADDRESSUNITNUMBER</th> <td></td> </tr></table></center>"
},
"geometry": {
"type": "Point",
"coordinates": [
103.859134592337,
1.30863359616077,
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_8b88f80fa3cb9e15dc7f3071609a7202"
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.