Skip to content

Instantly share code, notes, and snippets.

@zhik
Last active April 13, 2020 19:51
Show Gist options
  • Save zhik/21b0636481f63f1661ea63e10ab68b7a to your computer and use it in GitHub Desktop.
Save zhik/21b0636481f63f1661ea63e10ab68b7a to your computer and use it in GitHub Desktop.

This script pulls all visible layers from Get Food NYC and converts them to geojson.

How to run

  1. npm install
  2. npm start
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import proj4 from 'proj4'
import { promises as fs } from 'fs'
import fetch from 'node-fetch'
proj4.defs('EPSG:4326', '+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees');
proj4.defs('EPSG:3857','+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs')
function convertToWGS84(coords) {
return proj4('EPSG:3857', 'EPSG:4326', coords)
}
async function main() {
const webmapId = 'd171a1413c7f44e0aeef34de37355d4c'
//pull all layers for web map
const layers = await fetch(`https://www.arcgis.com/sharing/rest/content/items/${webmapId}/data?f=json`)
.then(res => res.json())
.then(async ({ operationalLayers }) => {
//filter for only visible layers
const visibleLayers = operationalLayers.filter(layer => layer.visibility && layer.itemId)
//pull all data for each layer
return Promise.all(visibleLayers.map(async ({ title, itemId }) => {
const features = await fetch(`http://maps.arcgis.com/sharing/rest/content/items/${itemId}/data?f=json`)
.then(res => res.json())
.then(data => {
//append all features in layers to a single feature collection
return data.layers.reduce((collection, layer) => {
//assumes esriGeometryPoint and EPSG:3857
const features = layer.featureSet.features.map(feature => ({
type: "Feature",
properties: feature.attributes,
geometry: {
type: "Point",
coordinates: convertToWGS84([feature.geometry.x, feature.geometry.y])
}
}))
return [...collection, ...features]
}, [])
}).catch(error => error.message)
return {
title,
itemId,
features
}
}))
})
layers.forEach(({ title, itemId, features }) => {
//write each layer to file
fs.writeFile(`./layers/${itemId}.geojson`, JSON.stringify({
type: "FeatureCollection",
name: title,
features,
}));
})
}
main()
Display the source blob
Display the rendered blob
Raw
{"type":"FeatureCollection","name":"NonEFAP as of 413","features":[{"type":"Feature","properties":{"FID":0,"current_sc":"Monday to Friday","_objectid":1,"objectid":1,"brs_id":317,"site_name":"Salvation Army Harlem Temple","address":"540 Lenox Ave , New York, NY 10037","cartodb_id":1,"regular_or":" ","phone_numb":0,"longitude":-73.939287,"latitude":40.815546,"note":"Please call site to confirm hours","x":-73.93928701,"y":40.81554598},"geometry":{"type":"Point","coordinates":[-73.93928899014824,40.81554808844349]}},{"type":"Feature","properties":{"FID":1,"current_sc":"Grab and go lunch Tuesday to Friday 12pm and Pantry Thursday 1pm","_objectid":2,"objectid":2,"brs_id":316,"site_name":"Iris House West Side","address":"2348 Adam Clayton Powell Blvd., New York, NY, 10030","cartodb_id":2,"regular_or":"Adjusted","phone_numb":0,"longitude":-73.942839,"latitude":40.81712,"note":"Please call site to confirm hours","x":-73.94283904,"y":40.81711998},"geometry":{"type":"Point","coordinates":[-73.94283733552051,40.81711854857543]}},{"type":"Feature","properties":{"FID":2,"current_sc":"Wednesday 6:30pm to 8pm","_objectid":3,"objectid":3,"brs_id":46,"site_name":"Christ Apostolic Church WOSEM Citadel of God Almighty","address":"442 E 183 St","cartodb_id":3,"regular_or":"Regular","phone_numb":0,"longitude":-73.894242,"latitude":40.85547,"note":"Please call site to confirm hours","x":-73.89424198,"y":40.85547001},"geometry":{"type":"Point","coordinates":[-73.89423847864964,40.855471098255556]}},{"type":"Feature","properties":{"FID":3,"current_sc":"Everyday 7am","_objectid":4,"objectid":4,"brs_id":278,"site_name":"St. Francis of Assisi","address":"135 W 3","cartodb_id":4,"regular_or":"Regular","phone_numb":0,"longitude":-74.000798,"latitude":40.731,"note":"Please call site to confirm hours","x":-74.00079799,"y":40.73100002},"geometry":{"type":"Point","coordinates":[-74.0007966376519,40.73100117570073]}},{"type":"Feature","properties":{"FID":4,"current_sc":"Sunday to Thursday 3pm to 7pm","_objectid":5,"objectid":5,"brs_id":10010,"site_name":"Masbia of Flatbush","address":"1372 Coney Island Avenue?? Brooklyn, NY 11230","cartodb_id":5,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.965393,"latitude":40.624045,"note":"Please call site to confirm hours","x":-73.96539304,"y":40.62404497},"geometry":{"type":"Point","coordinates":[-73.96539403230476,40.62404810365529]}},{"type":"Feature","properties":{"FID":5,"current_sc":"Everyday lunch pick up","_objectid":7,"objectid":7,"brs_id":198,"site_name":"North Side Senior Center","address":"179 North 6th Street","cartodb_id":6,"regular_or":"Adjusted","phone_numb":718387316,"longitude":-73.957152,"latitude":40.716852,"note":"Please call site to confirm hours","x":-73.95715199,"y":40.71685199},"geometry":{"type":"Point","coordinates":[-73.95715648114937,40.71685417326464]}},{"type":"Feature","properties":{"FID":6,"current_sc":"Saturday 8am to 9am","_objectid":8,"objectid":8,"brs_id":96,"site_name":"All Nations Baptist Church Community Food Pantry","address":"86-74 80 St , Queens, New York","cartodb_id":7,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-74.03678,"latitude":40.62937,"note":"Please call site to confirm hours","x":-74.03678,"y":40.62936997},"geometry":{"type":"Point","coordinates":[-74.03678314793372,40.62937290239922]}},{"type":"Feature","properties":{"FID":7,"current_sc":"Wednesday 12pm to 5pm","_objectid":9,"objectid":9,"brs_id":97,"site_name":"Christina Home Care Food Pantry","address":"120-13 Liberty Ave , Queens 121-12 Liberty Ave (Office)","cartodb_id":8,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.822769,"latitude":40.687073,"note":"Please call site to confirm hours","x":-73.82276896,"y":40.68707301},"geometry":{"type":"Point","coordinates":[-73.82276851464509,40.68707301270127]}},{"type":"Feature","properties":{"FID":8,"current_sc":"Sunday to Thursday 1pm to 6pm","_objectid":10,"objectid":10,"brs_id":1000,"site_name":"Masbia of Queens","address":"105-47 64 Rd, Forest Hills, NY 11375","cartodb_id":9,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.849783,"latitude":40.732344,"note":"Please call site to confirm hours","x":-73.84978301,"y":40.73234403},"geometry":{"type":"Point","coordinates":[-73.84978085523856,40.73234219360312]}},{"type":"Feature","properties":{"FID":9,"current_sc":"Tuesday 4pm to 6pm","_objectid":11,"objectid":11,"brs_id":360,"site_name":"West End Collegiate Church","address":"245 W 77 St New York, NY 10024","cartodb_id":10,"regular_or":"Regular","phone_numb":2127871566,"longitude":-73.981575,"latitude":40.783039,"note":"Please call site to confirm hours","x":-73.98157503,"y":40.78303897},"geometry":{"type":"Point","coordinates":[-73.98157269057174,40.78303597564593]}},{"type":"Feature","properties":{"FID":10,"current_sc":"Sunday 2pm to 3pm","_objectid":12,"objectid":12,"brs_id":362,"site_name":"Blessed Sacrament Church","address":"147 W 70 St New York, NY 10023","cartodb_id":11,"regular_or":"Regular","phone_numb":2128773111,"longitude":-73.981222,"latitude":40.777074,"note":"Please call site to confirm hours","x":-73.98122199,"y":40.77707401},"geometry":{"type":"Point","coordinates":[-73.98122234761092,40.777077209020355]}},{"type":"Feature","properties":{"FID":11,"current_sc":"9am to 12pm everyday depending on what they have","_objectid":13,"objectid":13,"brs_id":206,"site_name":"Catholic Charities St. John's Food Pantry","address":"333 Hart St","cartodb_id":12,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.936178,"latitude":40.695004,"note":"Please call site to confirm hours","x":-73.93617803,"y":40.69500402},"geometry":{"type":"Point","coordinates":[-73.93618081926518,40.695001427442854]}},{"type":"Feature","properties":{"FID":12,"current_sc":"Monday to Thurusday 12pm to 1pm","_objectid":15,"objectid":15,"brs_id":15,"site_name":"LAMPCafe Street Ministry - Tinton Ave","address":"685 Tinton Ave","cartodb_id":13,"regular_or":"Regular","phone_numb":0,"longitude":-73.905616,"latitude":40.816227,"note":"Please call site to confirm hours","x":-73.905616,"y":40.81622699},"geometry":{"type":"Point","coordinates":[-73.90562013329944,40.81622794587796]}},{"type":"Feature","properties":{"FID":13,"current_sc":"Monday to Friday 8am to 6pm","_objectid":16,"objectid":16,"brs_id":25,"site_name":"Heights Pantry/ Bronxworks, Inc.","address":"200 W Tremont Ave","cartodb_id":14,"regular_or":"Adjusted","phone_numb":0,"longitude":-73.91714,"latitude":40.85182,"note":"Please call site to confirm hours","x":-73.91714004,"y":40.85182003},"geometry":{"type":"Point","coordinates":[-73.91713653524185,40.851822342551316]}},{"type":"Feature","properties":{"FID":14,"current_sc":"Saturday 2:30pm","_objectid":17,"objectid":17,"brs_id":296,"site_name":"Village Temple Soup Kitchen","address":"33 East 12th Street, New York, NY, 10003","cartodb_id":15,"regular_or":"Regular","phone_numb":2126742372,"longitude":-73.992212,"latitude":40.733896,"note":"Please call site to confirm hours","x":-73.99221198,"y":40.73389597},"geometry":{"type":"Point","coordinates":[-73.99220874353571,40.73389420088587]}},{"type":"Feature","properties":{"FID":15,"current_sc":"Wednesday 5:30pm to 6:30pm","_objectid":18,"objectid":18,"brs_id":375,"site_name":"The Dwelling Place of N.Y., Inc.","address":"409 W. 40th","cartodb_id":16,"regular_or":"Regular","phone_numb":2125647887,"longitude":-73.994219,"latitude":40.757593,"note":"Please call site to confirm hours","x":-73.99421899,"y":40.75759301},"geometry":{"type":"Point","coordinates":[-73.99422096977214,40.757591848763944]}},{"type":"Feature","properties":{"FID":16,"current_sc":"Saturday 9am to 11am","_objectid":19,"objectid":19,"brs_id":34,"site_name":"Worldwide Movement Father Son & Holy Spirit","address":"625 E 180","cartodb_id":17,"regular_or":"Regular","phone_numb":0,"longitude":-73.890683,"latitude":40.849268,"note":"Please call site to confirm hours","x":-73.89068304,"y":40.84926803},"geometry":{"type":"Point","coordinates":[-73.89068115012452,40.84926741447855]}},{"type":"Feature","properties":{"FID":17,"current_sc":"Everyday at 5:30pm","_objectid":21,"objectid":21,"brs_id":280,"site_name":"Grand Central Food Program - Madison Square Park","address":"5th Ave. and 27th St. New York, NY 10001","cartodb_id":18,"regular_or":"Regular","phone_numb":2127762019,"longitude":-73.988132,"latitude":40.744365,"note":"Please call site to confirm hours","x":-73.98813201,"y":40.74436502},"geometry":{"type":"Point","coordinates":[-73.98813039214582,40.74436249720338]}},{"type":"Feature","properties":{"FID":18,"current_sc":"Monday to Friday 8am to 12pm","_objectid":22,"objectid":22,"brs_id":240,"site_name":"St. John's Bread and Life Mobile Soup Kitchen - Holy House of Prayer","address":"795 Lexington Ave Brooklyn NY 11221","cartodb_id":19,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.928909,"latitude":40.690443,"note":"Please call site to confirm hours","x":-73.92890896,"y":40.69044298},"geometry":{"type":"Point","coordinates":[-73.92891344861665,40.690444747657764]}},{"type":"Feature","properties":{"FID":19,"current_sc":"Monday to Friday 7:30am to 5:30pm","_objectid":23,"objectid":23,"brs_id":119,"site_name":"Walk in Love Family Center","address":"202-11 Jamaica Avenue\tQueens (Hollis)","cartodb_id":20,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.756698,"latitude":40.713716,"note":"Please call site to confirm hours","x":-73.75669796,"y":40.71371603},"geometry":{"type":"Point","coordinates":[-73.7566974254981,40.71371528250425]}},{"type":"Feature","properties":{"FID":20,"current_sc":"Thusday and Friday 10:30am to 12pm","_objectid":25,"objectid":26,"brs_id":235,"site_name":"King Emmanuel Community Services","address":"340-44 Malcolm X Blvd","cartodb_id":21,"regular_or":"Regular","phone_numb":0,"longitude":-73.944266,"latitude":40.808774,"note":"Please call site to confirm hours","x":-73.94426602,"y":40.80877402},"geometry":{"type":"Point","coordinates":[-73.94426565682225,40.80877632812716]}},{"type":"Feature","properties":{"FID":21,"current_sc":"Monday to Friday 9am to 10:15am","_objectid":26,"objectid":27,"brs_id":298,"site_name":"St. Joseph House/Catholic Worker","address":"36 E. 1st Street","cartodb_id":22,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.990116,"latitude":40.72414,"note":"Please call site to confirm hours","x":-73.99011603,"y":40.72413998},"geometry":{"type":"Point","coordinates":[-73.9901156689237,40.724139097707244]}},{"type":"Feature","properties":{"FID":22,"current_sc":"Saturday 10am to 12pm","_objectid":28,"objectid":29,"brs_id":495,"site_name":"Park Avenue Church","address":"1010 Park Ave","cartodb_id":23,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.958337,"latitude":40.779424,"note":"Please call site to confirm hours","x":-73.95833696,"y":40.77942398},"geometry":{"type":"Point","coordinates":[-73.95833327417157,40.7794240473532]}},{"type":"Feature","properties":{"FID":23,"current_sc":"Tuesdays and Thursdays from 12pm to 4pm Service is by appointment only and only available to Lehman students","_objectid":29,"objectid":30,"brs_id":450,"site_name":"Lehman College ??Lend A Can?? Food Pantry","address":"250 Bedford Blvd, Bronx, NY 10468","cartodb_id":24,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.892838,"latitude":40.874606,"note":"Please call site to confirm hours","x":-73.89283801,"y":40.87460597},"geometry":{"type":"Point","coordinates":[-73.89283710680641,40.874608485501795]}},{"type":"Feature","properties":{"FID":24,"current_sc":"Everyday 5pm","_objectid":30,"objectid":32,"brs_id":252,"site_name":"Overcoming Love Ministries - Van Siclen Family Residence","address":"246 Jamaica Ave","cartodb_id":25,"regular_or":"Regular","phone_numb":0,"longitude":-73.892026,"latitude":40.680539,"note":"Please call site to confirm hours","x":-73.89202602,"y":40.68053899},"geometry":{"type":"Point","coordinates":[-73.8920286230507,40.68054021652998]}},{"type":"Feature","properties":{"FID":25,"current_sc":"Wednesday 11am to 1pm","_objectid":33,"objectid":35,"brs_id":489,"site_name":"New York City Relief","address":"28 St between 9 and 10 Ave","cartodb_id":26,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.939679,"latitude":40.744368,"note":"Please call site to confirm hours","x":-73.93967904,"y":40.74436801},"geometry":{"type":"Point","coordinates":[-73.9396752657204,40.744369303102005]}},{"type":"Feature","properties":{"FID":26,"current_sc":"Tuesday to Thursday 11am to 1pm","_objectid":35,"objectid":37,"brs_id":100012,"site_name":"JCC of Washington Heights","address":"121 Bennett Place 11A New York, NY 10033","cartodb_id":27,"regular_or":"Regular","phone_numb":2125685450,"longitude":-73.934527,"latitude":40.854105,"note":"Please call site to confirm hours","x":-73.93452702,"y":40.85410498},"geometry":{"type":"Point","coordinates":[-73.9345279191424,40.85410538641152]}},{"type":"Feature","properties":{"FID":27,"current_sc":"Monday Tuesday Thursday Friday 9:30am to 4:00pm","_objectid":36,"objectid":38,"brs_id":10006,"site_name":"JCC of Greater Coney Island","address":"3001 West 37th Street, Brooklyn, NY 11224","cartodb_id":28,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-74.002162,"latitude":40.572736,"note":"Please call site to confirm hours","x":-74.00216199,"y":40.57273601},"geometry":{"type":"Point","coordinates":[-74.00216207688375,40.572735121865065]}},{"type":"Feature","properties":{"FID":28,"current_sc":"Thursday but call ahead","_objectid":37,"objectid":39,"brs_id":10005,"site_name":"Shorefront JCC","address":"Shorefront JCC 3014 Brighton 6th Street Brooklyn, New York 11235","cartodb_id":29,"regular_or":"Adjusted","phone_numb":0,"longitude":-73.962338,"latitude":40.579139,"note":"Please call site to confirm hours","x":-73.96233796,"y":40.57913902},"geometry":{"type":"Point","coordinates":[-73.96233976033874,40.57914201711062]}},{"type":"Feature","properties":{"FID":29,"current_sc":"Sunday to Thursday 3pm to 7pm","_objectid":38,"objectid":40,"brs_id":10009,"site_name":"Masbia of Boro Park","address":"5402 New Utrecht Avenue Brooklyn, New York 11219","cartodb_id":30,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.995515,"latitude":40.632367,"note":"Please call site to confirm hours","x":-73.99551499,"y":40.63236701},"geometry":{"type":"Point","coordinates":[-73.99551454378128,40.632365784701]}},{"type":"Feature","properties":{"FID":30,"current_sc":"Saturday 11am to 1pm","_objectid":39,"objectid":42,"brs_id":492,"site_name":"New York City Relief","address":"148 St and Brook Ave, Bronx, NY","cartodb_id":31,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.921495,"latitude":40.804938,"note":"Please call site to confirm hours","x":-73.92149498,"y":40.80493801},"geometry":{"type":"Point","coordinates":[-73.92149336436982,40.8049346106773]}},{"type":"Feature","properties":{"FID":31,"current_sc":"Monday Thursday 10am to 3pm and Tuesday Wednesday Friday 10am to 6pm","_objectid":41,"objectid":44,"brs_id":190,"site_name":"The Campaign Against Hunger at Marlboro Housing Development","address":"2010 Fulton St, Brooklyn, NY 11233","cartodb_id":32,"regular_or":"Regular","phone_numb":-2147483648,"longitude":-73.917832,"latitude":40.678484,"note":"Please call site to confirm hours","x":-73.91783201,"y":40.67848399},"geometry":{"type":"Point","coordinates":[-73.91782823801061,40.6784828321939]}},{"type":"Feature","properties":{"FID":32,"current_sc":"Monday to Friday 10am to 3pm","_objectid":42,"objectid":45,"brs_id":10011,"site_name":"Bronx JCC","address":"2157 Holland Avenue, Bronx, NY 10462","cartodb_id":33,"regular_or":"Regular","phone_numb":-2147483648,"longitude":-73.865992,"latitude":40.855338,"note":"Please call site to confirm hours","x":-73.86599203,"y":40.85533799},"geometry":{"type":"Point","coordinates":[-73.86599544611691,40.85533520779109]}},{"type":"Feature","properties":{"FID":33,"current_sc":"Every 2nd Wednesday 5:30pm to 7pm and Every Saturday 10am to 12pm","_objectid":43,"objectid":46,"brs_id":350,"site_name":"Mother's Kitchen at Ascension Church","address":"221 W 107th St, New York, NY 10025","cartodb_id":34,"regular_or":"Adjusted","phone_numb":0,"longitude":-73.966471,"latitude":40.801886,"note":"Please call site to confirm hours","x":-73.96647102,"y":40.80188603},"geometry":{"type":"Point","coordinates":[-73.96647201064569,40.80188827663233]}},{"type":"Feature","properties":{"FID":34,"current_sc":"Monday to Friday 9am to 3pm","_objectid":44,"objectid":47,"brs_id":416,"site_name":"Catholic Charities Mobile Food Pantry - Anderson Avenue","address":"120 Anderson Ave Staten Island, NY 10302","cartodb_id":35,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-74.134513,"latitude":40.634689,"note":"Please call site to confirm hours","x":-74.13451302,"y":40.63468903},"geometry":{"type":"Point","coordinates":[-74.1345108676931,40.634690459479984]}},{"type":"Feature","properties":{"FID":35,"current_sc":"Tuesday 9am to 12pm or Wednesday if it rains","_objectid":45,"objectid":48,"brs_id":300,"site_name":"Street LIFE Ministries - Tompkins Square Park, New York, NY","address":"Distribution: Ave A & 7th Street (Tompkins Square Park), New York, NY, 10009 Office: 15411 Ash Avenue, Flushing, NY 11355","cartodb_id":36,"regular_or":"Regular","phone_numb":35,"longitude":-73.985834,"latitude":40.722397,"note":"Please call site to confirm hours","x":-73.98583403,"y":40.72239698},"geometry":{"type":"Point","coordinates":[-73.98583070501847,40.7223962350701]}},{"type":"Feature","properties":{"FID":36,"current_sc":"Monday to Saturday 10am to 12pm","_objectid":46,"objectid":49,"brs_id":322,"site_name":"Metropolitan Baptist Church","address":"151 W 128 St, New York, NY, 10027","cartodb_id":37,"regular_or":"Regular","phone_numb":0,"longitude":-73.94641,"latitude":40.810933,"note":"Please call site to confirm hours","x":-73.94641003,"y":40.81093303},"geometry":{"type":"Point","coordinates":[-73.9464126303513,40.81093167220394]}},{"type":"Feature","properties":{"FID":37,"current_sc":"Friday 10am to 2pm","_objectid":47,"objectid":50,"brs_id":330,"site_name":"First Corinthian Baptist Church","address":"1912 Adam Clayton Powell, Jr. Blvd., New York, NY 10026","cartodb_id":38,"regular_or":"Adjusted","phone_numb":0,"longitude":-73.953149,"latitude":40.80318,"note":"Please call site to confirm hours","x":-73.95314901,"y":40.80317999},"geometry":{"type":"Point","coordinates":[-73.9531499949822,40.80318026573576]}},{"type":"Feature","properties":{"FID":38,"current_sc":"Tuesday Wednesday and Thursday from 10am to 12pm","_objectid":48,"objectid":51,"brs_id":459,"site_name":"St. Michael's Church","address":"136-76 41 Ave","cartodb_id":39,"regular_or":"Regular","phone_numb":-2147483648,"longitude":-73.826178,"latitude":40.758874,"note":"Please call site to confirm hours","x":-73.82617798,"y":40.75887402},"geometry":{"type":"Point","coordinates":[-73.82618211272474,40.75887109091657]}},{"type":"Feature","properties":{"FID":39,"current_sc":"Monday to Friday 11am to 2pm","_objectid":49,"objectid":52,"brs_id":476,"site_name":"Hugh Gilroy Senior Center","address":"447 Kingsborough 4th Walk, 2nd Floor, Brooklyn, NY 11233","cartodb_id":40,"regular_or":"Regular","phone_numb":0,"longitude":-73.924598,"latitude":40.675106,"note":"Please call site to confirm hours","x":-73.92459803,"y":40.675106},"geometry":{"type":"Point","coordinates":[-73.92460153525288,40.675103679076635]}},{"type":"Feature","properties":{"FID":40,"current_sc":"Wednesday 1pm to 2pm","_objectid":50,"objectid":53,"brs_id":424,"site_name":"Saints Peter and Paul and Assumption","address":"53 St. Mark's Place Staten Island, NY 10304","cartodb_id":41,"regular_or":"Regular","phone_numb":-2147483648,"longitude":-73.986569,"latitude":40.728343,"note":"Please call site to confirm hours","x":-73.98656903,"y":40.72834302},"geometry":{"type":"Point","coordinates":[-73.98656732355144,40.72834628897148]}},{"type":"Feature","properties":{"FID":41,"current_sc":"Wednesday 10am to 2pm and closing for Passover","_objectid":51,"objectid":54,"brs_id":485,"site_name":"Hannah Kosher Food Shabbat Foundation","address":"2102 Avenue T","cartodb_id":42,"regular_or":"Regular","phone_numb":0,"longitude":-73.950544,"latitude":40.601516,"note":"Please call site to confirm hours","x":-73.95054398,"y":40.60151603},"geometry":{"type":"Point","coordinates":[-73.95054488065824,40.60151698548045]}},{"type":"Feature","properties":{"FID":42,"current_sc":"Tuesday to Wednesday 5pm to 7pm","_objectid":52,"objectid":55,"brs_id":435,"site_name":"Christian Pentecostal Church","address":"910 Richmon Rd. Staten Island NY 10304","cartodb_id":43,"regular_or":"Regular","phone_numb":-2147483648,"longitude":-74.092174,"latitude":40.60457,"note":"Please call site to confirm hours","x":-74.09217399,"y":40.60456997},"geometry":{"type":"Point","coordinates":[-74.09217326835254,40.60457249758942]}},{"type":"Feature","properties":{"FID":43,"current_sc":"Tuesday 9am to 12pm","_objectid":53,"objectid":56,"brs_id":404,"site_name":"Street LIFE Ministries","address":"Ave A & 7th Street (Tompkins Square Park)","cartodb_id":44,"regular_or":"Regular","phone_numb":-2147483648,"longitude":-73.985834,"latitude":40.722397,"note":"Please call site to confirm hours","x":-73.98583403,"y":40.72239698},"geometry":{"type":"Point","coordinates":[-73.98583070501847,40.7223962350701]}},{"type":"Feature","properties":{"FID":44,"current_sc":"Sunday 9am to 1pm and Tuesday 11am to 1pm","_objectid":54,"objectid":57,"brs_id":191,"site_name":"Salt and Sea Mission","address":"2417 Stillwell Ave","cartodb_id":45,"regular_or":"Regular","phone_numb":0,"longitude":-73.983426,"latitude":40.588552,"note":"Please call site to confirm hours","x":-73.983426,"y":40.58855201},"geometry":{"type":"Point","coordinates":[-73.98342322005702,40.58854996624271]}},{"type":"Feature","properties":{"FID":45,"current_sc":"Breakfast Monday to Tuesday and Thursday to Sunday 12pm to 1pm and Lunch Monday to Tuesday and Thursday to Sunday 1pm to 4pm","_objectid":55,"objectid":58,"brs_id":325,"site_name":"Safe Horizon Streetwork Project","address":"209 West 125th Street, 2nd Fl, New York, NY, 10027","cartodb_id":46,"regular_or":"Regular","phone_numb":11,"longitude":-73.948585,"latitude":40.809379,"note":"Please call site to confirm hours","x":-73.94858503,"y":40.80937902},"geometry":{"type":"Point","coordinates":[-73.94858655333887,40.80938146334357]}},{"type":"Feature","properties":{"FID":46,"current_sc":"April 7 April 21 May 12 May 26 from 10am to 12pm","_objectid":56,"objectid":59,"brs_id":107,"site_name":"St. Bonaventure-St. Benedict the Moor Food Pantry","address":"171-17 110th Avenue","cartodb_id":47,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.782363,"latitude":40.696596,"note":"Please call site to confirm hours","x":-73.78236301,"y":40.69659599},"geometry":{"type":"Point","coordinates":[-73.78236229316539,40.696595170128454]}},{"type":"Feature","properties":{"FID":47,"current_sc":"Monday 5pm to 7pm","_objectid":57,"objectid":60,"brs_id":494,"site_name":"Flow Kingdom Ministries","address":"901 E Tremont Ave","cartodb_id":48,"regular_or":"Regular","phone_numb":-2147483648,"longitude":-73.884395,"latitude":40.842373,"note":"Please call site to confirm hours","x":-73.88439501,"y":40.84237303},"geometry":{"type":"Point","coordinates":[-73.8843929431357,40.842369975770964]}},{"type":"Feature","properties":{"FID":48,"current_sc":"Friday 10:30am to 12:30 for Seniors and Friday 1:30pm to 4:45pm for the rest of the public","_objectid":58,"objectid":61,"brs_id":496,"site_name":"Council of People Organization (COPO)","address":"1077 Coney Island Ave Brooklyn, NY 11230","cartodb_id":49,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.966217,"latitude":40.631332,"note":"Please call site to confirm hours","x":-73.96621698,"y":40.63133199},"geometry":{"type":"Point","coordinates":[-73.96622048236614,40.63132953995167]}},{"type":"Feature","properties":{"FID":49,"current_sc":"Home delivered meals 1 day per week per individual 10am to 6pm","_objectid":59,"objectid":62,"brs_id":344,"site_name":"The Carter Burden Luncheon Club and Senior Program","address":"1393 York Ave, New York, NY 10021","cartodb_id":50,"regular_or":"Adjusted","phone_numb":0,"longitude":-73.953024,"latitude":40.768473,"note":"Please call site to confirm hours","x":-73.95302396,"y":40.76847299},"geometry":{"type":"Point","coordinates":[-73.95302423084242,40.76847142579874]}},{"type":"Feature","properties":{"FID":50,"current_sc":"Saturday 4:30pm to 5:30pm","_objectid":60,"objectid":63,"brs_id":348,"site_name":"All Saints Episcopal Church","address":"230 E 60 St, New York, NY 10022","cartodb_id":51,"regular_or":"Regular","phone_numb":2127580447,"longitude":-73.965034,"latitude":40.761434,"note":"Please call site to confirm hours","x":-73.96503399,"y":40.76143399},"geometry":{"type":"Point","coordinates":[-73.9650347061911,40.761436305520995]}},{"type":"Feature","properties":{"FID":51,"current_sc":"Friday 11am to 1pm","_objectid":61,"objectid":64,"brs_id":490,"site_name":"New York City Relief","address":"132 W 14 St, NY, NY 10001","cartodb_id":52,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.998636,"latitude":40.737799,"note":"Please call site to confirm hours","x":-73.99863601,"y":40.73779897},"geometry":{"type":"Point","coordinates":[-73.99863169781716,40.7378012869921]}},{"type":"Feature","properties":{"FID":52,"current_sc":"Saturday 11am to 1pm","_objectid":62,"objectid":65,"brs_id":491,"site_name":"New York City Relief","address":"124 Street and Park Ave","cartodb_id":53,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.978312,"latitude":40.751928,"note":"Please call site to confirm hours","x":-73.97831199,"y":40.75192798},"geometry":{"type":"Point","coordinates":[-73.97831180609037,40.75193022625105]}},{"type":"Feature","properties":{"FID":53,"current_sc":"Thursday 12pm to 2pm","_objectid":63,"objectid":66,"brs_id":497,"site_name":"New York City Relief","address":"227 Bowery","cartodb_id":54,"regular_or":"Adjusted","phone_numb":-2147483648,"longitude":-73.992852,"latitude":40.721981,"note":"Please call site to confirm hours","x":-73.99285203,"y":40.721981},"geometry":{"type":"Point","coordinates":[-73.99285553054028,40.72198093684939]}},{"type":"Feature","properties":{"FID":54,"current_sc":"Tuesday to Thursday 11:30am to 12:30pm possibly once a month","_objectid":64,"objectid":67,"brs_id":351,"site_name":"West End Presbyterian Church","address":"165 W 105 St, New York, NY, 10025","cartodb_id":55,"regular_or":"Adjusted","phone_numb":0,"longitude":-73.965741,"latitude":40.799826,"note":"Please call site to confirm hours","x":-73.96574096,"y":40.79982601},"geometry":{"type":"Point","coordinates":[-73.96574437526554,40.79982784197588]}},{"type":"Feature","properties":{"FID":55,"current_sc":"Monday 2pm to 4pm Tuesday 10:30am to 12:30pm Thursday 3pm to 5pm","_objectid":65,"objectid":68,"brs_id":73,"site_name":"Hour Children Food Pantry","address":"36-11 12 St","cartodb_id":56,"regular_or":"Regular","phone_numb":0,"longitude":-73.939141,"latitude":40.760384,"note":"Please call site to confirm hours","x":-73.93914104,"y":40.76038397},"geometry":{"type":"Point","coordinates":[-73.93914525970277,40.760381653675154]}},{"type":"Feature","properties":{"FID":56,"current_sc":"Delivery based depending on calls and staff availability and not open to public","_objectid":66,"objectid":69,"brs_id":189,"site_name":"Sephardic Bikur Holim","address":"425 Kings Hwy","cartodb_id":57,"regular_or":"Adjusted","phone_numb":0,"longitude":-73.97453,"latitude":40.60471,"note":"Please call site to confirm hours","x":-73.97452999,"y":40.60470999},"geometry":{"type":"Point","coordinates":[-73.97452989874425,40.60470890112301]}},{"type":"Feature","properties":{"FID":57,"current_sc":"Tuesday through Thursday 11am to 145pm","_objectid":68,"objectid":71,"brs_id":488,"site_name":"Brooklyn College Campus Pantry","address":"290 Bedford Avenue, Brooklyn, Ny, 11210","cartodb_id":58,"regular_or":" ","phone_numb":0,"longitude":-73.953481,"latitude":40.63176,"note":"Please call site to confirm hours","x":-73.95348102,"y":40.63175999},"geometry":{"type":"Point","coordinates":[-73.95348237163732,40.63175903808203]}}]}
{
"name": "nyc-food-map",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node -r esm index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"esm": "^3.2.25",
"node-fetch": "^2.6.0",
"proj4": "^2.6.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment