Distance func
Merge branch 'master' of https://github.com/gabrieloc/renewable-energy