What method(s) can I use for geolocation through a

2019-03-01 14:00发布

问题:

The Spotify Apps API doesn't allow HTML5 geolocation and apparently the documented Location api call doesn't work and is being removed from the documentation. What are some methods that I can use to geolocate a user?

回答1:

Solutions for finding website visitor's geolocation and its suggestion of http://freegeoip.net/ seems like your best option here. You'd just have to add http://freegeoip.net/ to your manifest for access from your app.