Navi Destination

getNaviDestination([, propertyNames])

Declaration

hmkit.commands.NaviDestination.getNaviDestination()

Parameters

propertyNames

(optional) Array of names of the properties you want returned.

Returns

NaviDestinationResponse

Example

hmkit.telematics.sendCommand(
  hmkit.commands.NaviDestination.getNaviDestination(),
  accessCertificate
);

getAvailability([, propertyNames])

Declaration

hmkit.commands.NaviDestination.getAvailability()

Parameters

propertyNames

(optional) Array of names of the properties you want returned.

Example

// Get availability for all properties
hmkit.telematics.sendCommand(
  hmkit.commands.NaviDestination.getAvailability(),
  accessCertificate
);
// Get availability for specific properties
hmkit.telematics.sendCommand(
  hmkit.commands.NaviDestination.getAvailability(['coordinates']),
  accessCertificate
);

Response

Parameters

availability(Object)
updateRate.value

(String) enum

rateLimit.value

(Number)

rateLimit.unit

(String)

appliesPer.value

(String)

Discussion

The response contains an availability object for each property, as shown in the example

Example

{
  "coordinates": {
    "availability": {
      "updateRate": {
        "value": "trip_high"
      },
      "rateLimit": {
        "value": 64,
        "unit": "hertz"
      },
      "appliesPer": {
        "value": "vehicle"
      }
    }
  }
}

setNaviDestination({ coordinates, destinationName })

Parameters

coordinates

(Object)

destinationName

(String) Destination name

Example

hmkit.telematics.sendCommand(
  hmkit.commands.NaviDestination.setNaviDestination({
    "coordinates": {
      "latitude": 52.520008,
      "longitude": 13.404954
    },
    "destinationName": "Berlin"
  }),
  accessCertificate
);