Developer | what3words
We use cookies, including third party cookies, to improve your experience and for marketing purposes. By continuing to browse we assume you have consented to their use.Learn more
got it
All tutorials

Combining the what3words.js AutoSuggest Component with a Mapbox Map


The what3words JavaScript API wrapper provides components to make using the what3words API even easier. In this tutorial we will go through using the autosuggest component in combination with a Mapbox map. We will add the search field using the component and then respond to its select event to place a pin on the map at the inputted location.

You will also need to sign up for a Mapbox developer account and be able to view other Mapbox tutorials at

We also have tutorials demonstrating it’s use with both LeafletJS and Google Map.

Related tutorials

Back to top