Skip to content

Instantly share code, notes, and snippets.

View haldous2's full-sized avatar

Eric Westman haldous2

View GitHub Profile
@haldous2
haldous2 / gist:bc447668e057531d77db
Created December 16, 2014 19:09
MaxMind IP location script and confidence
<script type="text/javascript" src="//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js"></script>
<script type="text/javascript">
var onSuccess = function(location){
//alert(
// JSON.stringify(location, undefined, 4)
//);
vLat = location.location.latitude;