Server side usage of services

Hi,

We want to implement some services using web-sdk-services, however when we import package then run the tests we are getting this error.
ReferenceError: self is not defined

We imported the package like this
import tt from ‘@tomtom-international/web-sdk-services’;
and called function like this
tt.services.calculateRoute(options)

do you have any idea what is the issue?

check Basic usage section at Downloads | Maps SDK Web JS v6
it describes how to use this library with node

1 Like