get_keys
To receive information about the keys used to access external cartographic services, use the user/get_keys command.
svc=user/get_keys¶ms={}
Response
If the request has been completed successfully, the following response is returned:
{
"<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 hasn’t beed completed, 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. |