Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
waypoints: [
{
coordinates: [1, 3],
},
{
coordinates: [2, 4],
},
],
});
mapiRequest.send().then((response: MapiResponse) => {
const body = response.body as DirectionsResponse;
const route = body.routes;
});
const stylesService: StylesService = Styles(config);
stylesService.putStyleIcon({
styleId: 'style-id',
iconId: 'icon-id',
file: 'path-to-file.file'
});
const staticMapService: StaticMapService = StaticMap(client);
const geoOverlay: LineString = {
type: 'LineString',
coordinates: [[0, 1], [2, 3]]
};
staticMapService.getStaticImage({
ownerId: 'owner-id',
styleId: 'some-style',
width: 16,
height: 16,