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.

192 lines
5.3 KiB

{
"name": "reverse coordinate wrapping",
"priorityThresh": 3,
"endpoint": "reverse",
"description": "Verify that the API supports longitude wrapping as expected.",
"tests": [
{
"id": 3,
"status": "pass",
"issue": "https://github.com/pelias/wof-pip-service/issues/40",
"description": "base case (no wrapping) for a reverse query in NYC",
"user": "sev",
"type": "dev",
"in": {
"point.lat": 40.72956780913899,
"point.lon": -73.99463653564453
},
"expected": {
"properties": [
{
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"borough": "Manhattan",
"locality": "New York",
"neighbourhood": "Greenwich Village"
}
]
}
},
{
"id": 4,
"status": "pass",
"issue": "https://github.com/pelias/wof-pip-service/issues/40",
"description": "same effective coordinate as base case with positive longitude wrapping",
"user": "sev",
"type": "dev",
"in": {
"point.lat": 40.72956780913899,
"point.lon": 286.00536346435547
},
"expected": {
"properties": [
{
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"borough": "Manhattan",
"locality": "New York",
"neighbourhood": "Greenwich Village"
}
]
}
},
{
"id": 5,
"status": "pass",
"issue": "https://github.com/pelias/wof-pip-service/issues/40",
"description": "same effective coordinate as base case with negative longitude wrapping",
"user": "sev",
"type": "dev",
"in": {
"point.lat": 40.72956780913899,
"point.lon": -433.99463653564453
},
"expected": {
"properties": [
{
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"borough": "Manhattan",
"locality": "New York",
"neighbourhood": "Greenwich Village"
}
]
}
},
{
"id": 5,
"status": "pass",
"issue": "https://github.com/pelias/wof-pip-service/issues/40",
"description": "same effective coordinate as base case with double negative longitude wrapping",
"user": "sev",
"type": "dev",
"in": {
"point.lat": 40.72956780913899,
"point.lon": -793.9946365356445
},
"expected": {
"properties": [
{
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"borough": "Manhattan",
"locality": "New York",
"neighbourhood": "Greenwich Village"
}
]
}
},
{
"id": 6,
"status": "pass",
"description": "elasticsearch <2 handled longitude wrapping and now does not",
"issue": "https://github.com/pelias/api/issues/570",
"user": "orangejulius",
"type": "dev",
"in": {
"point.lat": 40.744131,
"point.lon": 286.009575
},
"expected": {
"properties": [
{
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"borough": "Manhattan",
"locality": "New York",
"name": "30 West 26th Street"
}
]
}
},
{
"id": 7,
"status": "pass",
"description": "elasticsearch <2 handled longitude wrapping and now does not",
"issue": "https://github.com/pelias/api/issues/570",
"user": "orangejulius",
"type": "dev",
"in": {
"point.lat": 40.744131,
"point.lon": -433.990425
},
"expected": {
"properties": [
{
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"borough": "Manhattan",
"locality": "New York",
"name": "30 West 26th Street"
}
]
}
},
{
"id": 8,
"status": "pass",
"description": "elasticsearch <2 handled longitude wrapping and now does not",
"issue": "https://github.com/pelias/api/issues/570",
"user": "orangejulius",
"description": "latitude wrapping (this also requires the longitude to change)",
"type": "dev",
"in": {
"point.lat": 139.255869,
"point.lon": 106.009575
},
"expected": {
"properties": [
{
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"borough": "Manhattan",
"locality": "New York",
"name": "30 West 26th Street"
}
]
}
}
]
}