Secure websites use HTTPS
Real-time APIs will be unavailable from September 19th, 2024, 06:00 pm to September 19th, 2024, 10:00 pm due to upstream service's system maintenance. We apologise for the inconvenience caused.
Updated 4 months ago
ELD (Elections Department)Attribute Legends
Attributes | Data Type | Description |
---|---|---|
Name | Text | - |
Description | Text | - |
Dataset preview
This code can be used to view the raw JSON dataset for Electoral Boundary 2006 (GEOJSON). 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>ED_CODE</th> <td>WE</td> </tr><tr bgcolor=\"\"> <th>ED_DESC</th> <td>WEST COAST </td> </tr><tr bgcolor=\"#E3E3F3\"> <th>INC_CRC</th> <td>0FDBB6560D96A644 </td> </tr><tr bgcolor=\"\"> <th>FMEL_UPD_D</th> <td>20090428105814</td> </tr></table></center>"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
103.745746344873,
1.32336330003231,
0
],
[
103.749281284468,
1.32262228131546,
0
],
[
103.751342994851,
1.32208167954964,
0
],
[
103.751940810369,
1.32189245262363,
0
],
[
103.753844465522,
1.32125924820007,
0
],
[
103.754238533709,
1.32109820943857,
0
],
[
103.754769673198,
1.32074161245394,
0
],
[
103.755118056199,
1.32043677563945,
0
],
[
103.757293938775,
1.31790568625944,
0
],
[
103.759272544638,
1.31555756605211,
0
],
[
103.760444005324,
1.31432241149802,
0
],
[
103.760647278782,
1.31509709476414,
0
],
[
103.760903162707,
1.3157557605095,
0
],
[
103.761318326278,
1.31633151183263,
0
],
[
103.761797948711,
1.31688777236779,
0
],
[
103.762167712189,
1.31733024244393,
0
],
[
103.762511152574,
1.31784911470162,
0
],
[
103.762762598353,
1.31830003863335,
0
],
[
103.763078683377,
1.31900273120935,
0
],
[
103.763164368605,
1.31886009011946,
0
],
[
103.763542400562,
1.31830677706424,
0
],
[
103.763831248,
1.31787130831517,
0
],
[
103.764248763719,
1.3172282069285,
0
],
[
103.764529240816,
1.31670565265628,
0
],
[
103.764785099989,
1.31606103716854,
0
],
[
103.765316727277,
1.31641444429195,
0
],
[
103.76578346153,
1.31684351283212,
0
],
[
103.765915688263,
1.31708649489031,
0
],
[
103.766010886416,
1.31789654026559,
0
],
[
103.766009756518,
1.31857724361942,
0
],
[
103.766167201507,
1.31916109143361,
0
],
[
103.766549333572,
1.31962699309703,
0
],
[
103.76690832366,
1.32000738552375,
0
],
[
103.767945878614,
1.32105535612205,
0
],
[
103.768458007856,
1.32145170624219,
0
],
[
103.769506224021,
1.32020853652363,
0
],
[
103.769983418707,
1.31974574358595,
0
],
[
103.77121544334,
1.31873284188481,
0
],
[
103.775723457033,
1.31548124504063,
0
],
[
103.777563000719,
1.31419618518521,
0
],
[
103.777898449248,
1.31385858092651,
0
],
[
103.77843949433,
1.3133140579911,
0
],
[
103.778829045218,
1.3130091270837,
0
],
[
103.779424186553,
1.31280221688525,
0
],
[
103.781653254605,
1.31229040155348,
0
],
[
103.782086084245,
1.31212705018976,
0
],
[
103.784639781221,
1.3110815949319,
0
],
[
103.785029331249,
1.31076577185189,
0
],
[
103.785451344028,
1.31038460589144,
0
],
[
103.785855616865,
1.31003544330813,
0
],
[
103.786042755941,
1.30990839480987,
0
],
[
103.787074467304,
1.3090450809816,
0
],
[
103.787647970761,
1.308576791681,
0
],
[
103.787766999094,
1.30850055868536,
0
],
[
103.787972592788,
1.30842432783909,
0
],
[
103.788513628765,
1.30823919555233,
0
],
[
103.789097947533,
1.30801050161707,
0
],
[
103.791024034833,
1.30730263960126,
0
],
[
103.791074804702,
1.30745293744953,
0
],
[
103.791221289934,
1.30784069901276,
0
],
[
103.791597699891,
1.30770718120189,
0
],
[
103.792278288029,
1.30740169845235,
0
],
[
103.793055821032,
1.30682771023626,
0
],
[
103.793368481271,
1.30666236327625,
0
],
[
103.793468140977,
1.30658656725635,
0
],
[
103.793739647696,
1.30644011256146,
0
],
[
103.7943347962,
1.30596836486422,
0
],
[
103.794441139667,
1.30586966952905,
0
],
[
103.795204505172,
1.30516119312826,
0
],
[
103.795804862829,
1.30463934363026,
0
],
[
103.797319482373,
1.30332457084899,
0
],
[
103.796704143633,
1.30261177213075,
0
],
[
103.796638332256,
1.30252349013378,
0
],
[
103.796509282804,
1.30227777194405,
0
],
[
103.796461359979,
1.30212003153152,
0
],
[
103.795950710471,
1.30224823594899,
0
],
[
103.79463381999,
1.30167344291557,
0
],
[
103.795034916427,
1.30093927982521,
0
],
[
103.795086491595,
1.30085530927461,
0
],
[
103.795260450854,
1.30052505938612,
0
],
[
103.795399155724,
1.30017831912814,
0
],
[
103.795587780512,
1.29948476316392,
0
],
[
103.795812510974,
1.29878365214987,
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_7fb48bf0b7b7c8deeccfb2b40d120e08"
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)
23 Apr 2015
Free forever for personal or commercial use, under the Open Data Licence.