Skip to content

Instantly share code, notes, and snippets.

View milovanderlinden's full-sized avatar

M.vd.L milovanderlinden

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
"source","osm_id","name","amenity","x","y","priority","type","in_geojson","communities_1","communities_2","communities_3","communities_4","communities_5"
"---","http:/www.openstreetmap.org/api/0.6/way/372775844","Albion Primary and Junior High","school",-77.4931337,18.0047945,"","school","","","","","Albion, Albion Heights",""
"---","http:/www.openstreetmap.org/api/0.6/way/367804999","Allman Town Primary","school",-76.7847932,17.9848099,"","school","","","","","Allman Town",""
"---","http:/www.openstreetmap.org/api/0.6/way/375110009","Alpha Primary School","school",-76.78145,17.9772463,"","school","","Camp Road","","","",""
"---","http:/www.openstreetmap.org/api/0.6/node/973322486","Anglican Church","place_of_worship",-76.2688085,17.9238065,"","church","","","","","Quarry Hill, Lime Tree Grove",""
"---","http:/www.openstreetmap.org/api/0.6/way/249908138","Ascot High School","school",-76.9126528,17.9515874,"","school","","","","","Daytona, Monza, East and West Ascot",""
"---","http:/www.openstreetmap.org/api/0
@milovanderlinden
milovanderlinden / shelters_jam_sep2016.json
Last active October 1, 2016 19:08
Checklist for migration to geojson
[
{
"parish": "Kingston & St . Andrew",
"shelter_name": "Harbour View Primary",
"priority": true,
"type": "school",
"in_geojson": false,
"communities_served": ["Harbour View"]
},
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@milovanderlinden
milovanderlinden / shelters_jam_sep2016.csv
Last active January 4, 2017 09:13
Shelter list for September 2016, Jamaica
parish shelter_name priority type in_geojson communities_served/0 communities_served/1 communities_served/2 communities_served communities_served/3
Kingston & St . Andrew Harbour View Primary true school false Harbour View
Kingston & St . Andrew St. Benedicts Primary true school Harbour View Bull Bay
Kingston & St . Andrew Friendship Brook All Age true school Bull Bay Taylor Land
Kingston & St . Andrew Norman Gardens Jnr High school Rockfort Norman Gardens
Kingston & St . Andrew Rennock Lodge All Age school Rennock Lodge
Kingston & St . Andrew Windward Road Junior H. school Windward Road Bournemouth Gardens Burgher Gully (Right Side)
Kingston & St . Andrew Holy Rosary Primary School school Windward Road Bournemouth Gardens/ Springfield
Kingston & St . Andrew Dunoon Technical High school Sirgany Burgher Gully (Left side)
Kingston & St . Andrew National Arena true Port Royal, Portmore
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var id = 'mapbox.streets';
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpandmbXliNDBjZWd2M2x6bDk3c2ZtOTkifQ._QA7i5Mpkd_m30IGElHziw';
L.tileLayer(mbUrl, {id: id}).addTo(mymap);

GIST for storing screenshots

#===========================================================================
# allowed DPIs
#===========================================================================
dpis:
- 254
- 190
- 127
- 56
#===========================================================================
@milovanderlinden
milovanderlinden / gist:1893942c39cdcd004b92
Last active October 28, 2015 23:18
Want to parse a OGC GetCapabilities Document to JSON with nodejs?. This will bring filesize down to 10%!
var allOGC = function(req, res) {
if (req.query) {
//set method from req
console.log(req.method);
var options = {
method: req.method,
url: req.query.q,
headers: {
'User-Agent': 'opendispatcher'
},
@milovanderlinden
milovanderlinden / refineries.geojson
Last active February 4, 2016 15:23
Refineries from OpenStreetMap (Centroids)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.