Last active
August 2, 2021 07:51
-
-
Save morganherlocker/597e16852d95acafe5dc to your computer and use it in GitHub Desktop.
turf buffer example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>Water fountains near Bay to Breakers</title> | |
| <link href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' /> | |
| <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' /> | |
| <script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.6/mapbox.js'></script> | |
| <link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.6/mapbox.css' rel='stylesheet' /> | |
| <script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-label/v0.2.1/leaflet.label.js'></script> | |
| <link href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-label/v0.2.1/leaflet.label.css' rel='stylesheet' /> | |
| <style> | |
| body { margin:0; padding:0; } | |
| #map { position:absolute; top:0; bottom:0; width:100%; } | |
| .small-input { width: 80px; vertical-align:middle; } | |
| </style> | |
| </head> | |
| <body> | |
| <script src='https://api.tiles.mapbox.com/mapbox.js/plugins/turf/v1.3.0/turf.min.js'></script> | |
| <div id='map'></div> | |
| <div class='pin-top fill-gray pad1'> | |
| Water Fountains accessible within | |
| <input type='number' id='radius' max='4000' min='0' class='clean short small-input' value='500' step='10' /> feet | |
| of the Bay to Breakers race route. | |
| <p class='small'>A GeoJSON route is buffered with <a target='_blank' href='https://github.com/Turfjs/turf-buffer'>turf-buffer</a> | |
| and points are found with <a href='https://github.com/Turfjs/turf-within'>turf-within</a>.</p> | |
| </div> | |
| <script src='site.js'></script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| L.mapbox.accessToken = '!!!your token here!!!'; | |
| var map = L.mapbox.map('map', 'mapbox.dark', { zoomControl: false }); | |
| map.scrollWheelZoom.disable(); | |
| var bufferLayer = L.mapbox.featureLayer().addTo(map); | |
| var raceRoute = L.mapbox.featureLayer().addTo(map); | |
| var waterFountains = L.mapbox.featureLayer().addTo(map); | |
| var waterFountainsInside = L.mapbox.featureLayer().addTo(map); | |
| waterFountains.loadURL('./water_fountains.geojson') | |
| .on('ready', done); | |
| raceRoute.loadURL('./bay_to_breakers.geojson') | |
| .on('ready', done); | |
| var loaded = 0; | |
| function done() { | |
| if (++loaded !== 2) return; | |
| raceRoute.setStyle({ color: 'hotpink', weight: 3 }); | |
| map.fitBounds(raceRoute.getBounds()); | |
| function run() { | |
| var radius = parseInt(document.getElementById('radius').value); | |
| if (isNaN(radius)) radius = 500; | |
| var buffer = turf.buffer(raceRoute.getGeoJSON(), radius/5280, 'miles'); | |
| var fountains = waterFountains.getGeoJSON(); | |
| fountains.features.forEach(function(feature) { | |
| feature.properties['marker-color'] = '#111'; | |
| feature.properties['marker-symbol'] = 'water'; | |
| feature.properties['marker-size'] = 'small'; | |
| }); | |
| waterFountains.setGeoJSON(fountains); | |
| bufferLayer | |
| .setGeoJSON(buffer) | |
| .setStyle({ | |
| stroke: false, | |
| fillColor: 'hotpink', | |
| fillOpacity: 0.2 | |
| }) | |
| .eachLayer(function(layer) { | |
| layer.bindLabel('Bay to Breakers Route', { noHide: true }); | |
| }); | |
| var fountainsInside = turf.within(waterFountains.getGeoJSON(), buffer); | |
| fountainsInside.features.forEach(function(feature) { | |
| feature.properties['marker-color'] = '#00f'; | |
| feature.properties['marker-symbol'] = 'water'; | |
| feature.properties['marker-size'] = 'large'; | |
| }); | |
| waterFountainsInside | |
| .setGeoJSON(fountainsInside) | |
| .eachLayer(function(layer) { | |
| layer.bindLabel('Accessible water fountain'); | |
| }); | |
| } | |
| run(); | |
| document.getElementById('radius').onchange = run; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "FeatureCollection", | |
| "generator": "overpass-turbo", | |
| "copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.", | |
| "timestamp": "2014-12-19T16:21:02Z", | |
| "features": [ | |
| { | |
| "type": "Feature", | |
| "id": "node/302034422", | |
| "properties": { | |
| "@id": "node/302034422", | |
| "amenity": "drinking_water", | |
| "created_by": "JOSM" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.3935796, | |
| 37.7732083 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/417230236", | |
| "properties": { | |
| "@id": "node/417230236", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4825982, | |
| 37.7668484 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/429643386", | |
| "properties": { | |
| "@id": "node/429643386", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4322873, | |
| 37.7863591 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/432368997", | |
| "properties": { | |
| "@id": "node/432368997", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4010707, | |
| 37.8024788 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/633100862", | |
| "properties": { | |
| "@id": "node/633100862", | |
| "amenity": "drinking_water", | |
| "dog": "no", | |
| "ele": "56.602905", | |
| "source": "survey;gps" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4784833, | |
| 37.7348298 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/633148381", | |
| "properties": { | |
| "@id": "node/633148381", | |
| "amenity": "drinking_water", | |
| "dog": "yes", | |
| "ele": "5.893799" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4876521, | |
| 37.7361861 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/638577326", | |
| "properties": { | |
| "@id": "node/638577326", | |
| "amenity": "drinking_water", | |
| "source": "survey" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4763916, | |
| 37.7371494 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/638887526", | |
| "properties": { | |
| "@id": "node/638887526", | |
| "amenity": "drinking_water", | |
| "dog": "yes" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4329271, | |
| 37.7696718 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/638887531", | |
| "properties": { | |
| "@id": "node/638887531", | |
| "amenity": "drinking_water", | |
| "dog": "yes" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4334601, | |
| 37.7693841 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/669137725", | |
| "properties": { | |
| "@id": "node/669137725", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4801147, | |
| 37.8327881 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/708463422", | |
| "properties": { | |
| "@id": "node/708463422", | |
| "amenity": "drinking_water", | |
| "dog": "no", | |
| "wheelchair": "yes" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.3985652, | |
| 37.7714173 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/708463429", | |
| "properties": { | |
| "@id": "node/708463429", | |
| "amenity": "drinking_water", | |
| "dog": "yes", | |
| "wheelchair": "yes" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.399166, | |
| 37.7707261 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/708533585", | |
| "properties": { | |
| "@id": "node/708533585", | |
| "amenity": "drinking_water", | |
| "dog": "no", | |
| "wheelchair": "yes" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.3978029, | |
| 37.7717229 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/806228034", | |
| "properties": { | |
| "@id": "node/806228034", | |
| "amenity": "drinking_water", | |
| "source": "survey" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4055498, | |
| 37.7946479 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/806253937", | |
| "properties": { | |
| "@id": "node/806253937", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.456772, | |
| 37.7672067 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/806253941", | |
| "properties": { | |
| "@id": "node/806253941", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4551681, | |
| 37.7672088 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/827150951", | |
| "properties": { | |
| "@id": "node/827150951", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4070678, | |
| 37.7936061 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/842603816", | |
| "properties": { | |
| "@id": "node/842603816", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.5392343, | |
| 37.8325983 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/842621490", | |
| "properties": { | |
| "@id": "node/842621490", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.5252773, | |
| 37.8306936 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/845504914", | |
| "properties": { | |
| "@id": "node/845504914", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4126793, | |
| 37.8022244 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/845504916", | |
| "properties": { | |
| "@id": "node/845504916", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4121764, | |
| 37.8025391 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/856296929", | |
| "properties": { | |
| "@id": "node/856296929", | |
| "amenity": "drinking_water", | |
| "inside": "yes" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4206404, | |
| 37.795685 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/856296957", | |
| "properties": { | |
| "@id": "node/856296957", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4204952, | |
| 37.7957298 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1014220987", | |
| "properties": { | |
| "@id": "node/1014220987", | |
| "amenity": "drinking_water", | |
| "source": "survey" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4789139, | |
| 37.7704878 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1014220989", | |
| "properties": { | |
| "@id": "node/1014220989", | |
| "amenity": "drinking_water", | |
| "source": "survey" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4770173, | |
| 37.7705978 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1014220990", | |
| "properties": { | |
| "@id": "node/1014220990", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4784615, | |
| 37.7660568 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1024125216", | |
| "properties": { | |
| "@id": "node/1024125216", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4013866, | |
| 37.8029744 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1221046248", | |
| "properties": { | |
| "@id": "node/1221046248", | |
| "amenity": "drinking_water", | |
| "bottle": "yes", | |
| "description": "Prototype GlobalTap bottle filling station.", | |
| "type": "GlobalTap", | |
| "wetap:photo": "https://lh3.googleusercontent.com/-wj2j811DHNY/TqikbprkCfI/AAAAAAAAAHs/PxHnyO3VhbE/s360/Global%252520Tap_Marina.jpg", | |
| "wetap:quality": "good" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.442523, | |
| 37.8065405 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1229112061", | |
| "properties": { | |
| "@id": "node/1229112061", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4876107, | |
| 37.7362347 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1229112064", | |
| "properties": { | |
| "@id": "node/1229112064", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4786983, | |
| 37.7357561 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1229112071", | |
| "properties": { | |
| "@id": "node/1229112071", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4839753, | |
| 37.7367143 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1318128000", | |
| "properties": { | |
| "@id": "node/1318128000", | |
| "amenity": "drinking_water", | |
| "source": "survey" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4371494, | |
| 37.7911791 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1318128004", | |
| "properties": { | |
| "@id": "node/1318128004", | |
| "amenity": "drinking_water", | |
| "source": "wetap.org", | |
| "wetap:status": "broken", | |
| "wetap:statusnote": "upper fountain squirts" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4382058, | |
| 37.791236 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1398265306", | |
| "properties": { | |
| "@id": "node/1398265306", | |
| "amenity": "drinking_water", | |
| "description": "Drinking water at Peir 14, near rotating Burning Man installation.", | |
| "source": "wetap.org", | |
| "wetap:status": "broken", | |
| "wetap:statusnote": "detached from base" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.392098, | |
| 37.793789 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1450224021", | |
| "properties": { | |
| "@id": "node/1450224021", | |
| "amenity": "drinking_water", | |
| "name": "The Magic Carpet Great Lawn" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.375149, | |
| 37.8217005 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1504407856", | |
| "properties": { | |
| "@id": "node/1504407856", | |
| "amenity": "drinking_water", | |
| "description": "Pier 14 Near rotating Burning Man display near Pier 14", | |
| "source": "wetap.org", | |
| "wetap:photo": "http://findafountain.org/system/968/original/usa-san-fransisco-pier-14-outdoor-fountain.jpg", | |
| "wetap:status": "broken" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.392, | |
| 37.7938 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1509254236", | |
| "properties": { | |
| "@id": "node/1509254236", | |
| "amenity": "drinking_water", | |
| "source": "Survey" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4552249, | |
| 37.7727259 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1581816285", | |
| "properties": { | |
| "@id": "node/1581816285", | |
| "amenity": "drinking_water", | |
| "source": "site visit" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4546716, | |
| 37.7584242 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1584199383", | |
| "properties": { | |
| "@id": "node/1584199383", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.494468, | |
| 37.7703571 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1584201016", | |
| "properties": { | |
| "@id": "node/1584201016", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.5005882, | |
| 37.7657429 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1601847791", | |
| "properties": { | |
| "@id": "node/1601847791", | |
| "amenity": "drinking_water", | |
| "description": "bottle=yes", | |
| "stateofrepair": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4665, | |
| 37.76601 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1601847792", | |
| "properties": { | |
| "@id": "node/1601847792", | |
| "amenity": "drinking_water", | |
| "description": "Inside Cal Acadamey", | |
| "fee": "yes", | |
| "indoor": "yes", | |
| "level": "1", | |
| "stateofrepair": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.466194, | |
| 37.770103 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1601847799", | |
| "properties": { | |
| "@id": "node/1601847799", | |
| "amenity": "drinking_water", | |
| "stateofrepair": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.37515, | |
| 37.8217 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1736642827", | |
| "properties": { | |
| "@id": "node/1736642827", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.5030466, | |
| 37.7708447 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/1769694045", | |
| "properties": { | |
| "@id": "node/1769694045", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4537919, | |
| 37.7912456 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2219654739", | |
| "properties": { | |
| "@id": "node/2219654739", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.397029, | |
| 37.798967 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2219757249", | |
| "properties": { | |
| "@id": "node/2219757249", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.406009, | |
| 37.802307 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2219970988", | |
| "properties": { | |
| "@id": "node/2219970988", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.446763, | |
| 37.758569 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2337269220", | |
| "properties": { | |
| "@id": "node/2337269220", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.3896246, | |
| 37.768825 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681744", | |
| "properties": { | |
| "@id": "node/2351681744", | |
| "amenity": "drinking_water", | |
| "description": "Sam Bruno Mt. Park Restroom also available", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.433235, | |
| 37.697304 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681747", | |
| "properties": { | |
| "@id": "node/2351681747", | |
| "amenity": "drinking_water", | |
| "description": "Daly City BART station Inside BART fare gate.", | |
| "fee": "yes", | |
| "source": "wetap.org", | |
| "wetap:photo": "http://mdcwetap.atwebpages.com/jpg.php?i=BethTerry1337277076313.jpg", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4692, | |
| 37.705505 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681766", | |
| "properties": { | |
| "@id": "node/2351681766", | |
| "amenity": "drinking_water", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.48911, | |
| 37.7124 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681787", | |
| "properties": { | |
| "@id": "node/2351681787", | |
| "amenity": "drinking_water", | |
| "description": "UCSF, water bottle filling station; no fountain Inside, past the food court", | |
| "source": "wetap.org", | |
| "wetap:photo": "http://mdcwetap.atwebpages.com/jpg.php?i=dmischel1331541582278.jpg", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.45893, | |
| 37.763374 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681790", | |
| "properties": { | |
| "@id": "node/2351681790", | |
| "amenity": "drinking_water", | |
| "description": "Strybing Arboretum, Golden Gate Park Entry fee for non-SF residents", | |
| "source": "wetap.org", | |
| "wetap:status": "working", | |
| "wetap:statusnote": "2 taps" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.46823, | |
| 37.76678 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681793", | |
| "properties": { | |
| "@id": "node/2351681793", | |
| "amenity": "drinking_water", | |
| "description": "California College of the Arts \"Hooper building\"", | |
| "indoor": "yes", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.40035, | |
| 37.7677 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681798", | |
| "properties": { | |
| "@id": "node/2351681798", | |
| "amenity": "drinking_water", | |
| "description": "SF Strybing Arbortetum Near rest room", | |
| "fee": "yes", | |
| "source": "wetap.org", | |
| "wetap:photo": "http://mdcwetap.atwebpages.com/jpg.php?i=dmischel1337983033280.jpg", | |
| "wetap:status": "working", | |
| "wetap:statusnote": "2 level fountain; admission required for non-San Francisco residents" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.470894, | |
| 37.76861 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681801", | |
| "properties": { | |
| "@id": "node/2351681801", | |
| "amenity": "drinking_water", | |
| "description": "UCSF Mission Bay Fountain and bottle filler", | |
| "source": "wetap.org", | |
| "wetap:bottle": "yes", | |
| "wetap:photo": "http://mdcwetap.atwebpages.com/jpg.php?i=dmischel1339112780931.jpg", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.38946, | |
| 37.768864 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681804", | |
| "properties": { | |
| "@id": "node/2351681804", | |
| "amenity": "drinking_water", | |
| "description": "deyoung museum", | |
| "source": "wetap.org", | |
| "wetap:status": "unknown" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4684, | |
| 37.770477 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681806", | |
| "properties": { | |
| "@id": "node/2351681806", | |
| "amenity": "drinking_water", | |
| "description": "Land's End Visitor Center", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.51132, | |
| 37.779827 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681809", | |
| "properties": { | |
| "@id": "node/2351681809", | |
| "amenity": "drinking_water", | |
| "source": "wetap.org", | |
| "wetap:status": "broken", | |
| "wetap:statusnote": "no drain no water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.435905, | |
| 37.787384 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681811", | |
| "properties": { | |
| "@id": "node/2351681811", | |
| "amenity": "drinking_water", | |
| "description": "Temporary Transbay Terminal", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.393234, | |
| 37.789894 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681814", | |
| "properties": { | |
| "@id": "node/2351681814", | |
| "amenity": "drinking_water", | |
| "description": "Presidio Golf Course Clubhouse", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.46031, | |
| 37.79055 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681817", | |
| "properties": { | |
| "@id": "node/2351681817", | |
| "amenity": "drinking_water", | |
| "indoor": "yes", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.39379, | |
| 37.795963 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681825", | |
| "properties": { | |
| "@id": "node/2351681825", | |
| "amenity": "drinking_water", | |
| "description": "Exploratorium Toilet looking drinking fountain to mess with your senses.", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.44839, | |
| 37.803955 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681828", | |
| "properties": { | |
| "@id": "node/2351681828", | |
| "amenity": "drinking_water", | |
| "description": "Beach Hut", | |
| "source": "wetap.org", | |
| "wetap:status": "working", | |
| "wetap:statusnote": "Sweet. Stainless" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.449135, | |
| 37.80556 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681834", | |
| "properties": { | |
| "@id": "node/2351681834", | |
| "amenity": "drinking_water", | |
| "description": "Golden Gate Visitor Center", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4752, | |
| 37.807625 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681836", | |
| "properties": { | |
| "@id": "node/2351681836", | |
| "amenity": "drinking_water", | |
| "description": "Warming Hut", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4707298, | |
| 37.8082403 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2351681838", | |
| "properties": { | |
| "@id": "node/2351681838", | |
| "amenity": "drinking_water", | |
| "description": "Ft. Point Restrooms Fountain Located next to restrooms", | |
| "source": "wetap.org", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4764841, | |
| 37.8098698 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2408177405", | |
| "properties": { | |
| "@id": "node/2408177405", | |
| "amenity": "drinking_water", | |
| "note": "Attached to the restrooms building near the parking lot and the Bank of America building.", | |
| "source": "wetap", | |
| "wetap:bottle": "limited", | |
| "wetap:photo": "https://lh4.googleusercontent.com/_O4TNu1SGWXg/TbzHXlv1dSI/AAAAAAAAA4k/wgbA_h2q6BQ/---.jpg", | |
| "wetap:status": "working" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4800727, | |
| 37.8568163 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2570431115", | |
| "properties": { | |
| "@id": "node/2570431115", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4398419, | |
| 37.8610722 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2572347248", | |
| "properties": { | |
| "@id": "node/2572347248", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4308745, | |
| 37.8573052 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2572347249", | |
| "properties": { | |
| "@id": "node/2572347249", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4357616, | |
| 37.8574559 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2699075519", | |
| "properties": { | |
| "@id": "node/2699075519", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.457119, | |
| 37.7684395 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2702192517", | |
| "properties": { | |
| "@id": "node/2702192517", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.3758895, | |
| 37.7402526 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2707506650", | |
| "properties": { | |
| "@id": "node/2707506650", | |
| "amenity": "drinking_water", | |
| "covered": "no" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.502724, | |
| 37.714611 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2713445267", | |
| "properties": { | |
| "@id": "node/2713445267", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "1st floor nearby Gold Coast Grill" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4787232, | |
| 37.7222385 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2713445575", | |
| "properties": { | |
| "@id": "node/2713445575", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located on the third floor outside the restrooms" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4784279, | |
| 37.7224317 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942348", | |
| "properties": { | |
| "@id": "node/2714942348", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located on the 1st floor of the HSS building, near room 136." | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4759762, | |
| 37.7219977 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942350", | |
| "properties": { | |
| "@id": "node/2714942350", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located on the 1st floor near room 154 in the Creative Arts building." | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4796106, | |
| 37.7215076 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942352", | |
| "properties": { | |
| "@id": "node/2714942352", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located on the 1st floor near room 170 (located near door of the fire escape/stairway) of Burk Hall." | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4798305, | |
| 37.7231274 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942354", | |
| "properties": { | |
| "@id": "node/2714942354", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located near room 197 in the Fine Arts building." | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4798949, | |
| 37.7223721 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942356", | |
| "properties": { | |
| "@id": "node/2714942356", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located on the 1st floor near 102, near the bathrooms in the Ethnics and Psychology Building." | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.479294, | |
| 37.7234159 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942359", | |
| "properties": { | |
| "@id": "node/2714942359", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located on the first floor of the Gym." | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4778188, | |
| 37.7234669 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942361", | |
| "properties": { | |
| "@id": "node/2714942361", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4757106, | |
| 37.7230765 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942362", | |
| "properties": { | |
| "@id": "node/2714942362", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located on the 3rd floor near room 316, in Hensill Hall." | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4763758, | |
| 37.7234881 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942363", | |
| "properties": { | |
| "@id": "node/2714942363", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located on the 2nd floor near room 220 in Thornton Hall." | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4769391, | |
| 37.723853 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2714942364", | |
| "properties": { | |
| "@id": "node/2714942364", | |
| "amenity": "drinking_water", | |
| "name": "Water Bottle Refill Station", | |
| "note": "Located on the 1st floor near room 134, across from the bathrooms in the Humanities building." | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4807585, | |
| 37.7220794 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2724417511", | |
| "properties": { | |
| "@id": "node/2724417511", | |
| "amenity": "drinking_water", | |
| "dog": "yes" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4476814, | |
| 37.7723768 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/2932046617", | |
| "properties": { | |
| "@id": "node/2932046617", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4163169, | |
| 37.7419841 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/3069448499", | |
| "properties": { | |
| "@id": "node/3069448499", | |
| "amenity": "drinking_water", | |
| "bottle": "no" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4686934, | |
| 37.7502355 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "id": "node/3187196013", | |
| "properties": { | |
| "@id": "node/3187196013", | |
| "amenity": "drinking_water" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| -122.4224072, | |
| 37.7594623 | |
| ] | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment