searchClosestLocations abstract method

Future<TwitterResponse<List<TrendingLocationData>, void>> searchClosestLocations({
  1. required double latitude,
  2. required double longitude,
})

Returns the locations that Twitter has trending topic information for, closest to a specified location.

Parameters

  • latitude: Latitude of the location you want to search.

  • longitude: Longitude of the location you want to search.

Endpoint Url

Authentication Methods

  • OAuth 1.0a

Rate Limits

  • User rate limit (OAuth 1.0a): 75 requests per 15-minute window per each authenticated user

Reference

Implementation

Future<TwitterResponse<List<TrendingLocationData>, void>>
    searchClosestLocations({
  required double latitude,
  required double longitude,
});