Home > @magiclane/maps-sdk > LandmarkStoreService > registerLandmarkStore

LandmarkStoreService.registerLandmarkStore() method

Register an already existing landmark store.

The name parameter will override the landmark store internal creation name. This allows registering landmark stores in order to import data from them

Signature:

static registerLandmarkStore(input: {
        name: string;
        path: string;
    }): number;

Parameters

Parameter

Type

Description

{ name, path }

(not declared)

input

{ name: string; path: string; }

input properties:

  • name: string
  • path: string

Returns:

number

On success the landmark store ID (greater than zero) is returned - GemError.exist.code if the name already exists - GemError.notFound.code if the landmark store cannot be found - GemError.invalidInput.code if the path is not a valid landmark store

Exceptions

An exception if it fails.