Geolocation without Prompt
问题 I know about the HTML5 way to do geolocation, but the caveat is that it has to prompt the user for permission. navigator.geolocation.getCurrentPosition It gets particularly annoying when I would like to do geolocation right at the home page to serve customized content based on location: no one likes to get a prompt every time he or she visits your site. The idea is to use external services to do geolocation based on IP address or something similar to get a less accurate estimate of the user's