diff --git a/server/src/nest/maps/providers/osm-geocoding.ts b/server/src/nest/maps/providers/osm-geocoding.ts index 2adb12015..a9fb1727f 100644 --- a/server/src/nest/maps/providers/osm-geocoding.ts +++ b/server/src/nest/maps/providers/osm-geocoding.ts @@ -57,7 +57,7 @@ export function searchRecord(item: NominatimResult) { }; } -export function isHit(hit: NominatimResult | null): hit is NominatimResult { +function isHit(hit: NominatimResult | null): hit is NominatimResult { return hit !== null; } diff --git a/server/src/nest/maps/trek-places.client.ts b/server/src/nest/maps/trek-places.client.ts index 07beda067..21875aa7c 100644 --- a/server/src/nest/maps/trek-places.client.ts +++ b/server/src/nest/maps/trek-places.client.ts @@ -396,11 +396,6 @@ export async function trekPlacesSearch( return Array.isArray(body.results) ? body.results.map(withLocality) : []; } -/** The index-only rows of a mixed result, for callers that need Overture fields. */ -export function indexHitsOnly(hits: TrekSearchHit[]): TrekPlace[] { - return hits.filter((h): h is TrekPlace => !isOsmHit(h)); -} - /** * The planner's category pills, mapped onto Overture categories. *