Skip to content

Commit

Permalink
refactor: make target search more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed Oct 29, 2024
1 parent 0672f36 commit 7667307
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/routes/geojsonSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ router.get("/", async (req, res) => {
}))
.filter(
({ properties: { propaddr } }) =>
!!place && +place.split(" ")[0] === +propaddr.split(" ")[0]
!!place &&
+place.split(" ")[0] === +propaddr.split(" ")[0] &&
place.split(" ")[1].toUpperCase() ===
propaddr.split(" ")[1].toUpperCase() // TODO: Might be too strict
)
let nearbyAddresses = []

Expand Down

0 comments on commit 7667307

Please sign in to comment.