Skip to content

Commit

Permalink
Toronto again (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
radioblahaj authored Oct 31, 2023
1 parent 908356d commit 393bf4e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pages/[region].js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,15 @@ let regions = [
name: 'Singapore',
filter: event => event.city === 'Singapore'
},
{
{
name: 'Toronto',
filter: event => ['Toronto', 'Mississauga', 'Hamilton','Milton', 'Oakville', 'Waterloo', 'Toronto, Canada'].includes(event.city)
filter: event => {
const position = [43.6510, -79.3470]
return (
distance(position[0], position[1], event.latitude, event.longitude)
.miles < 120
)
}
},
{
name: 'the USA',
Expand Down

0 comments on commit 393bf4e

Please sign in to comment.