Search code examples
node.jstwittergeocoding

How to search by geocode with twitter?


So in my node.js code I have the following parameters:

var params = {
q: 'since:2017-04-04', // REQUIRED //goes by year-month-date
geocode: '33.743450 -84.393138 10mi',
result_type: 'recent',
count:'100',
lang*: 'en'
}

If I do not have geocode, it works fine. If however, I do have the geocode then it returns nothing at all. I was following the API instructions so I am 100% that it is actually a valid parameter. Thus, my question, how to use the geocode parameter?


Solution

  • You need to use the geo/search endpoint.