citi bike finder

19
Citi Bike Finder Amy Johnson & Kyle Doherty

Upload: flatiron-school

Post on 08-Sep-2014

69 views

Category:

Technology


2 download

DESCRIPTION

Presented by Amy Johnson and Kyle Doherty on July 22, 2014 at The Flatiron School.

TRANSCRIPT

Page 1: Citi Bike Finder

Citi Bike Finder

Amy Johnson & Kyle Doherty

Page 2: Citi Bike Finder

Dock Blocked

Page 3: Citi Bike Finder

Blue Biked

Page 4: Citi Bike Finder
Page 5: Citi Bike Finder

Requested Solution

Trip planner that suggests starting and end locations based

on historical data

Page 6: Citi Bike Finder

Realistic Goals

Sinatra using Citi Bike JSON Feed

Search for nearby stations

Google Maps API for directions

Page 7: Citi Bike Finder

Demo

Page 8: Citi Bike Finder

JSON

JSON

Parser

HTTPartyObject

Page 9: Citi Bike Finder

JSON Parser

Station(Geocoder gem)

Station

Builder

Page 10: Citi Bike Finder

Controller

Station(Geocoder gem)

Name&

Location

Page 11: Citi Bike Finder

Controller

Station

(Geocoder gem)

Name&

Location

- Station Name- Location

Station

Refresher

- # of Bikes- # of Docks

Page 12: Citi Bike Finder

- Station Name- Location- # of Bikes- # of Docks

Page 13: Citi Bike Finder

Directions with the

Google Maps API

Page 14: Citi Bike Finder

What You Need...

1. Directions Renderer Object

• new google.maps.DirectionsRenderer();

2. Directions Service Object

• new google.maps.DirectionsService();

Page 15: Citi Bike Finder

Directions Renderer• new google.maps.DirectionsRenderer();

views/stations/directions.erb

Page 16: Citi Bike Finder

Directions Service• new google.maps.DirectionsService();

views/stations/directions.erb

Page 17: Citi Bike Finder

Directions Renderer• new google.maps.DirectionsRenderer();

Page 18: Citi Bike Finder

Next Steps

Rails App

Write Tests & Refactor

Create prediction model

Optimize DB calls

Use caching to speed up responses