Skip to content

Commit

Permalink
Fix for sea/lake/pool without names being flagged as point-only places.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Freese committed Sep 1, 2023
1 parent d341d7b commit d3d2186
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions WME-Place-Harmonizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,11 @@
CAT.RIVER_STREAM,
CAT.CANAL,
CAT.JUNCTION_INTERCHANGE,
CAT.SCENIC_LOOKOUT_VIEWPOINT];
CAT.SCENIC_LOOKOUT_VIEWPOINT
];
const CATS_THAT_DONT_NEED_NAMES = [
CAT.SEA_LAKE_POOL
];
const BAD_URL = 'badURL';
const BAD_PHONE = 'badPhone';

Expand Down Expand Up @@ -6226,7 +6230,9 @@ id="WMEPH-zipAltNameAdd"autocomplete="off" style="font-size:0.85em;width:65px;pa
// no field HL
}
}
} else if (venue.isParkingLot() || (args.nameBase?.trim().length)) { // for non-residential places
} else if (venue.isParkingLot()
|| (args.nameBase?.trim().length)
|| containsAny(args.categories, CATS_THAT_DONT_NEED_NAMES)) { // for non-residential places
// Phone formatting
args.outputPhoneFormat = '({0}) {1}-{2}';
if (containsAny(['CA', 'CO'], [args.region, args.state2L]) && (/^\d{3}-\d{3}-\d{4}$/.test(venue.attributes.phone))) {
Expand Down

0 comments on commit d3d2186

Please sign in to comment.