Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

405 B
Raw Blame
import type { Location } from "@/types/proto/api/memo_service_pb";

export const getLocationDisplayText = (location: Location): string => {
  return location.placeholder.trim() || getLocationCoordinatesText(location);
};

export const getLocationCoordinatesText = (location: Location, digits = 4): string => {
  return `${location.latitude.toFixed(digits)}°, ${location.longitude.toFixed(digits)}°`;
};