Skip to content

Instantly share code, notes, and snippets.

@DylanFM
Last active August 29, 2015 14:25
Show Gist options
  • Save DylanFM/b144df4b91321943f532 to your computer and use it in GitHub Desktop.
Save DylanFM/b144df4b91321943f532 to your computer and use it in GitHub Desktop.
Upgrading the fire importer to use JSON instead of XML
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"id": "00074d63-c442-496c-834f-976fe939a3dd",
"geometry": {
"type": "GeometryCollection",
"geometries": [{
"type": "Point",
"coordinates": [150.1571, -33.4845]
}]
},
"properties": {
"reportUuid": "d7172ff2-f8ee-4251-8d0b-e3738bff2b76",
"guid": "tag:www.rfs.nsw.gov.au,2015-07-17:197627",
"title": "Lithgow Snow Event",
"link": "http://www.rfs.nsw.gov.au/dsp_content.cfm?cat_id=683",
"category": "Not Applicable",
"pubdate": "2015-07-16T22:58:00Z",
"firstSeen": "2015-07-16T22:58:00Z",
"lastSeen": "2015-07-16T22:58:00Z",
"alertLevel": "Not Applicable",
"location": "silcox st Lithgow",
"councilArea": "Lithgow",
"status": "out of control",
"fireType": "Assist Other Agency",
"fire": false,
"size": "0 ha",
"responsibleAgency": "NSW Police",
"extra": ""
}
}, {
"type": "Feature",
"id": "3b3567a1-c669-46c6-bc19-054bc7586a1b",
"geometry": {
"type": "GeometryCollection",
"geometries": [{
"type": "Point",
"coordinates": [153.1913, -30.0335]
}]
},
"properties": {
"reportUuid": "38f82fdb-7493-4be1-8302-1f7daa9c8f13",
"guid": "tag:www.rfs.nsw.gov.au,2015-07-17:197635",
"title": "Kangaroo Trail Rd, Corindi Beach",
"link": "http://www.rfs.nsw.gov.au/dsp_content.cfm?cat_id=683",
"category": "Advice",
"pubdate": "2015-07-17T02:24:00Z",
"firstSeen": "2015-07-17T02:17:00Z",
"lastSeen": "2015-07-17T02:24:00Z",
"alertLevel": "Advice",
"location": "Kangaroo Trail Rd, Corindi Beach, NSW 2456",
"councilArea": "Coffs Harbour",
"status": "under control",
"fireType": "Grass Fire",
"fire": true,
"size": "0 ha",
"responsibleAgency": "Rural Fire Service",
"extra": ""
}
}, {
"type": "Feature",
"id": "593a1eb9-a1ec-4aee-91f1-8730423ad8f4",
"geometry": {
"type": "GeometryCollection",
"geometries": [{
"type": "Point",
"coordinates": [151.2199, -33.962]
}]
},
"properties": {
"reportUuid": "f495a726-bcbf-4a38-ad42-46faa5ecd54d",
"guid": "tag:www.rfs.nsw.gov.au,2015-07-16:197558",
"title": "Operation RID",
"link": "http://www.rfs.nsw.gov.au/dsp_content.cfm?cat_id=683",
"category": "Not Applicable",
"pubdate": "2015-07-15T23:00:00Z",
"firstSeen": "2015-07-15T23:00:00Z",
"lastSeen": "2015-07-15T23:00:00Z",
"alertLevel": "Not Applicable",
"location": "Botany Rd Botany",
"councilArea": "Botany Bay",
"status": "under control",
"fireType": "Assist Other Agency",
"fire": false,
"size": "0 ha",
"responsibleAgency": "NSW Police",
"extra": ""
}
}, {
"type": "Feature",
"id": "89ea144a-1680-42d4-951c-cdd6abd526f7",
"geometry": {
"type": "GeometryCollection",
"geometries": [{
"type": "Point",
"coordinates": [153.1347, -30.1682]
}]
},
"properties": {
"reportUuid": "cccd27d4-4632-4b3e-9665-a0d215e40075",
"guid": "tag:www.rfs.nsw.gov.au,2015-07-17:197461",
"title": "FCNSW HRB Orara East SF",
"link": "http://www.rfs.nsw.gov.au/dsp_content.cfm?cat_id=683",
"category": "Advice",
"pubdate": "2015-07-16T02:41:00Z",
"firstSeen": "2015-07-14T01:28:00Z",
"lastSeen": "2015-07-16T02:41:00Z",
"alertLevel": "Advice",
"location": "Boyds Road 5km North West of Moonee Beach",
"councilArea": "Coffs Harbour",
"status": "under control",
"fireType": "Hazard Reduction",
"fire": true,
"size": "250 ha",
"responsibleAgency": "Forest Corporation of NSW",
"extra": ""
}
}, {
"type": "Feature",
"id": "bc773ff2-da2d-4902-8034-fef9b5f5c95c",
"geometry": {
"type": "Point",
"coordinates": [150.3007, -33.7043]
},
"properties": {
"reportUuid": "ad178d89-55c4-463d-bfec-5f7d3c06e193",
"guid": "tag:www.rfs.nsw.gov.au,2015-07-17:197608",
"title": "Blue Mountains Snow",
"link": "http://www.rfs.nsw.gov.au/fire-information/fires-near-me",
"category": "Not Applicable",
"pubdate": "2015-07-16T23:36:00Z",
"firstSeen": "2015-07-16T15:05:00Z",
"lastSeen": "2015-07-16T23:36:00Z",
"alertLevel": "Not Applicable",
"location": "Katoomba",
"councilArea": "Blue Mountains",
"status": "Out of control",
"fireType": "Assist Other Agency",
"fire": false,
"size": "0 ha",
"responsibleAgency": "State Emergency Service",
"extra": ""
}
}, {
"type": "Feature",
"id": "db74f0be-4fee-4bf1-8eef-e28a744cb77e",
"geometry": {
"type": "GeometryCollection",
"geometries": [{
"type": "Point",
"coordinates": [151.5218, -32.9897]
}]
},
"properties": {
"reportUuid": "64f8eccc-f35c-4d37-8390-a095ca04ff0d",
"guid": "tag:www.rfs.nsw.gov.au,2015-07-17:197626",
"title": "Wakefield Rd, Ryhope",
"link": "http://www.rfs.nsw.gov.au/dsp_content.cfm?cat_id=683",
"category": "Not Applicable",
"pubdate": "2015-07-17T01:54:00Z",
"firstSeen": "2015-07-16T22:55:00Z",
"lastSeen": "2015-07-17T01:54:00Z",
"alertLevel": "Not Applicable",
"location": "Wakefield Rd, Ryhope, NSW 2283",
"councilArea": "Lake Macquarie",
"status": "under control",
"fireType": "Other",
"fire": false,
"size": "0 ha",
"responsibleAgency": "Rural Fire Service",
"extra": ""
}
}, {
"type": "Feature",
"id": "ec283556-4165-4cda-bef6-2c311b7b00dd",
"geometry": {
"type": "GeometryCollection",
"geometries": [{
"type": "Point",
"coordinates": [150.8111, -33.9739]
}]
},
"properties": {
"reportUuid": "1d28f389-d001-425e-a33d-35546f6a6e63",
"guid": "tag:www.rfs.nsw.gov.au,2015-07-17:197638",
"title": "Camden Valley Way, Leppington",
"link": "http://www.rfs.nsw.gov.au/dsp_content.cfm?cat_id=683",
"category": "Not Applicable",
"pubdate": "2015-07-17T02:43:00Z",
"firstSeen": "2015-07-17T02:43:00Z",
"lastSeen": "2015-07-17T02:43:00Z",
"alertLevel": "Not Applicable",
"location": "Camden Valley Way, Leppington, NSW 2179",
"councilArea": "Camden",
"status": "out of control",
"fireType": "MVA/Transport",
"fire": false,
"size": "0 ha",
"responsibleAgency": "Rural Fire Service",
"extra": ""
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment