Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- newElevations = [];
- elevations.forEach(function(e) {
- newElevations.push([
- e.elevation,
- e.location.lat(),
- e.location.lng()
- ])
- })
- csv = 'data:text/csv;charset=utf-8,'
- newElevations.forEach(function(a, i){
- d = a.join(',')
- csv += i < newElevations.length ? d+ '\n' : d
- });
- window.open(encodeURI(csv))
Add Comment
Please, Sign In to add comment