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
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 Mobile Speed Cameras. 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>ID</th> <td>1</td> </tr><tr bgcolor=\"\"> <th>ROAD_NAME</th> <td>Seletar Link</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>DIRECTION</th> <td>Seletar North Link</td> </tr><tr bgcolor=\"\"> <th>LATITUDE</th> <td>1.407429</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>LONGITUDE</th> <td>103.884916</td> </tr><tr bgcolor=\"\"> <th>DESCP</th> <td>near lamp post 37</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>INC_CRC</th> <td>6DE04D1DB9E0CA84</td> </tr><tr bgcolor=\"\"> <th>FMEL_UPD_D</th> <td>20161230200915</td> </tr></table></center>"
},
"geometry": {
"type": "Point",
"coordinates": [
103.884915999996,
1.40742900000026,
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>ID</th> <td>2</td> </tr><tr bgcolor=\"\"> <th>ROAD_NAME</th> <td>Lim Chu Kang Road</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>DIRECTION</th> <td>Neo Tiew Road</td> </tr><tr bgcolor=\"\"> <th>LATITUDE</th> <td>1.391443</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>LONGITUDE</th> <td>103.698523</td> </tr><tr bgcolor=\"\"> <th>DESCP</th> <td>near lamp post 95</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>INC_CRC</th> <td>87B0B128F7832D49</td> </tr><tr bgcolor=\"\"> <th>FMEL_UPD_D</th> <td>20161230200915</td> </tr></table></center>"
},
"geometry": {
"type": "Point",
"coordinates": [
103.698523,
1.39144299999782,
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>ID</th> <td>3</td> </tr><tr bgcolor=\"\"> <th>ROAD_NAME</th> <td>Changi Coast Road</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>DIRECTION</th> <td>East Coast Parkway</td> </tr><tr bgcolor=\"\"> <th>LATITUDE</th> <td>1.34145</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>LONGITUDE</th> <td>103.99332</td> </tr><tr bgcolor=\"\"> <th>DESCP</th> <td>near lamp post 164F</td> </tr><tr bgcolor=\"#E3E3F3\"> <th>INC_CRC</th> <td>3EA605CD0E34D8C7</td> </tr><tr bgcolor=\"\"> <th>FMEL_UPD_D</th> <td>20161230200915</td> </tr></table></center>"
},
"geometry": {
"type": "Point",
"coordinates": [
103.993320000003,
1.3414500000011,
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_e411f01a5ac504f88434d7a02388c9ce"
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.