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.
349 lines
9.1 KiB
349 lines
9.1 KiB
{ |
|
"name": "address parsing", |
|
"priorityThresh": 5, |
|
"endpoint": "search", |
|
"tests": [ |
|
{ |
|
"id": 1, |
|
"status": "pass", |
|
"user": "Harish", |
|
"type": "dev", |
|
"in": { |
|
"text": "101 saint marks pl 10009" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "101 Saint Marks Place", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "New York", |
|
"region_a": "NY", |
|
"county": "New York County", |
|
"borough": "Manhattan", |
|
"locality": "New York", |
|
"neighbourhood": "East Village", |
|
"postalcode": "10009", |
|
"housenumber": "101", |
|
"street": "Saint Marks Place", |
|
"label": "101 Saint Marks Place, Manhattan, New York, NY, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 2, |
|
"status": "pass", |
|
"issue": "https://github.com/pelias/api/issues/187", |
|
"user": "Harish", |
|
"type": "dev", |
|
"notes": [ |
|
"at last count there are 21 exact matches for '1 water street' in", |
|
"new york state, the manhattan result should sort to the top due to it", |
|
"also being part of 'new york city' and therefore admin matching twice" |
|
], |
|
"in": { |
|
"text": "1 water st manhattan ny" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "1 Water Street", |
|
"borough": "Manhattan", |
|
"locality": "New York", |
|
"region_a": "NY", |
|
"country_a": "USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 2.2, |
|
"status": "pass", |
|
"user": "Diana", |
|
"type": "dev", |
|
"in": { |
|
"text": "1 water st manhattan ny" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "1 Water Street", |
|
"borough": "Manhattan", |
|
"locality": "New York", |
|
"region_a": "NY", |
|
"country_a": "USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 3, |
|
"status": "pass", |
|
"isssue": "https://github.com/pelias/api/issues/456", |
|
"description": "result in the wrong zipcode and city shows up first", |
|
"user": "Harish", |
|
"type": "dev", |
|
"in": { |
|
"text": "450 37th st, new york, ny 11232" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "450 37th Street", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "New York", |
|
"region_a": "NY", |
|
"county": "Kings County", |
|
"borough": "Brooklyn", |
|
"locality": "New York", |
|
"postalcode": "11232", |
|
"housenumber": "450", |
|
"street": "37th Street", |
|
"label": "450 37th Street, Brooklyn, New York, NY, USA" |
|
} |
|
] |
|
}, |
|
"unexpected": { |
|
"properties": [ |
|
{ |
|
"postalcode": "10018" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 4, |
|
"status": "pass", |
|
"user": "Harish", |
|
"type": "dev", |
|
"in": { |
|
"text": "starbucks 10010" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "Starbucks", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "New York", |
|
"region_a": "NY", |
|
"county": "New York County", |
|
"borough": "Manhattan", |
|
"locality": "New York", |
|
"postalcode": "10010" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 5, |
|
"status": "pass", |
|
"user": "Harish", |
|
"type": "dev", |
|
"in": { |
|
"text": "455 43rd st new york ny 11232" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "455 43rd Street", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "New York", |
|
"region_a": "NY", |
|
"county": "Kings County", |
|
"borough": "Brooklyn", |
|
"locality": "New York", |
|
"neighbourhood": "Sunset Park", |
|
"postalcode": "11232", |
|
"housenumber": "455", |
|
"street": "43rd Street", |
|
"label": "455 43rd Street, Brooklyn, New York, NY, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 6, |
|
"status": "pass", |
|
"user": "Harish", |
|
"type": "dev", |
|
"in": { |
|
"text": "1 main st ny 11201" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "1 Main Street", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "New York", |
|
"region_a": "NY", |
|
"county": "Kings County", |
|
"borough": "Brooklyn", |
|
"locality": "New York", |
|
"neighbourhood": "DUMBO", |
|
"postalcode": "11201", |
|
"housenumber": "1", |
|
"street": "Main Street", |
|
"label": "1 Main Street, Brooklyn, New York, NY, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 7, |
|
"status": "pass", |
|
"description": [ |
|
"was failing due to a double-space in the street name" |
|
], |
|
"issue": [ "https://github.com/pelias/openaddresses/issues/69 (comment 1)" ], |
|
"user": "Harish", |
|
"in": { |
|
"text": "186 Tuskegee St SE Atlanta GA" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "186 Tuskegee Street Southeast", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "Georgia", |
|
"region_a": "GA", |
|
"county": "Fulton County", |
|
"locality": "Atlanta", |
|
"postalcode": "30315", |
|
"housenumber": "186", |
|
"street": "Tuskegee Street Southeast", |
|
"label": "186 Tuskegee Street Southeast, Atlanta, GA, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 8, |
|
"status": "pass", |
|
"user": "Harish", |
|
"in": { |
|
"text": "3122 16th St San Francisco, CA 94103" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "3122 16th Street", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "California", |
|
"region_a": "CA", |
|
"county": "San Francisco County", |
|
"locality": "San Francisco", |
|
"neighbourhood": "Mission Dolores", |
|
"housenumber": "3122", |
|
"street": "16th Street", |
|
"label": "3122 16th Street, San Francisco, CA, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 9, |
|
"status": "pass", |
|
"description": "The mission is now a macrohood, so we won't be able to get this right until that's imported", |
|
"issue": "https://github.com/pelias/whosonfirst/issues/213", |
|
"user": "Harish", |
|
"in": { |
|
"text": "3010 20th St San Francisco CA 94110" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "3010 20th Street", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "California", |
|
"region_a": "CA", |
|
"county": "San Francisco County", |
|
"locality": "San Francisco", |
|
"postalcode": "94110", |
|
"housenumber": "3010", |
|
"street": "20th Street", |
|
"label": "3010 20th Street, San Francisco, CA, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 10, |
|
"status": "pass", |
|
"user": "Harish", |
|
"in": { |
|
"text": "3577 Jackson St San Francisco, CA 94118" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "3577 Jackson St", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "California", |
|
"region_a": "CA", |
|
"county": "San Francisco County", |
|
"locality": "San Francisco", |
|
"postalcode": "94118", |
|
"housenumber": "3577", |
|
"street": "Jackson St", |
|
"label": "3577 Jackson St, San Francisco, CA, USA" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 11, |
|
"status": "pass", |
|
"user": "Harish", |
|
"type": "dev", |
|
"in": { |
|
"text": "whole foods NY" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"name": "Whole Foods", |
|
"country_a": "USA", |
|
"country": "United States", |
|
"region": "New York", |
|
"region_a": "NY" |
|
} |
|
] |
|
} |
|
}, |
|
{ |
|
"id": 11, |
|
"status": "pass", |
|
"issue": "https://github.com/pelias/pelias/issues/440", |
|
"user": "diana", |
|
"in": { |
|
"text": "301 Commons Park S, Stamford, CT 06902" |
|
}, |
|
"expected": { |
|
"properties": [ |
|
{ |
|
"housenumber": "301", |
|
"street": "Commons Park South", |
|
"postalcode": "06902", |
|
"confidence": 1, |
|
"match_type": "exact", |
|
"accuracy": "point", |
|
"region": "Connecticut", |
|
"region_a": "CT", |
|
"localadmin": "Stamford", |
|
"locality": "Stamford", |
|
"label": "301 Commons Park South, Stamford, CT, USA" |
|
} |
|
] |
|
} |
|
} |
|
] |
|
}
|
|
|