Skip to content

Commit

Permalink
fix: update geocoder package to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed May 25, 2023
1 parent f60ea57 commit a972822
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@bugsnag/js": "^7.11.0",
"@bugsnag/plugin-aws-lambda": "^7.11.0",
"@conveyal/lonlat": "^1.4.1",
"@opentripplanner/geocoder": "^1.4.0",
"@opentripplanner/geocoder": "^1.4.1",
"geolib": "^3.3.1",
"node-fetch": "^2.6.1",
"redis": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ const filterOutDuplicateStops = (
if (
customFeatures.find(
(otherFeature: Feature) =>
feature?.properties?.name
(feature?.properties?.name || '')
.toLowerCase()
.includes(otherFeature?.properties?.name.toLowerCase()) ||
.includes((otherFeature?.properties?.name || '').toLowerCase()) ||
// Any feature this far away is likely not worth being considered
feature?.properties?.distance > 7500
)
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1852,10 +1852,10 @@
dependencies:
"@octokit/openapi-types" "^9.4.0"

"@opentripplanner/geocoder@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@opentripplanner/geocoder/-/geocoder-1.4.0.tgz#728afec6585cf3748a1931493b3a3566421f445d"
integrity sha512-FECrLmzYvQmgQDE1Ad19pPdo/HRvz7b0POyD9lXNg/uKTyVXhXxHdYd6sWot6ZiGdiqZTUamNKG3RaWaJvdqoA==
"@opentripplanner/geocoder@^1.4.1":
version "1.4.1"
resolved "https://registry.yarnpkg.com/@opentripplanner/geocoder/-/geocoder-1.4.1.tgz#ee1aa00ce6938ab7a7b9ed4e0fa894a226352ee1"
integrity sha512-P2tvUkJRYcuT71UMC5MalJuHwVCT+JXw/C/rAVTrwhvFXn+4mceHlBBNLXGzQyzVceBE5lER0xC1PB7xBQeL0w==
dependencies:
"@conveyal/geocoder-arcgis-geojson" "^0.0.3"
"@conveyal/lonlat" "^1.4.1"
Expand Down

0 comments on commit a972822

Please sign in to comment.