Skip to content

Instantly share code, notes, and snippets.

View echjordan's full-sized avatar

Emily Jordan echjordan

  • Ellevation Education
  • Boston,MA
View GitHub Profile
//PAYPHONES.JS
import fetchPayphones from './payphonesFetch'
export function putPhoneData() {
const data = fetchPayphones()
//Narrow results by latitude and longitude
let filteredData = data.filter((result) => {
const lat = result[9].slice(25, 41)
const long = result[9].slice(7, 23)
return (lat < 40.76 && lat > 40.74) && (long > -74 && long < -73.99)