This class will help you transform any input into a search bar for geocoding.
const jawgPlaces = new JawgPlaces.Input({
accessToken: 'Access-Token',
input: '#my-input',
})
Search a random text, lat/lon or GID using Jawg Places.
All features are points with properties, more details on our documentation.
See JawgPlacesOptions.reverse for lat/lon search and JawgPlacesOptions.place for GID search.
The text to search using Jawg Places
A promise with the feature collection received from Jawg Places
Open the result list with elements from the FeatureCollection. We use the properties.label
field of each features.
This will trigger JawgPlacesOptions.onFeatures callback.
Use it if you want to display specific results or add new elements.
Feature Collection of geocoded points.
This class will help you transform any input into a search bar for geocoding.