lib/datarank/locations.rb in datarank-1.3.0 vs lib/datarank/locations.rb in datarank-1.4.0

- old
+ new

@@ -2,21 +2,28 @@ class Client # Module containing methods for interacting with geocoded data module Locations - # Fetch geocoded comments for a topic + # Fetch location pins for a topic # # @param slug [String] A topic's unique identifier slug - def locations(slug, options={}) + def location_pins(slug, options={}) get "/topics/#{slug}/location/pins", options end - # Fetch average sentiment for topic broken down into provinces with counts + # Fetch location provinces data for a topic # # @param slug [String] A topic's unique identifier slug - def location_sentiment(slug, options={}) - get "/topics/#{slug}/location/sentiment", options + def location_provinces(slug, options={}) + get "/topics/#{slug}/location/provinces", options + end + + # Fetch location heatmap data for a topic + # + # @param slug [String] A topic's unique identifier slug + def location_heatmap(slug, options={}) + get "/topics/#{slug}/location/heatmap", options end end end \ No newline at end of file