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:
parent
85ab916ecf
commit
3225e33fc1
@ -297,7 +297,16 @@ export class MapRepository implements IMapRepository {
|
|||||||
admin2Name: admin2Map.get(`${lineSplit[8]}.${lineSplit[10]}.${lineSplit[11]}`),
|
admin2Name: admin2Map.get(`${lineSplit[8]}.${lineSplit[10]}.${lineSplit[11]}`),
|
||||||
}),
|
}),
|
||||||
resourcePaths.geodata.cities500,
|
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 New Issue
Block a user