Skip to content

Commit

Permalink
Match koaza
Browse files Browse the repository at this point in the history
  • Loading branch information
keichan34 committed Oct 4, 2024
1 parent 2eecf0e commit af293ef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/create-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ jobs:
run: |
aws s3 sync \
--cache-control="max-age=86400, public" \
--exclude="*" \
--include="*.txt" \
--content-type="text/plain; charset=utf-8" \
./out/ s3://japanese-addresses-v2.geoloniamaps.com/
aws s3 sync \
--cache-control="max-age=86400, public" \
--exclude="*" \
--include="*.json" \
--content-type="application/json; charset=utf-8" \
./out/ s3://japanese-addresses-v2.geoloniamaps.com/
- name: Purge Cloudflare cache
Expand Down
5 changes: 4 additions & 1 deletion src/lib/abr_mlit_merge_tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export function createMergedApiData(abrData: SingleMachiAza[], mlitData: NlftpMl
const out = abrData;

for (const row of mlitData) {
if (abrData.find(a => a.oaza_cho === row.oaza_cho && a.chome === row.chome)) {
if (abrData.find(a => (
(a.oaza_cho === row.oaza_cho && a.chome === row.chome) ||
a.koaza === row.oaza_cho
))) {
continue;
}
out.push({
Expand Down

0 comments on commit af293ef

Please sign in to comment.