JavaScript/TypeScript
Package for Node.js and the browser to integrate Cartesius into your app
With the Cartesius Software-Development-Kit, you can quickly implement the Cartesius API into your web and backend application. To start, install the @cartesius/sdk
node package.
You can safely use this package in the browser or with Node.js. Bun and Deno should work as well, but are currently not supported. You can use the package in CommonJS and ESM environments.
As a result, you will receive CartesiusApiResponse<CartesiusGeoFeature[]>
which is equivalent to the API response you would receive over HTTP.
Each method is named after the REST endpoint of the API. The naming of the query parameters is also identical.
The package is non-throwing, every error will be represented as CartesiusApiResponse
, which is equivalent to the API response you would receive over HTTP. Success is being indicated with the status
property and the HTTP Status code code
. If there has been an error with the request on the client side, the response will have the code -1. Check the messages for a detailed error descriptions.
Last updated