mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
feat(server): significantly improve Australian reverse geocoding accuracy (#11370)
chore(geocoding): ingest australia PPLXs
This commit is contained in:
parent
85ab916ecf
commit
3225e33fc1
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue