2

I know that Amazon does not directly provide developers with a way to get the location of the user's echo, but I was wondering if there was a way around this. I'm writing the skills in node, so I have run into node packages like geoip, but when I upload the skill to aws lambda, I get an error that says something along the lines of the ELF headers are not correct. Any assistance would be much appreciated!

PaulG
  • 13,871
  • 9
  • 56
  • 78
Joe M-T
  • 21
  • 3
  • ELF headers seems to be a problem with the binary that you have uploaded to the Lambda function where Alexa is running as backend. Which geoip package are you using? – loretoparisi Jul 11 '16 at 20:12
  • I didn't use geoip, but looking at what it is I got the idea that you have to pass ip address to geoip for it to detect location. I don't know a way to pass ip in the intent to your skill otherwise than ask user to say it, which seems ridiculous. So I don't think geoip can be of any help here. – rightaway717 Jul 19 '16 at 21:18
  • 1
    Possible duplicate of [Get location/address of Amazon Echo device](http://stackoverflow.com/questions/38001615/get-location-address-of-amazon-echo-device) – Jeremy Aug 20 '16 at 02:54
  • Possible duplicate of [Get location from Alexa Skills Kit (ASK)](http://stackoverflow.com/questions/36986139/get-location-from-alexa-skills-kit-ask) – Anthony Neace Apr 05 '17 at 14:26

1 Answers1

1

You can now get the address of the device, as specified in the customer’s device settings.

This is new as of 2017-04-05. See Amazon's blog post about their new Device Address API.

I'm not sure exactly what you are after, but this new API can give two different levels of address (Country and postal code only, or full address). To get their location you would need to use another API to translate the address into location coordinates. This is called a Geocoding API and Google Maps API includes this capability (for example).

Tom
  • 17,103
  • 8
  • 67
  • 75