Skip to content

@smartmaps/weatherDocs


@smartmaps/weather / Weather

Class: Weather

Constructors

new Weather()

new Weather(apiKey): Weather

Parameters

apiKey: string

Returns

Weather

Methods

address()

address(params): Promise\<WeatherFeatureCollection>

Parameters

params: WeatherAddressRequestParams

Returns

Promise\<WeatherFeatureCollection>


location()

location(params): Promise\<WeatherFeatureCollection>

Parameters

params: WeatherLocationRequestParams

Returns

Promise\<WeatherFeatureCollection>


point()

point(params): Promise\<WeatherFeatureCollection>

Parameters

params: WeatherPointRequestParams

Returns

Promise\<WeatherFeatureCollection>


polyline()

polyline(params): Promise\<WeatherFeatureCollection>

Parameters

params: WeatherPolylineRequestParams

Returns

Promise\<WeatherFeatureCollection>


rectangle()

rectangle(params): Promise\<WeatherFeatureCollection>

Parameters

params: WeatherRectangleRequestParams

Returns

Promise\<WeatherFeatureCollection>