Added `distance` field to JSON response