Search results
To measure the distance between two points: On your computer, open Google Maps. Right-click on your starting point. Select Measure distance. To create a path to measure, click...
- iPhone & iPad
Touch and hold anywhere on the map that isn’t a place’s name...
- iPhone & iPad
Find local businesses, view maps and get driving directions in Google Maps.
1 paź 2009 · If you want to calculate it yourself, then you can use the Haversine formula: var rad = function(x) {. return x * Math.PI / 180; }; var getDistance = function(p1, p2) {. var R = 6378137; // Earth’s mean radius in meter. var dLat = rad(p2.lat() - p1.lat()); var dLong = rad(p2.lng() - p1.lng());
You can calculate the length of a path, running route, fence, border, or the perimeter of any object that appears on a google map. The distance calculator will then display a measurement of the length in feet, meters, miles and kilometers.
Pin to Pin distance Search [indicates mandatory fields]PIN Code: From: To:
You can calculate the length of a path, running route, fence, border, or the perimeter of any object that appears on a google map. The distance calculator will then display a measurerment of the length in feet, meters, miles and kilometers.
23 sty 2011 · kmdistance = (miledistance * 1.609344).toFixed(1); If you have the lat, lngs as floats you can just create some GLatLng's to use this method.. eg. var miledistance, kmdistance; miledistance = new GLatLng(lat1,lng1).distanceFrom(new GLatLng(lat2, lng2), 3959).toFixed(1);