0
Hello, I’m using a google map function to return distance between Zip Codes.
function callback(response, status) {
if (status == google.maps.DistanceMatrixStatus.OK) {
kmDistancia = (response.rows[0].elements[0].distance.text).split(" ",1);
tempoDistancia = response.rows[0].elements[0].duration.text;
}
}
The kmDistance, always returns with a comma (2,7)
, have two questions...
- How to swap the comma for a point, so I can complete the calculation.
- It is possible to display after point 3 digits.
Thank you.