ChimeraCoder / anaconda

A Go client library for the Twitter 1.1 API
MIT License
1.14k stars 247 forks source link

Differentiate between GeoSearch PlaceResult and Tweet Place #90

Closed dimroc closed 9 years ago

dimroc commented 9 years ago

There are two notions of Place:

  1. The place json returned by a normal tweet to describe a location: https://gist.github.com/gnip/764246#file-twitter-sample-payload-with-geo-info-json-format-js-L66
  2. GeoSearch Result and the places key in the json response: https://dev.twitter.com/rest/reference/get/geo/search

This commit disambiguates between the two.

Fix issue created by commit: https://github.com/ChimeraCoder/anaconda/commit/a239d6c750b2faf45bd55023f395fa884e937fda

ChimeraCoder commented 9 years ago

Thanks for this as well - merged as c23ece65d8fd05eeb6df5f5edef816089b8c24dd.