closestAreas

fun Trends.closestAreas(    latitude: Double,     longitude: Double,     vararg options: Option): JsonArrayApiAction<TrendArea>

Returns the locations that Twitter has trending topic information for, closest to a specified location. The response is an array of "locations" that encode the location's WOEID and some other human-readable information such as a canonical name and country the location belongs in. A WOEID is a Yahoo! Where On Earth ID.

Twitter API reference

Receiver

Trends endpoint instance.

Return

JsonArrayApiAction for TrendArea model.

Parameters

latitude

If provided with a longitude parameter the available trend locations will be sorted by distance, nearest to furthest, to the co-ordinate pair. The valid ranges for longitude is -180.0 to +180.0 (West is negative, East is positive) inclusive.

longitude

If provided with a latitude parameter the available trend locations will be sorted by distance, nearest to furthest, to the co-ordinate pair. The valid ranges for longitude is -180.0 to +180.0 (West is negative, East is positive) inclusive.

options

Optional. Custom parameters of this request.