Skip to content

Instantly share code, notes, and snippets.

@germanviscuso
Created November 13, 2020 11:49
Show Gist options
  • Save germanviscuso/763aa04603baf717a141ac043ccb367a to your computer and use it in GitHub Desktop.
Save germanviscuso/763aa04603baf717a141ac043ccb367a to your computer and use it in GitHub Desktop.
Alexa Node SDK Navigation Directive
return handlerInput.responseBuilder
.speak('Starting navigation')
.addDirective({
type: 'Navigation.SetDestination',
destination: {
singleLineDisplayAddress: "Calle de San Mateo 13, 28004",
multipleLineDisplayAddress: "Calle de San Mateo 13, 28004",
name: "Museo del Romanticismo",
coordinate: {
latitudeInDegrees: 40.425860,
longitudeInDegrees: -3.698747
}
},
transportationMode: "WALKING"
})
.getResponse();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment