still previous bug: changed from 'for in' loop to obj[Object.keys(obj)[0]] for lat 1 for lon.