Using the Twitter Search API with geo coordinates - Discovering Hot Topics using Machine Learning

Using the Twitter Search API with geo coordinates

Use the following procedure to set up geo coordinates with the Twitter search API.

  1. Sign in to the AWS Management Console and select to the AWS Region where the Discovering Hot Topics Using Machine Learning solution was deployed.

  2. From the AWS Services section, select AWS Lambda and search for the producer function.

  3. Select the deployed producer Lambda function.

  4. From the Configuration tab, select Environment variables.

  5. Add a new environment variable using the LOCATION_GEOCODE key and a value that represents latitude, longitude, and the radius to cover (Format: ‘lat,long,radius’ Example: ‘0,0,5mi’). For more details, refer to the geocode attribute in the Twitter Search API.