This file contains 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
//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) |