Permalink
Browse files

some refactoring

  • Loading branch information...
1 parent 978aa00 commit 9735997b458056e62646036abfa993df7172b9b8 Craig Wickesser committed May 5, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 lib/traffic/fetchers/bing_traffic_incidents.rb
@@ -6,8 +6,15 @@ module Fetchers
# and counts the number of incidents based on different severity.
class BingTrafficIncidents < Base
- #x = Traffic::Fetchers::BingTraffic.count_incidents '39.202,-76.782,39.461,-76.467', 'KEY GOES HERE'
- #url_config = {/bounding_box/ => bounding_box, /severities/ => severities, /api_key/ => api_key}
+ # fetcher = Traffic::Fetchers::BingTrafficIncidents.new(
+ # /bounding_box/ => '39.202,-76.782,39.461,-76.467',
+ # /api_key/ => '',
+ # /severities/ => '4'
+ # )
+ #
+ # fetcher.fetch
+ # fetcher.data
+
BASE_URL_TEMPLATE = 'http://dev.virtualearth.net/REST/v1/Traffic/Incidents/bounding_box?s=severities&key=api_key'

0 comments on commit 9735997

Please sign in to comment.