Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get location from Alexa Skills Kit (ASK)

Tags:

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't want to have to have the user link to an account on my app's side.

Is this possible? If so, how?

like image 927
Chris Mielke Avatar asked May 02 '16 15:05

Chris Mielke


People also ask

Can Alexa Tell your location?

Alexa uses your location to make accurate weather forecasts, amongst other things. So, if you've moved recently, it's especially important to make sure your address is up to date. To change your location, you'll have to open the Alexa app on your iPhone, iPad, or Android.

Can you use Alexa as a GPS?

Open the Amazon Alexa app on your smartphone. In the menu, tap Skills & Games. Tap the search icon in the upper right hand corner and in the search field, type in Tractive GPS. Select the Tractive GPS skill and then Enable to use.

How can I track my stolen Alexa?

Go to Manage Your Content and Devices page and select the Devices tab. Select the lost or stolen device. Click Edit next to the device name, and copy its serial number to provide to Customer Service. Click Deregister and follow the instructions.


2 Answers

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.

like image 162
Tom Avatar answered Oct 04 '22 04:10

Tom


As per this thread on the Amazon Developer forums, there is not currently (as of May 2016) a way to get user location via the publicly available APIs. The only skills able to do so, such as Uber or Domino's, are utilizing APIs that are not available through the Alexa Skills Kit. However, there's hope that it may be added, as "Jamie@Amazon" left this reply in that discussion:

Hey there,

Thanks for posting.

This has now been added to the roadmap. Thanks for the feedback.

Jamie

However, at the time of writing, no further update has been provided regarding the implementation of such a feature.

like image 28
Sam Hanley Avatar answered Oct 04 '22 03:10

Sam Hanley