{ "name": "General Placeholder requests", "priorityThresh": 1, "tests": [ { "id": 1, "status": "pass", "endpoint": "search", "description": "Port Saint Lucie should be found with full word", "in": { "text": "port saint lucie, fl" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:85933297", "confidence": 1, "name": "Port St. Lucie" } ] } }, { "id": 2, "status": "pass", "endpoint": "search", "description": "Port Saint Lucie should be found with abbreviation", "in": { "text": "port st. lucie, fl" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:85933297", "confidence": 1, "name": "Port St. Lucie" } ] } }, { "id": 3, "status": "pass", "endpoint": "search", "description": "Sault Sainte Marie should be found with full word", "in": { "text": "Sault Sainte Marie, Ontario" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101735641", "confidence": 1, "name": "Sault Ste. Marie" } ] } }, { "id": 4, "status": "pass", "endpoint": "search", "description": "Sault Sainte Marie should be found with abbreviation", "in": { "text": "Sault Ste Marie, Ontario" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101735641", "confidence": 1, "name": "Sault Ste. Marie" } ] } }, { "id": 5, "status": "fail", "endpoint": "search", "description": "Fort Hood should be found with full word, waiting for work on https://github.com/pelias/placeholder/issues/36", "in": { "text": "Fort Hood, TX" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101726923", "confidence": 0.6, "name": "Fort Hood" } ] } }, { "id": 6, "status": "fail", "endpoint": "search", "description": "Fort Hood should be found with abbreviation, waiting for work on https://github.com/pelias/placeholder/issues/36", "in": { "text": "Ft Hood, TX" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101726923", "confidence": 0.6, "name": "Fort Hood" } ] } }, { "id": 7, "status": "pass", "endpoint": "search", "description": "Mount Pleasant should be found with full word", "in": { "text": "Mount Pleasant, SC" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101720773", "confidence":1, "name": "Mount Pleasant" } ] } }, { "id": 8, "status": "pass", "endpoint": "search", "description": "Mount Pleasant should be found with abbreviation", "in": { "text": "Mt Pleasant, SC" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101720773", "confidence": 1, "name": "Mount Pleasant" } ] } }, { "id": 9, "status": "pass", "endpoint": "search", "description": "Carmel-by-the-Sea should be found with hyphens", "in": { "text": "Carmel-by-the-Sea, CA" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:85922639", "confidence": 1, "name": "Carmel-by-the-Sea" } ] } }, { "id": 10, "status": "pass", "endpoint": "search", "description": "Carmel-by-the-Sea should be found without hyphens", "in": { "text": "Carmel by the Sea, CA" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:85922639", "confidence": 1, "name": "Carmel-by-the-Sea" } ] } }, { "id": 11, "status": "pass", "endpoint": "search", "description": "GB counties with 'County' prefixed should be found", "in": { "text": "County Durham, GB" }, "expected": { "properties": [ { "gid": "whosonfirst:region:85684523", "confidence": 0.3, "name": "County Durham" } ] } }, { "id": 12, "status": "pass", "endpoint": "search", "description": "GB counties without 'County' prefixed should be found", "in": { "text": "Durham, GB" }, "expected": { "properties": [ { "gid": "whosonfirst:region:85684523", "confidence": 0.3, "name": "County Durham" } ] } }, { "id": 13, "status": "pass", "endpoint": "search", "description": "'city of' should be normalized away", "in": { "text": "City of Socorro, NM" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:85976677", "confidence": 1, "name": "Socorro" } ] } }, { "id": 14, "status": "pass", "endpoint": "search", "description": "abbreviating periods should be removed", "in": { "text": "L.A. C.A." }, "expected": { "properties": [ { "gid": "whosonfirst:locality:85923517", "confidence": 1, "name": "Los Angeles" } ] } }, { "id": 15, "status": "pass", "endpoint": "search", "description": "&s should be treated the same as 'and'", "in": { "text": "Trinidad & Tobago" }, "expected": { "properties": [ { "gid": "whosonfirst:country:85632271", "confidence": 1, "name": "Trinidad and Tobago" } ] } }, { "id": 16, "status": "pass", "endpoint": "search", "description": "ß should be treated as 'ss'", "in": { "text": "Strass im Strassertale" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101783387", "confidence": 1, "name": "Straß im Straßertale" } ] } }, { "id": 17, "status": "pass", "endpoint": "search", "description": "diacriticals should be flattened", "in": { "text": "Schöneberg, DE" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101907543", "confidence": 1, "name": "Schöneberg" } ] } }, { "id": 18, "status": "pass", "endpoint": "search", "description": "diacriticals should be flattened", "in": { "text": "Schöneberg, DE" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101907543", "confidence": 1, "name": "Schöneberg" } ] } }, { "id": 19, "status": "pass", "endpoint": "search", "description": "should be found with diacriticals", "in": { "text": "Łódź" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101913783", "confidence": 1, "name": "Łódź" } ] } }, { "id": 20, "status": "pass", "endpoint": "search", "description": "should be found w/o diacriticals", "in": { "text": "Lodz" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101913783", "confidence": 1, "name": "Łódź" } ] } }, { "id": 21, "status": "pass", "endpoint": "search", "description": "variant should be found", "in": { "text": "Sorbonne" }, "expected": { "properties": [ { "gid": "whosonfirst:neighbourhood:85873821", "confidence": 1, "name": "Quartier de la Sorbonne" } ] } }, { "id": 22, "status": "pass", "endpoint": "search", "description": "layers should be respected", "priorityThresh": 4, "in": { "text": "Luxembourg", "layers": "locality" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101751765", "confidence": 0.6, "name": "Luxembourg City" } ] }, "unexpected": { "properties": [ { "layer": "region" }, { "layer": "country" } ] } }, { "id": 23, "status": "pass", "endpoint": "search", "description": "layers should be respected", "priorityThresh": 10, "in": { "text": "Socorro, NM", "layers": "county" }, "expected": { "properties": [ { "gid": "whosonfirst:county:102081575", "confidence": 0.4, "name": "Socorro County" } ] }, "unexpected": { "properties": [ { "gid": "whosonfirst:locality:85976677" } ] } }, { "id": 24, "status": "pass", "endpoint": "search", "description": "boundary.country should be respected", "priorityThresh": 10, "in": { "text": "London", "boundary.country": "CAN" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101735809", "confidence": 1, "name": "London" } ] }, "unexpected": { "properties": [ { "country_a": "USA" }, { "country_a": "GBR" } ] } }, { "id": 25, "status": "pass", "endpoint": "search", "description": "boundary.rect should be respected", "priorityThresh": 10, "in": { "text": "London", "boundary.rect.min_lat": "42.593921", "boundary.rect.max_lat": "44.048675", "boundary.rect.min_lon": "-82.003082", "boundary.rect.max_lon": "-80.278096" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101735809", "confidence": 1, "name": "London" } ] }, "unexpected": { "properties": [ { "country_a": "USA" }, { "country_a": "GBR" } ] } }, { "id": 26, "status": "pass", "endpoint": "search", "description": "boundary.rect should be respected", "priorityThresh": 10, "in": { "text": "Las Vegas", "boundary.rect.min_lat": "31.346514", "boundary.rect.max_lat": "36.987116", "boundary.rect.min_lon": "-109.049381", "boundary.rect.max_lon": "-103.006901" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:85976683", "confidence": 1, "name": "Las Vegas", "region_a": "NM" } ] }, "unexpected": { "properties": [ { "gid": "whosonfirst:locality:85974801", "region_a": "NV" } ] } }, { "id": 27, "status": "pass", "endpoint": "search", "description": "boundary.circle should be respected", "priorityThresh": 10, "in": { "text": "London", "boundary.circle.radius": "50", "boundary.circle.lat": "43.096883", "boundary.circle.lon": "-81.622706" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101735809", "confidence": 1, "name": "London" } ] }, "unexpected": { "properties": [ { "country_a": "USA" }, { "country_a": "GBR" } ] } }, { "id": 28, "status": "pass", "endpoint": "search", "description": "Dundee has 0 population: https://github.com/pelias/pelias/issues/526", "priorityThresh": 10, "in": { "text": "Dundee" }, "expected": { "properties": [ { "gid": "whosonfirst:locality:101750641", "confidence": 1, "name": "Dundee" } ] } } ] }