<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="JS/jquery-2.1.1.js"></script>
<title></title>
<script>
function GetLocation()
{
$.get("http://ipinfo.io", function (response) {
$("#ip").html("IP: " + response.ip);
$("#address").html("Location: " + response.city + ", " + response.region);
$("#details").html(JSON.stringify(response, null, 4));
}, "jsonp");
}
</script>
</head>
<body onload="GetLocation()">
<form id="form1" runat="server">
<div id="ip"></div>
<div id="address"></div>
<hr/>Full response: <pre id="details"></pre>
</form>
</body>
</html>This code show how to find City and region in web application using lat and long.
