const formatDistance = distance => {
    if (distance < 1000) {
      return distance + " m"
    }
    else {