Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CitiBike Finder
Search
kylefdoherty
July 23, 2014
Programming
0
66
CitiBike Finder
Building a Sinatra App with CitiBike's JSON Station feed and the Google Maps API
kylefdoherty
July 23, 2014
Tweet
Share
More Decks by kylefdoherty
See All by kylefdoherty
Getting Started Testing
kylefdoherty
0
100
Going Pro
kylefdoherty
0
49
Other Decks in Programming
See All in Programming
Method Swizzlingを行うライブラリにおけるマルチモジュール設計
yoshikma
0
120
LangChainの現在とv0.3にむけて
os1ma
4
910
Desafios e Lições Aprendidas na Migração de Monólitos para Microsserviços em Java
jessilyneh
2
150
実践!難読化ガイド
mitchan
0
160
KSPの導入・移行を前向きに検討しよう!
shxun6934
PRO
0
240
ドメイン駆動設計を実践するために必要なもの
bikisuke
4
330
The Shape of a Service Object
inem
0
520
GraphQL あるいは React における自律的なデータ取得について
quramy
11
3k
Scala におけるコンパイラエラーとの付き合い方
chencmd
2
420
LangChainでWebサイトの内容取得やGitHubソースコード取得
shukob
0
160
Prompt Cachingは本当に効果的なのか検証してみた.pdf
ttnyt8701
0
530
Go Code Generation at newmo / 2024-08-27 #newmo_layerx_go
genkey6
0
560
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.1k
Web development in the modern age
philhawksworth
205
10k
KATA
mclloyd
27
13k
Design by the Numbers
sachag
277
19k
The World Runs on Bad Software
bkeepers
PRO
64
11k
Principles of Awesome APIs and How to Build Them.
keavy
125
16k
A better future with KSS
kneath
235
17k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
227
52k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
36
1.7k
The Brand Is Dead. Long Live the Brand.
mthomps
53
38k
Testing 201, or: Great Expectations
jmmastey
36
7k
What's in a price? How to price your products and services
michaelherold
242
11k
Transcript
Citi Bike Finder Amy Johnson & Kyle Doherty
Dock Blocked
Blue Biked
None
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 HTTParty Object
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
Amy Johnson - github.com/amyrjohnson Kyle Doherty - github.com/kylefdoherty Project Repo
- github.com/kylefdoherty/citi-bike-search