-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nld): Supports nld streets (#32)
- Loading branch information
1 parent
3272908
commit 7f05b8f
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
resources/pelias/dictionaries/libpostal/nl/concatenated_suffixes_separable.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dijk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const AddressParser = require('../parser/AddressParser') | ||
|
||
const testcase = (test, common) => { | ||
let parser = new AddressParser() | ||
let assert = common.assert.bind(null, test, parser) | ||
|
||
assert('Julianastraat, Heel', [ | ||
{ street: 'Julianastraat' }, { locality: 'Heel' } | ||
], true) | ||
|
||
assert('Lindenlaan, Sint Odilienberg', [ | ||
{ street: 'Lindenlaan' }, { locality: 'Sint Odilienberg' } | ||
], true) | ||
|
||
assert('Bosserdijk, Hoogland', [ | ||
{ street: 'Bosserdijk' }, { locality: 'Hoogland' } | ||
], true) | ||
} | ||
|
||
module.exports.all = (tape, common) => { | ||
function test (name, testFunction) { | ||
return tape(`address NLD: ${name}`, testFunction) | ||
} | ||
|
||
testcase(test, common) | ||
} |