This really needs more work (as documented in README), but this is already quite useful. Please check app.js file -- I used library for conversion between xyz and lat/lon, so its license applies. It seems to be compatible with bangle apps license.