I have this code in Javascript:
var distance = turf.lineDistance(route.features[0]).toLocaleString()
In Chrome I get this result: 35.177
And in Firefox I get this result: 35,177
Why?
I need to execute this code:
document.getElementById("txtGPSDistance").value = Math.round(distance);
In Chrome it works, but in Firefox I get a NaN
.