all route/geocoder requests will only send 6 digits after the decimal

point.
This commit is contained in:
DennisSchiefer
2012-04-26 13:15:41 +01:00
parent a8a4f56292
commit 635b13b61c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ _buildCall: function() {
if(OSRM.G.markers.checksum)
source += '&checksum=' + OSRM.G.markers.checksum;
for(var i=0,size=OSRM.G.markers.route.length; i<size; i++) {
source += '&loc=' + OSRM.G.markers.route[i].getLat() + ',' + OSRM.G.markers.route[i].getLng();
source += '&loc=' + OSRM.G.markers.route[i].getLat().toFixed(6) + ',' + OSRM.G.markers.route[i].getLng().toFixed(6);
if( OSRM.G.markers.route[i].hint)
source += '&hint=' + OSRM.G.markers.route[i].hint;
}