Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Comment thread
Joxit marked this conversation as resolved.
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