mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 06:37:33 +00:00
chore(dawarich): keep the stay naming helpers module-private
This commit is contained in:
@@ -48,7 +48,7 @@ export const TRACKS_PAGE_SIZE = 200;
|
||||
/** Points cap at 10000 upstream. A day of tracking is a few thousand. */
|
||||
export const POINTS_PAGE_SIZE = 5000;
|
||||
/** Points read to name one stay. Enough to get past a few not yet geocoded. */
|
||||
export const GEOCODED_POINTS_PAGE_SIZE = 50;
|
||||
const GEOCODED_POINTS_PAGE_SIZE = 50;
|
||||
|
||||
/**
|
||||
* How many pages one call will walk before giving up and saying so.
|
||||
|
||||
@@ -159,7 +159,7 @@ function realName(value: unknown): string | null {
|
||||
* The best name the visit itself carries: its own, its place's, then the
|
||||
* place's address. Null when there is none of them.
|
||||
*/
|
||||
export function visitSourceName(visit: DawarichVisitRaw): string | null {
|
||||
function visitSourceName(visit: DawarichVisitRaw): string | null {
|
||||
return realName(visit.name) ?? realName(visit.place?.name) ?? realName(visit.place?.address);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user