Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patches for bugs introduced in 2.4 and 2.5 releases #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classifier/scheme/venue.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ module.exports = [
scheme: [
{
is: ['PlaceClassification', 'VenueClassification'],
not: ['StreetClassification']
not: ['StreetClassification', 'StreetSuffixClassification']
},
{
is: ['AlphaClassification'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
allè|alle
allèen|alleen
veg|v.
vegen|v.|vn.
vei|v.
veien|v.|vn.
veien|v.|vn.
5 changes: 5 additions & 0 deletions test/address.esp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const testcase = (test, common) => {
{ street: 'Carrer d\'Aragó' }, { housenumber: '155' },
{ postcode: '08011' }, { locality: 'Barcelona' }
])

assert('Calle Principal 20 Barcelona', [
{ street: 'Calle Principal' }, { housenumber: '20' },
{ locality: 'Barcelona' }
])
}

module.exports.all = (tape, common) => {
Expand Down
5 changes: 5 additions & 0 deletions test/address.usa.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ const testcase = (test, common) => {
// https://github.com/pelias/pelias/issues/912
assert('Jefferson Parish', [{ locality: 'Jefferson' }])
assert('Mills County', [{ locality: 'Mills' }])

// Partial admin match that triggered a regression in 2.5.0
assert('Main St Seattl', [
{ street: 'Main St' }
])
}

module.exports.all = (tape, common) => {
Expand Down