Fixed type key position for LocalParams
Added geodist function