Get location from Alexa Skills Kit (ASK)

前端 未结 5 1062
广开言路
广开言路 2020-12-15 05:06

I\'m looking for a way to get the user\'s location, ideally longitude/latitude but address would work too, from the Alexa Skill Kit request to my custom skill. Also, I don\'

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 06:06

    Amazon has now (2017-04-05) added this capability. See their blog post about their new Device Address API.

    Using this new API you can get the address (either postal code or full address) of the device, as specified in the customer’s device settings.

    From that you could use a geocoding API (such as is part of the Google Maps API) to translate the address into location coordinates.

提交回复
热议问题