export const formatDistance = (distance: number): string => {
  return distance < 1 ? Math.round(distance * 1000) + "m" : distance + "km";
};
