1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

feat(server): significantly improve Australian reverse geocoding accuracy (#11370)

chore(geocoding): ingest australia PPLXs
This commit is contained in:
Jared L 2024-07-30 00:59:53 +10:00 committed by GitHub
parent 85ab916ecf
commit 3225e33fc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,7 +297,16 @@ export class MapRepository implements IMapRepository {
admin2Name: admin2Map.get(`${lineSplit[8]}.${lineSplit[10]}.${lineSplit[11]}`),
}),
resourcePaths.geodata.cities500,
{ entityFilter: (lineSplit) => lineSplit[7] != 'PPLX' },
{
entityFilter: (lineSplit) => {
if (lineSplit[7] === 'PPLX') {
// Exclude populated subsections of cities that are not in Australia.
// Australia has a lot of PPLX areas, so we include them.
return lineSplit[8] === 'AU';
}
return true;
},
},
);
}