Get a user's State with Geolocation
What's the most efficient way to get a United States user's State? Is HTML5 Geolocation an option without needing to involve google maps? Marcel Here's a couple of examples in JavaScript and JSON (with the help of jQuery ) using both the IP lookup method (with the help of IPinfoDB ) and the Geolocation API method (with the help of Google Maps API and YQL ). In both examples I'm retrieving the region and country but there are several values you can choose from. Be aware these examples don't do any error handling and here they are edited for brevity, otherwise see the full demo . IP Lookup in