Find essential life elements on the go in NYC: WiFi hotspots, subway entrances, and restrooms.
- Via Google Maps API, display the places of interest in a given area.
- Main navigation (category) includes: WiFi hotspots, subway entrances, and restrooms with public access
- Clicking a category item will update the place markers on the map accordingly
- Detecting the current location, indicate the accesses nearest to the user.
- Clicking a place marker on a map will reveal the details about the venue. (E.g. SSID for WiFi access, running trains for subway entrance, etc.)
- User can search by address or/and zip code for planning trips in advance.
ajax
call results are stored locally if user's browser supportslocalStorage
, so that API calls don't have to be made every time user switches navigation.
- Google Maps API: display geolocation data on maps
- NYC Open Data API: pull geolocation data source, from the end points below
- WiFi Hotspots: https://data.cityofnewyork.us/resource/jd4g-ks2z.json
- Subway Entrance: https://data.cityofnewyork.us/resource/he7q-3hwy.json
Public Restrooms data from NYC Open Data API only contains locations managed by city authorities (e.g. parks, playgrounds) and not commercial entities (e.g. Starbucks, McDonalds). More importantly, its geocode information isn't really usable as-is. For more useful interface, I collected NYC restroom data from a few online sources, geocoded each location, and created a JSON file. The resources used in the process include:
- Restroom data: diaroogle.com, toiletfinder.com, and nyrestroom.com)
- Geocoder: geocod.io
- CSV to JSON: csvjson.com
- Data sets used, whether provided by NYC Open Data or custom-created, are not guaranteed to be up to date--especially with WiFi hotspots and restrooms. Storefronts change rapidly in New York City; entities listed here might not be there today, and/or new places will keep popping up constantly.
- Subway entrance info can come in handy when a given station has separate accesses to uptown/downtown trains, or/and multiple entry points. This feature can be more useful if it could actually visualize up-/downtown directions and running lines per entrance, but NYC Open Data API is not sophisticated enough to provide such details yet.