citi bike finder

Post on 08-Sep-2014

69 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

TRANSCRIPT

Citi Bike Finder

Amy Johnson & Kyle Doherty

Dock Blocked

Blue Biked

Requested Solution

Trip planner that suggests starting and end locations based

on historical data

Realistic Goals

Sinatra using Citi Bike JSON Feed

Search for nearby stations

Google Maps API for directions

Demo

JSON

JSON

Parser

HTTPartyObject

JSON Parser

Station(Geocoder gem)

Station

Builder

Controller

Station(Geocoder gem)

Name&

Location

Controller

Station

(Geocoder gem)

Name&

Location

- Station Name- Location

Station

Refresher

- # of Bikes- # of Docks

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

Directions with the

Google Maps API

What You Need...

1. Directions Renderer Object

• new google.maps.DirectionsRenderer();

2. Directions Service Object

• new google.maps.DirectionsService();

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

views/stations/directions.erb

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

views/stations/directions.erb

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

Next Steps

Rails App

Write Tests & Refactor

Create prediction model

Optimize DB calls

Use caching to speed up responses

top related