mirror of https://github.com/pelias/docker.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
398 lines
9.3 KiB
398 lines
9.3 KiB
6 years ago
|
{
|
||
|
"name": "labels",
|
||
|
"priorityThresh": 10,
|
||
|
"notes": [ "Ensure the 'label' property is being correctly built" ],
|
||
|
"tests": [
|
||
|
{
|
||
|
"id": 1,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "San Francisco, San Francisco County, CA"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "San Francisco, CA, USA"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 2,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "30 West 26th Street, Manhattan, NY"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "30 West 26th Street, Manhattan, New York, NY, USA"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 3,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "New South Wales, Australia"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "New South Wales, Australia"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 4,
|
||
|
"status": "pass",
|
||
|
"description": "placeholder matches both California (USA region) and Canada (country)",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "California, CA"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "California, USA"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 5,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "West Bengal, India"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "West Bengal, India"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 6,
|
||
|
"status": "pass",
|
||
|
"issue": [
|
||
|
"https://github.com/pelias/pelias/issues/294",
|
||
|
"https://github.com/pelias/pelias/issues/428"
|
||
|
],
|
||
|
"description": "libpostal/placeholder get this now",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "North West, Singapore"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"properties": [{
|
||
|
"label": "North West, Singapore"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 7,
|
||
|
"status": "fail",
|
||
|
"user": "missinglink",
|
||
|
"description": "hierarchy for the county of Erbil is missing in WOF",
|
||
|
"issue": "https://github.com/pelias/wof-admin-lookup/issues/156",
|
||
|
"in": {
|
||
|
"text": "Erbil, Iraq"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "Erbil, Iraq"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 8,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "Madrid, Spain"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "Madrid, Spain"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 9,
|
||
|
"status": "fail",
|
||
|
"issue": "https://github.com/pelias/pelias/issues/292",
|
||
|
"description": [
|
||
|
"Dungannon is showing up as a region, when it should be a locality.",
|
||
|
"The label is also generated incorrectly given the information available to it."
|
||
|
],
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "1 Main St, Dungannon, United Kingdom"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "1 Main St, Dungannon, United Kingdom"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 10,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "Hackney City Farm, Haggerston, Greater London"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "Hackney City Farm, London, England, United Kingdom"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 11,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "1 Grolmanstraße, Berlin, Germany"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "Grolmanstraße 1, Berlin, Germany"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 12,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "New Zealand"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "New Zealand"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 13,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"in": {
|
||
|
"text": "McDonald's, Central Singapore, Singapore"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "McDonald's, Singapore, Singapore"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 14,
|
||
|
"status": "pass",
|
||
|
"user": "julian",
|
||
|
"in": {
|
||
|
"text": "France"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "France"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 15,
|
||
|
"status": "fail",
|
||
|
"description": "geonnames localadmin records should not have borough or locality component in label",
|
||
|
"issue": [ "https://github.com/pelias/wof-admin-lookup/issues/49",
|
||
|
"https://github.com/pelias/wof-admin-lookup/issues/220" ],
|
||
|
"user": "julian",
|
||
|
"in": {
|
||
|
"text": "city of new york",
|
||
|
"sources": "geonames",
|
||
|
"layers": "localadmin"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"source": "geonames",
|
||
|
"label": "City of New York, NY, USA"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 16,
|
||
|
"status": "fail",
|
||
|
"description": "geonames country records should not have duplicate country in the label",
|
||
|
"issue": "https://github.com/pelias/wof-admin-lookup/issues/49",
|
||
|
"user": "julian",
|
||
|
"in": {
|
||
|
"text": "china",
|
||
|
"sources": "geonames",
|
||
|
"layers": "country"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [{
|
||
|
"label": "People's Republic of China"
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 17,
|
||
|
"status": "pass",
|
||
|
"description": "locality in US dependency should have dependency as least granular field",
|
||
|
"issue": "https://github.com/pelias/api/issues/628",
|
||
|
"user": "trescube",
|
||
|
"in": {
|
||
|
"text": "bayamon, pr",
|
||
|
"sources": "wof",
|
||
|
"layers": "locality"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Bayamón, Puerto Rico"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 18,
|
||
|
"status": "pass",
|
||
|
"description": "locality in US dependency should have dependency as least granular field",
|
||
|
"issue": "https://github.com/pelias/api/issues/628",
|
||
|
"user": "trescube",
|
||
|
"in": {
|
||
|
"text": "aasu, as",
|
||
|
"sources": "wof",
|
||
|
"layers": "locality"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Aasu, American Samoa"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 19,
|
||
|
"status": "fail",
|
||
|
"description": "locality in non-US dependency should still include country",
|
||
|
"issue": [
|
||
|
"https://github.com/pelias/labels/issues/5",
|
||
|
"https://github.com/pelias/placeholder/issues/54"
|
||
|
],
|
||
|
"user": "trescube",
|
||
|
"in": {
|
||
|
"text": "George Hill, Anguilla",
|
||
|
"sources": "wof",
|
||
|
"layers": "locality",
|
||
|
"boundary.country": "GBR"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "George Hill, Anguilla"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 20,
|
||
|
"status": "fail",
|
||
|
"description": "locality in non-US dependency should still include country",
|
||
|
"issue": [
|
||
|
"https://github.com/pelias/labels/issues/5",
|
||
|
"https://github.com/pelias/placeholder/issues/54"
|
||
|
],
|
||
|
"user": "trescube",
|
||
|
"in": {
|
||
|
"text": "Tórshavn faroe islands",
|
||
|
"sources": "wof",
|
||
|
"layers": "locality",
|
||
|
"lang": "da"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Tórshavn, Færøerne"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 21,
|
||
|
"status": "pass",
|
||
|
"description": "locality in non-US dependency should still include country",
|
||
|
"issue": "https://github.com/pelias/labels/issues/5",
|
||
|
"user": "trescube",
|
||
|
"in": {
|
||
|
"text": "Hog Bay Bermuda",
|
||
|
"sources": "wof",
|
||
|
"layers": "locality"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Hog Bay, Bermuda"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 22,
|
||
|
"status": "pass",
|
||
|
"description": "locality in non-US dependency should still include country",
|
||
|
"issue": "https://github.com/pelias/labels/issues/5",
|
||
|
"user": "trescube",
|
||
|
"in": {
|
||
|
"text": "Adamstown, Pitcairn Islands",
|
||
|
"sources": "wof",
|
||
|
"layers": "locality"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Adamstown, Pitcairn Islands"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 23,
|
||
|
"status": "pass",
|
||
|
"description": "non-US dependency should still include the parent country",
|
||
|
"issue": "https://github.com/pelias/labels/issues/5",
|
||
|
"user": "trescube",
|
||
|
"in": {
|
||
|
"text": "Bermuda",
|
||
|
"sources": "wof",
|
||
|
"layers": "dependency"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Bermuda"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 24,
|
||
|
"status": "pass",
|
||
|
"description": "Washington, D.C. venues should have District of Columbia abbreviation",
|
||
|
"issue": "https://github.com/pelias/labels/issues/14",
|
||
|
"user": "julian",
|
||
|
"in": {
|
||
|
"text": "national air and space museum, washington dc"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "National Air and Space Museum, Washington, DC, USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|