Skip to Content
Place Search

WeatherBlox - Place Search

Object
aeris.wxblox.views.PlaceSearch
Data Usage
/places (1 per query)

The PlaceSearch view can integrated into your application so your users have the ability to select which location they would like to see weather data for.

Place Search

Examples

Displays the primary place search field:

const view = new aeris.wxblox.views.PlaceSearch('#wxblox'); view.load();

Displays the place search field with a custom selection handler to redirect to a location’s page:

const search = new aeris.wxblox.views.PlaceSearch('#wxblox'); search.on('select', function(e) { var p = e.data.place; var stateOrCountry = (p.place.state) ? p.place.state : p.place.country; var url = locationPageUrl; url = url.replace(/{{loc}}/, encodeURIComponent(p.place.name.toLowerCase() + ',' + stateOrCountry.toLowerCase()); window.location.href = url; });

Configuration

The following configuration options are supported by this view:

OptionDescriptionDefault
searchOnChangeType: boolean ()true
enabledType: boolean ()true
metricType: boolean ()false
renderNoDataType: boolean ()true
requestType: object ()

Methods

The following methods are supported by instances of this view:

Events

The following events are triggered by instances of this view:

© 2026 Xweather (opens in a new tab)Terms of Service (opens in a new tab)Privacy Policy (opens in a new tab)