- Get request IP:
- Countries and cities dataset:
- Reader:
- City to coordinates:
- Calculate distance:
var x = cheapRuler(lat1, 'kilometers');
x.distance([lat1, long1], [lat2, long2]);
var options = {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0
};
function success(pos) {
var crd = pos.coords;
console.log('Your current position is:');
console.log(`Latitude : ${crd.latitude}`);
console.log(`Longitude: ${crd.longitude}`);
console.log(`More or less ${crd.accuracy} meters.`);
}
function error(err) {
console.warn(`ERROR(${err.code}): ${err.message}`);
}
navigator.geolocation.getCurrentPosition(success, error, options);
OpenLocationCode.encode(lat, long)
OpenLocationCode.decode(lat, long)
- d3 geo
- Map
- Map Arcs
- It's like Netflix's viszeral, but focused on worldmap instead.
- Nodes are based on coordinates of cities
- Nodes are color-based
- Nodes have animations
- Connection status
- Activity between nodes
- http://duspviz.mit.edu/d3-workshop/transitions-animation/