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.
518 lines
11 KiB
518 lines
11 KiB
{ |
|
"name": "admin lookup", |
|
"priorityThresh": 5, |
|
"tests": [ |
|
{ |
|
"id": "1", |
|
"status": "pass", |
|
"user": "sevko", |
|
"endpoint": "reverse", |
|
"in": { |
|
"point.lat": 46.65132155014943, |
|
"point.lon": 14.61353302001953 |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"county": "Völkermarkt" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"county": "Vã¶lkermarkt" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "2", |
|
"status": "pass", |
|
"issue": "https://github.com/pelias/api/issues/150", |
|
"type": "dev", |
|
"description": "checking for County to be part of the admin2 value", |
|
"in": { |
|
"text": "bronx", |
|
"layers": "county" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"county": "Bronx County" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "3", |
|
"status": "pass", |
|
"type": "dev", |
|
"in": { |
|
"text": "Lake, MT", |
|
"layers": "county" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"county": "Lake County" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "4", |
|
"status": "pass", |
|
"endpoint": "reverse", |
|
"description": "Reverse does not fall back to point-in-polygon for admin areas", |
|
"issue": [ |
|
"https://github.com/pelias/pelias/issues/360", |
|
"https://github.com/pelias/pelias/wiki/Reverse-Geocoding,-Part-Deux" |
|
], |
|
"in": { |
|
"point.lat": -40.806533324215565, |
|
"point.lon": 144.8101043701172 |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"county": "Circular Head" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"county": "Circular Head (m)" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "5", |
|
"status": "fail", |
|
"issue": "https://github.com/pelias/pelias/issues/297", |
|
"description": "not sure it's an actual failure. needs discussion", |
|
"endpoint": "reverse", |
|
"type": "dev", |
|
"in": { |
|
"point.lat": 51.515049, |
|
"point.lon": -0.093229 |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"region": "London" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"region": "City and County of the City of London" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "6", |
|
"status": "pass", |
|
"type": "dev", |
|
"in": { |
|
"layers": "neighbourhood", |
|
"text": "hoboken" |
|
}, |
|
"expected": { |
|
"priorityThresh": 2, |
|
"properties": [ |
|
{ |
|
"gid": "whosonfirst:neighbourhood:85801273", |
|
"name": "Hoboken" |
|
}, |
|
{ |
|
"gid": "whosonfirst:neighbourhood:420509993", |
|
"name": "Hoboken" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "7", |
|
"status": "pass", |
|
"description": "returned by placeholder so it works now", |
|
"issue": "https://github.com/pelias/whosonfirst/issues/213", |
|
"type": "dev", |
|
"in": { |
|
"text": "mission, san francisco", |
|
"layers": "coarse" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "Mission District", |
|
"layer": "macrohood", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "California", |
|
"region_a": "CA", |
|
"county": "San Francisco County", |
|
"label": "Mission District, San Francisco, CA, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "8", |
|
"status": "pass", |
|
"type": "dev", |
|
"in": { |
|
"text": "crown heights", |
|
"layers": "coarse" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"label": "Crown Heights, Brooklyn, New York, NY, USA", |
|
"name": "Crown Heights", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "New York", |
|
"region_a": "NY", |
|
"county": "Kings County", |
|
"borough": "Brooklyn" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "9", |
|
"status": "pass", |
|
"in": { |
|
"text": "palo alto", |
|
"layers": "coarse" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"label": "Palo Alto, CA, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "9-1", |
|
"status": "pass", |
|
"in": { |
|
"text": "palo alto, ca", |
|
"layers": "coarse" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"label": "Palo Alto, CA, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "10", |
|
"status": "pass", |
|
"endpoint": "reverse", |
|
"in": { |
|
"point.lat": 51.47945855891035, |
|
"point.lon": -3.2018280029296875 |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"region": "Cardiff" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"region": "Caerdydd#Cardiff" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "15", |
|
"status": "pass", |
|
"in": { |
|
"text": "cardiff, gbr", |
|
"layers": "coarse" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"region": "Cardiff" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"region": "Caerdydd#Cardiff" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "11", |
|
"status": "pass", |
|
"endpoint": "reverse", |
|
"in": { |
|
"point.lat": 51.52754263322114, |
|
"point.lon": -3.115997314453125 |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"region": "Cardiff" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"region": "Caerdydd#Cardiff" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "12", |
|
"status": "pass", |
|
"endpoint": "reverse", |
|
"in": { |
|
"point.lat": 53.08654986822245, |
|
"point.lon": -3.393487930297851 |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"region": "Denbighshire" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"county": "Sir Ddinbych#Denbighshire" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "13", |
|
"status": "pass", |
|
"description": [ |
|
"all words in query text are potential address stop-words" |
|
], |
|
"issue": "https://github.com/pelias/api/issues/357", |
|
"type": "dev", |
|
"in": { |
|
"text": "Vista Center", |
|
"layers": "neighbourhood" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"country": "United States", |
|
"country_a": "USA", |
|
"region": "New Jersey", |
|
"region_a": "NJ", |
|
"county": "Ocean County" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"county": "Ocean" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "14", |
|
"status": "pass", |
|
"type": "dev", |
|
"in": { |
|
"text": "Yadkin Trail", |
|
"layers": "neighbourhood" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"country": "United States", |
|
"country_a": "USA", |
|
"region": "North Carolina", |
|
"region_a": "NC", |
|
"county": "Moore County" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"county": "Moore" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "15", |
|
"status": "pass", |
|
"issue": "https://github.com/pelias/pelias/issues/294", |
|
"description": "fixed with pelias/api#850", |
|
"type": "dev", |
|
"in": { |
|
"text": "Hillside, Santa Clara", |
|
"layers": "neighbourhood" |
|
}, |
|
"expected": { |
|
"priorityThresh": 1, |
|
"properties": [ |
|
{ |
|
"country": "United States", |
|
"country_a": "USA", |
|
"region": "California", |
|
"region_a": "CA", |
|
"county": "Santa Clara County" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"county": "Moore" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "16", |
|
"status": "pass", |
|
"type": "dev", |
|
"in": { |
|
"text": "Cardiff, GBR", |
|
"layers": "coarse" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"country_a": "GBR", |
|
"country": "United Kingdom", |
|
"region": "Cardiff" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"region": "Caerdydd#cardiff" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "17", |
|
"status": "pass", |
|
"type": "dev", |
|
"in": { |
|
"text": "ringland", |
|
"layers": "neighbourhood" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"country_a": "GBR", |
|
"country": "United Kingdom", |
|
"region": "Newport" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"region": "Casnewydd#Newport", |
|
"county": "Newport" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "18", |
|
"status": "pass", |
|
"type": "dev", |
|
"in": { |
|
"text": "california", |
|
"layers": "region" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"layer": "region", |
|
"name": "California", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "California", |
|
"region_a": "CA", |
|
"label": "California, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "19", |
|
"status": "pass", |
|
"issue": "https://github.com/pelias/pelias/issues/144", |
|
"description": [ |
|
"Problem in the QS data, so should be fixed once we move to WOF" |
|
], |
|
"in": { |
|
"text": "5 West 4th Avenue Canada" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"layer": "address", |
|
"housenumber": "5", |
|
"street": "W 4th Ave", |
|
"country_a": "CAN", |
|
"country": "Canada", |
|
"locality": "Vancouver" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": "20", |
|
"status": "pass", |
|
"in": { |
|
"text": "1 Hämeenkatu, Tampere, Finland" |
|
}, |
|
"description": [ |
|
"waiting on libpostal to fix diacritical issues" |
|
], |
|
"issue": "https://github.com/pelias/pelias/issues/425", |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"housenumber": "1", |
|
"street": "Hämeenkatu", |
|
"name": "Hämeenkatu 1", |
|
"locality": "Tampere", |
|
"region": "Pirkanmaa", |
|
"macroregion": "West Finland", |
|
"country": "Finland", |
|
"country_a": "FIN" |
|
} |
|
] |
|
} |
|
} |
|
] |
|
}
|
|
|