Guest User

Untitled

a guest
Oct 23rd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. newElevations = [];
  2. elevations.forEach(function(e) {
  3. newElevations.push([
  4. e.elevation,
  5. e.location.lat(),
  6. e.location.lng()
  7. ])
  8. })
  9.  
  10. csv = 'data:text/csv;charset=utf-8,'
  11. newElevations.forEach(function(a, i){
  12. d = a.join(',')
  13. csv += i < newElevations.length ? d+ '\n' : d
  14. });
  15. window.open(encodeURI(csv))
Add Comment
Please, Sign In to add comment