Module: Datarank::Client::Locations
- Included in:
- Datarank::Client
- Defined in:
- lib/datarank/locations.rb
Overview
Module containing methods for interacting with geocoded data
Instance Method Summary collapse
-
#location_sentiment(slug, options = {}) ⇒ Object
Fetch average sentiment for topic broken down into provinces with counts.
-
#locations(slug, options = {}) ⇒ Object
Fetch geocoded comments for a topic.
Instance Method Details
#location_sentiment(slug, options = {}) ⇒ Object
Fetch average sentiment for topic broken down into provinces with counts
17 18 19 |
# File 'lib/datarank/locations.rb', line 17 def location_sentiment(slug, ={}) get "/topics/#{slug}/location/sentiment", end |
#locations(slug, options = {}) ⇒ Object
Fetch geocoded comments for a topic
10 11 12 |
# File 'lib/datarank/locations.rb', line 10 def locations(slug, ={}) get "/topics/#{slug}/location/pins", end |