API client 
The MapTiler SDK JS wraps API calls to the MapTiler Cloud API in helper functions. It uses the API Client JS library under the hood and exposes its functions directly.
Example
// In an async function or as a thenable:
const result = await maptilersdk.geocoding.forward('paris');
Functions
These are the built-in service wrapper functions:
You can use any function documented in the Client JS library by replacing maptilerClient with maptilersdk in your code.
Examples
- const result = await maptilerClient.geocoding.reverse([6.249638, 46.402056]);
+ const result = await maptilersdk.geocoding.reverse([6.249638, 46.402056]);
- const result = await maptilerClient.geolocation.info();
+ const result = await maptilersdk.geolocation.info();
Was this helpful?