Commit 9acce73cf7b85e3e1733e21d2980f65466431369
- Diff rendering mode:
- inline
- side by side
prototypes.js
(6 / 4)
|   | |||
| 1894 | 1894 | url += (i == 0 ? ",[" : ",") + this.via[i].lat + "," + this.via[i].lon; | |
| 1895 | 1895 | if(this.via.length > 0) | |
| 1896 | 1896 | url += "]"; | |
| 1897 | url += "," + this.to.lat + "," + this.to.lon + | ||
| 1898 | "/" + this.medium + | ||
| 1899 | "/" + this.routingType + | ||
| 1900 | ".gpx?units=km"; | ||
| 1897 | url += "," + this.to.lat + "," + this.to.lon + "/" + this.medium; | ||
| 1898 | if(this.medium == "foot" || this.medium == "bicycle") | ||
| 1899 | url += "/fastest"; | ||
| 1900 | else | ||
| 1901 | url += "/" + this.routingType; | ||
| 1902 | url += ".gpx?units=km"; | ||
| 1901 | 1903 | return url; | |
| 1902 | 1904 | }, | |
| 1903 | 1905 |

