get_keys

To receive information about the keys used to access external cartographic services, use the user/get_keys method.

Copied!
svc=user/get_keys&params={}

Response

If the request is completed successfully, the following response is returned:

Copied!
{
	"<key_name>": {
		"ct":<long>,                    /* creation time */
		"name":<text>,                  /* key name */
		"key":<text>,                   /* key value (may be concealed depending on the user, provider and key type) */
		"provider":<text>,              /* map provider name ("google", "here", "trimble", etc.) */
		"type":<uint>,                  /* bit-wise combination of values from the "Key types" table (see below) */
		"sites":[<text>,<text>,<text>]  /* identifiers of sites for which the key is available */
	},
	...
}

Key types

Value Name
1 GIS_EXT_MAP_KEY_PROTECTED
2 GIS_EXT_MAP_KEY_ROUTING
4 GIS_EXT_MAP_KEY_GEOCODING
8 GIS_EXT_MAP_KEY_DISTANCE_MATRIX
16 GIS_EXT_MAP_KEY_PUBLIC
32 GIS_EXT_MAP_KEY_SPEEDINGS

If the request fails, an error code is returned.

Error codes

Error code Description
1 Invalid or obsolete request SID.
4 Invalid request parameters.
6 Internal server error.
7 Unauthorized user.

If you find a mistake in the text, please select it and press Ctrl+Enter.