TomTom Maps for JavaScript
    Preparing search index...

    Variable createGetCurrentLocationToolConst

    createGetCurrentLocationTool: (
        options?: GetCurrentLocationToolOptions,
    ) => ToolEntry

    Builds a getCurrentLocation ToolEntry. Pass the result to createMapAgent's tools option to replace the built-in default, for example to send the exact position:

    createMapAgent(map, {
    model,
    tools: { getCurrentLocation: createGetCurrentLocationTool({ fullPrecision: true }) },
    });

    Type Declaration