Skip to content

Commit

Permalink
fix(isodistance): isodostance de plus de 50 km (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz authored May 7, 2024
1 parent b61e996 commit 96ff380
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ function ProcessIsoCurveParam (options) {
if (this.options.method === "distance") {
this.costType = "distance";
this.costValue = this.options.distance;
if (this.distanceUnit === "m" && this.costValue >= 50000) {
this.distanceUnit = "km";
this.costValue /= 1000;
}
} else {
this.costType = "time";
this.costValue = this.options.time;
Expand Down

0 comments on commit 96ff380

Please sign in to comment.