Update level-geospatial.js

Make Distance calculation configurable via environment variable