fixed km calculations for jsons
making this view a bit more useful