Every modern web app wants to be "smart" about location. Show prices in the right currency. Default to the user's language. Calculate shipping. Block suspicious traffic. But there's one problem: the only built-in browser API for location requires a permission prompt that users dismiss more often than they accept. In this guide, I'll walk through how to detect a visitor's approximate location instantly and silently — without ever showing a permission dialog — using IP geolocation APIs. ...