diff --git a/projects/las-vegas-metro/.env b/projects/las-vegas-metro/.env new file mode 100644 index 00000000..136b49ab --- /dev/null +++ b/projects/las-vegas-metro/.env @@ -0,0 +1,2 @@ +COMPOSE_PROJECT_NAME=pelias +DATA_DIR=/tmp/pelias/portland-metro diff --git a/projects/las-vegas-metro/README.md b/projects/las-vegas-metro/README.md new file mode 100644 index 00000000..1ead3486 --- /dev/null +++ b/projects/las-vegas-metro/README.md @@ -0,0 +1,36 @@ + +# Las Vegas Metro Area + +This project is configured to download/prepare/build a complete Pelias installation for Las Vegas, Nevada (and indeed Clark County as a whole). + +# Setup + +Please refer to the instructions at https://github.com/pelias/docker in order to install and configure your docker environment. + +The minimum configuration required in order to run this project are [installing prerequisites](https://github.com/pelias/docker#prerequisites), [install the pelias command](https://github.com/pelias/docker#installing-the-pelias-command) and [configure the environment](https://github.com/pelias/docker#configure-environment). + +Please ensure that's all working fine before continuing. + +This project requires about 7 GB of disk space. + +# Run a Build + +To run a complete build, execute the following commands: + +```bash +pelias compose pull +pelias elastic start +pelias elastic wait +pelias elastic create +pelias download all +pelias prepare all +pelias import all +pelias compose up +pelias test run +``` + +# Make an Example Query + +You can now make queries against your new Pelias build: + +http://localhost:4000/v1/search?text=Las%20Vegas diff --git a/projects/las-vegas-metro/docker-compose.yml b/projects/las-vegas-metro/docker-compose.yml new file mode 100644 index 00000000..98ae9da8 --- /dev/null +++ b/projects/las-vegas-metro/docker-compose.yml @@ -0,0 +1,128 @@ +version: '3' +networks: + default: + driver: bridge +services: + libpostal: + image: pelias/libpostal-service + container_name: pelias_libpostal + user: "${DOCKER_USER}" + restart: always + ports: [ "127.0.0.1:4400:4400" ] + schema: + image: pelias/schema:master + container_name: pelias_schema + user: "${DOCKER_USER}" + volumes: + - "./pelias.json:/code/pelias.json" + api: + image: pelias/api:master + container_name: pelias_api + user: "${DOCKER_USER}" + restart: always + environment: [ "PORT=4000" ] + ports: [ "0.0.0.0:4000:4000" ] + volumes: + - "./pelias.json:/code/pelias.json" + placeholder: + image: pelias/placeholder:master + container_name: pelias_placeholder + user: "${DOCKER_USER}" + restart: always + environment: [ "PORT=4100" ] + ports: [ "127.0.0.1:4100:4100" ] + volumes: + - "./pelias.json:/code/pelias.json" + - "${DATA_DIR}:/data" + - "./blacklist/:/data/blacklist" + whosonfirst: + image: pelias/whosonfirst:master + container_name: pelias_whosonfirst + user: "${DOCKER_USER}" + volumes: + - "./pelias.json:/code/pelias.json" + - "${DATA_DIR}:/data" + - "./blacklist/:/data/blacklist" + openstreetmap: + image: pelias/openstreetmap:master + container_name: pelias_openstreetmap + user: "${DOCKER_USER}" + volumes: + - "./pelias.json:/code/pelias.json" + - "${DATA_DIR}:/data" + - "./blacklist/:/data/blacklist" + openaddresses: + image: pelias/openaddresses:master + container_name: pelias_openaddresses + user: "${DOCKER_USER}" + volumes: + - "./pelias.json:/code/pelias.json" + - "${DATA_DIR}:/data" + - "./blacklist/:/data/blacklist" + transit: + image: pelias/transit:master + container_name: pelias_transit + user: "${DOCKER_USER}" + volumes: + - "./pelias.json:/code/pelias.json" + - "${DATA_DIR}:/data" + csv-importer: + image: pelias/csv-importer:master + container_name: pelias_csv_importer + user: "${DOCKER_USER}" + volumes: + - "./pelias.json:/code/pelias.json" + - "${DATA_DIR}:/data" + - "./blacklist/:/data/blacklist" + polylines: + image: pelias/polylines:master + container_name: pelias_polylines + user: "${DOCKER_USER}" + volumes: + - "./pelias.json:/code/pelias.json" + - "${DATA_DIR}:/data" + interpolation: + image: pelias/interpolation:master + container_name: pelias_interpolation + user: "${DOCKER_USER}" + restart: always + environment: [ "PORT=4300" ] + ports: [ "127.0.0.1:4300:4300" ] + volumes: + - "./pelias.json:/code/pelias.json" + - "${DATA_DIR}:/data" + pip: + image: pelias/pip-service:master + container_name: pelias_pip-service + user: "${DOCKER_USER}" + restart: always + environment: [ "PORT=4200" ] + ports: [ "127.0.0.1:4200:4200" ] + volumes: + - "./pelias.json:/code/pelias.json" + - "${DATA_DIR}:/data" + elasticsearch: + image: pelias/elasticsearch:7.16.1 + container_name: pelias_elasticsearch + user: "${DOCKER_USER}" + restart: always + ports: [ "127.0.0.1:9200:9200", "127.0.0.1:9300:9300" ] + volumes: + - "${DATA_DIR}/elasticsearch:/usr/share/elasticsearch/data" + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + cap_add: [ "IPC_LOCK" ] + fuzzy-tester: + image: pelias/fuzzy-tester:master + container_name: pelias_fuzzy_tester + user: "${DOCKER_USER}" + restart: "no" + command: "--help" + volumes: + - "./pelias.json:/code/pelias.json" + - "./test_cases:/code/pelias/fuzzy-tester/test_cases" diff --git a/projects/las-vegas-metro/pelias.json b/projects/las-vegas-metro/pelias.json new file mode 100644 index 00000000..46de5a16 --- /dev/null +++ b/projects/las-vegas-metro/pelias.json @@ -0,0 +1,107 @@ +{ + "logger": { + "level": "info", + "timestamp": false + }, + "esclient": { + "apiVersion": "7.5", + "hosts": [ + { "host": "elasticsearch" } + ] + }, + "elasticsearch": { + "settings": { + "index": { + "refresh_interval": "10s", + "number_of_replicas": "0", + "number_of_shards": "1" + } + } + }, + "acceptance-tests": { + "endpoints": { + "docker": "http://api:4000/v1/" + } + }, + "api": { + "services": { + "placeholder": { "url": "http://placeholder:4100" }, + "pip": { "url": "http://pip:4200" }, + "interpolation": { "url": "http://interpolation:4300" }, + "libpostal": { "url": "http://libpostal:4400" } + }, + "defaultParameters": { + "focus.point.lat": 36.14737, + "focus.point.lon": -115.15546 + } + }, + "imports": { + "adminLookup": { + "enabled": true + }, + "csv": { + "datapath": "/data/csv", + "files": [], + "download": [ + "https://raw.githubusercontent.com/pelias/csv-importer/master/data/example.csv" + ] + }, + "geonames": { + "datapath": "/data/geonames", + "countryCode": "ALL" + }, + "openstreetmap": { + "download": [ + { "sourceURL": "https://download.geofabrik.de/north-america/us/nevada-240702.osm.pbf" } + ], + "leveldbpath": "/tmp", + "datapath": "/data/openstreetmap", + "import": [{ + "filename": "nevada-240702.osm.pbf" + }] + }, + "openaddresses": { + "datapath": "/data/openaddresses", + "files": [ + "us/nv/clark.csv", + "us/nv/henderson.csv", + "us/nv/las_vegas.csv" + ] + }, + "polyline": { + "datapath": "/data/polylines", + "files": [ "extract.0sv" ] + }, + "whosonfirst": { + "datapath": "/data/whosonfirst", + "importPostalcodes": true, + "countryCode": "US", + "importPlace": [ + "85688531" + ] + }, + "transit": { + "datapath": "/data/transit", + "feeds": [ + { + "layerId": "stops", + "url": "https://developer.rtcsnv.com/transitData/google_transit.zip", + "filename": "stops.txt", + "agencyId": "RTCSNV", + "agencyName": "RTC Transit", + "layerName": "Stop" + } + ] + }, + "interpolation": { + "download": { + "tiger": { + "datapath": "/data/tiger", + "states": [ + { "state_code": 32, "county_code": 3, "name": "Clark County, NV" } + ] + } + } + } + } +} diff --git a/projects/las-vegas-metro/synonyms/custom_name.txt b/projects/las-vegas-metro/synonyms/custom_name.txt new file mode 100644 index 00000000..6f7691bd --- /dev/null +++ b/projects/las-vegas-metro/synonyms/custom_name.txt @@ -0,0 +1,25 @@ + +shopping,store,shop,retail,grocery,mall + +# Transit Centers +# Rail Stations +# Misc Landmarks + +north, N +south, S +east, E +west, W +north west => northwest +north east => northeast +south west => southwest +south east => southeast +northwest, NW +northeast, NE +southwest, SW +southeast, SE + +Int'l, international + +# street names +MLK,M L King,Martin Luther King +LV,Las Vegas diff --git a/projects/las-vegas-metro/synonyms/custom_street.txt b/projects/las-vegas-metro/synonyms/custom_street.txt new file mode 100644 index 00000000..3a13de9c --- /dev/null +++ b/projects/las-vegas-metro/synonyms/custom_street.txt @@ -0,0 +1,107 @@ +first,1st +second,2nd +third,3rd +forth,4th +fifth,5th +sixth,6th +seventh,7th +eighth,8th +nineth,9th +tenth,10th +eleventh,11th +twelfth,12th +thirteenth,13th +fourteenth,14th +fifteenth,15th +sixteenth,16th +seventeenth,17th +eighteenth,18th +nineteenth,19th +twentyth,20th +twentyfirst,21st +twentysecond,22nd +twentythrid,23rd + +# USPS Suffix Abbreviations +# http://www.usps.com/ncsc/lookups/abbreviations.html#suffix +st,st.,street,str +ave,ave.,av,av.,avenue,AVNUE,AVENUE,AVENU +dr,drive,dr.,drv,driv,drives +BOULEVARD,BLVD,BOULEVARD,BOUL,BOULEVARD,BOULEVARD,BOULV +BRIDGE,BRDGE,BRG +BYPASS,BYP,BYPA,BYPAS,BYPS +CLIFF,CLF,CLIFFS,CLFS +CLUB,CLB +COMMON,CMN +CORNER,COR,CORNERS,CORS +CENTER,CEN,CENT,CENTER,CENTR,CENTRE,CNTER,CNTR,CTR,CENTERS,CTRS +CIR,CIRC,CIRCL,CIRCLE,CRCL,CIRCLE,CRCLE +COURT,CRT,CT,COURTS +CTSCK,CR,CREEK,CRK +CROSSING,CRSSING,CRSSNG,XING +CRECENT,CRES,CRESCENT,CRESENT,CRSCNT,CRSENT,CRSNT +EXP,EXPR,EXPRESS,EXPRESSWAY,EXPW,EXPY +FALL,FALLS,FLS +FERRY,FRRY,FRY +FIELD,FLD,FIELDS,FLDS +FREEWAY,FREEWY,FRWAY,FRWY,FWY +GARDEN,GARDN,GDN,GRDEN,GRDN,GARDENS,GDNS,GRDNS +GATEWAY,GATEWY,GATWAY,GTWAY,GTWY +GROV,GROVE,GRV,GROVES +HARB,HARBOR,HARBR,HBR,HRBOR,HARBORS +HEIGHT,HEIGHTS,HGTS,HT,HTS +HIGHWAY,HIGHWY,HIWAY,HIWY,HWAY,HWY +HILL,HL,HILLS,HLS +IS,ISLAND,ISLND,ISLANDS,ISLNDS,ISS,ISLE,ISLES +JCT,JCTION,JCTN,JUNCTION,JUNCTN,JUNCTON,JCTNS,JCTS,JUNCTIONS +LAKE,LK,LAKES,LKS +LANDING,LNDG,LNDNG +LA,LANE,LANES,LN +LOOP,LOOPS,LP +MANOR,MNR,MANORS,MNRS +MDW,MEADOW,MDWS,MEADOWS,MEDOWS +MILL,ML,MILLS,MLS +MNT,MOUNT,MT +MNTAIN,MNTN,MOUNTAIN,MOUNTIN,MTIN,MTN,MNTNS,MOUNTAINS +ORCH,ORCHARD,ORCHRD +PARK,PK,PRK,PARKS +PARKWAY,PARKWY,PKWAY,PKWY,PKY,PARKWAYS,PKWYS +PLAZA,PLZ,PLZA +PLACE,PL +PR,PRAIRIE,PRARIE,PRR +RANCH,RANCHES,RNCH,RNCHS +RDG,RDGE,RIDGE,RDGS,RIDGES +RIV,RIVER,RIVR,RVR +RD,ROAD,RDS,ROADS +RTESHLS,SHOALS +SHOAR,SHORE,SHR,SHOARS,SHORES,SHRS +SPG,SPNG,SPRING,SPRNG,SPGS,SPNGS,SPRINGS,SPRNGS +SQ,SQR,SQRE,SQU,SQUARE,SQRS,SQUARES +STA,STATION,STATN,STN +STREAM,STREME,STRM +ST,STR,STREET,STRT,STREETS +SMT,SUMIT,SUMITT,SUMMIT +TER,TERR,TERRACE +TR,TRAIL,TRAILS,TRL,TRLS +TUNEL,TUNL,TUNLS,TUNNEL,TUNNELS,TUNNL +UN,UNION,UNIONS +VALLEY,VALLY,VLLY,VLY,VALLEYS,VLYS +VDCT,VIA,VIADCT,VIADUCT +VIEW,VW,VIEWS,VWS +VILL,VILLAG,VILLAGE,VILLG,VILLIAGE,VLG,VILLAGES,VLGS +VILLE,VL +VIS,VIST,VISTA,VST,VSTA +WAY,WY,WAYS + +north, N +south, S +east, E +west, W +north west => northwest +north east => northeast +south west => southwest +south east => southeast +northwest, NW +northeast, NE +southwest, SW +southeast, SE diff --git a/projects/las-vegas-metro/test_cases/search_address.json b/projects/las-vegas-metro/test_cases/search_address.json new file mode 100644 index 00000000..32afa81c --- /dev/null +++ b/projects/las-vegas-metro/test_cases/search_address.json @@ -0,0 +1,717 @@ +{ + "name": "/v1/search address", + "description": "addresses in Las Vegas, NV metro area", + "priorityThresh": 1, + "normalizers": { + "name": [ + "toUpperCase", + "removeOrdinals", + "stripPunctuation", + "abbreviateDirectionals", + "abbreviateStreetSuffixes" + ] + }, + "tests": [ + { + "id": 1, + "status": "fail", + "in": { + "text": "1920 N MLK Blvd, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 2, + "status": "fail", + "in": { + "text": "1920 N MLK Blvd, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 3, + "status": "fail", + "in": { + "text": "1920 N MLK Blvd Las Vegas NV" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 4, + "status": "fail", + "in": { + "text": "1920 N MLK Blvd Las Vegas Nevada" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 5, + "status": "fail", + "in": { + "text": "1920 N MLK Jr Blvd, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 6, + "status": "fail", + "in": { + "text": "1920 N MLK Jr Blvd, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 7, + "status": "fail", + "in": { + "text": "1920 N MLK Jr Blvd Las Vegas NV" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 8, + "status": "fail", + "in": { + "text": "1920 N MLK Jr Blvd Las Vegas Nevada" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 9, + "status": "fail", + "in": { + "text": "1920 N ML King Blvd, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 10, + "status": "fail", + "in": { + "text": "1920 N ML King Blvd, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 11, + "status": "fail", + "in": { + "text": "1920 N ML King Blvd Las Vegas NV" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 12, + "status": "fail", + "in": { + "text": "1920 N ML King Blvd Las Vegas Nevada" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 12.1, + "status": "pass", + "in": { + "text": "1920 N martin luther king Las Vegas Nevada" + }, + "expected": { + "properties": [ + { + "name": "1920 North Martin Luther King Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 13, + "status": "fail", + "in": { + "text": "2000 S LV Blvd, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 14, + "status": "fail", + "in": { + "text": "2000 S LV Blvd, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 15, + "status": "fail", + "in": { + "text": "2000 S LV Blvd Las Vegas NV" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 16, + "status": "fail", + "in": { + "text": "2000 S LV Blvd Las Vegas Nevada" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 17, + "status": "fail", + "in": { + "text": "2000 S LVBLVD, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 18, + "status": "fail", + "in": { + "text": "2000 S LVBLVD, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 19, + "status": "fail", + "in": { + "text": "2000 S LVBLVD Las Vegas NV" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 20, + "status": "fail", + "in": { + "text": "2000 S LVBLVD Las Vegas Nevada" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 21, + "status": "pass", + "in": { + "text": "2000 S Las Vegas Blvd, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 22, + "status": "pass", + "in": { + "text": "2000 S Las Vegas Blvd, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 23, + "status": "pass", + "in": { + "text": "2000 S Las Vegas Blvd Las Vegas NV" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 24, + "status": "pass", + "in": { + "text": "2000 S Las Vegas Blvd Las Vegas Nevada" + }, + "expected": { + "properties": [ + { + "name": "2000 South Las Vegas Boulevard", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 25, + "status": "fail", + "description": "address is in North Las Vegas", + "in": { + "text": "3100 Thomas Ave, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "3100 Thomas Avenue", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 26, + "status": "fail", + "description": "address is in North Las Vegas", + "in": { + "text": "3100 Thomas Ave, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "3100 Thomas Avenue", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 27, + "status": "fail", + "description": "address is in North Las Vegas", + "in": { + "text": "3100 Thomas Ave Las Vegas NV" + }, + "expected": { + "properties": [ + { + "name": "3100 Thomas Avenue", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 28, + "status": "fail", + "description": "address is in North Las Vegas", + "in": { + "text": "3100 Thomas Ave Las Vegas Nevada" + }, + "expected": { + "properties": [ + { + "name": "3100 Thomas Avenue", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 29, + "status": "pass", + "in": { + "text": "3100 Thomas Ave, North Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "3100 Thomas Avenue", + "locality": "North Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 30, + "status": "pass", + "in": { + "text": "3100 Thomas Ave, North Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "3100 Thomas Avenue", + "locality": "North Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 31, + "status": "pass", + "in": { + "text": "317 N 6TH ST, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 32, + "status": "pass", + "in": { + "text": "317 N 6TH ST, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 33, + "status": "pass", + "in": { + "text": "317 N 6th St, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 34, + "status": "pass", + "in": { + "text": "317 N 6th St, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 35, + "status": "pass", + "in": { + "text": "317 North 6th St, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 36, + "status": "pass", + "in": { + "text": "317 North 6th St, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 37, + "status": "fail", + "in": { + "text": "317 N Sixth St, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 38, + "status": "fail", + "in": { + "text": "317 N Sixth St, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 39, + "status": "fail", + "in": { + "text": "317 North Sixth St, Las Vegas, Nevada" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + }, + { + "id": 40, + "status": "fail", + "in": { + "text": "317 North Sixth St, Las Vegas, NV" + }, + "expected": { + "properties": [ + { + "name": "317 North 6th Street", + "locality": "Las Vegas", + "region": "Nevada", + "region_a": "NV" + } + ] + } + } + ] +} diff --git a/projects/las-vegas-metro/test_cases/search_venue.json b/projects/las-vegas-metro/test_cases/search_venue.json new file mode 100644 index 00000000..e26c55b4 --- /dev/null +++ b/projects/las-vegas-metro/test_cases/search_venue.json @@ -0,0 +1,70 @@ +{ + "name": "/v1/search venues", + "priorityThresh": 1, + "endpoint": "search", + "tests": [ + { + "id": 1, + "status": "pass", + "notes": "Stratosphere Tower should come up for Stratosphere", + "in": { + "text": "Stratosphere" + }, + "expected": { + "properties": [ + { + "layer": "venue", + "name": "Stratosphere Tower", + "country_a": "USA", + "country": "United States", + "region": "Nevada", + "region_a": "NV", + "locality": "Las Vegas" + } + ] + } + }, + { + "id": 2, + "status": "pass", + "notes": "Stratosphere Tower should come up for Stratosphere Hotel", + "in": { + "text": "Stratosphere Tower" + }, + "expected": { + "properties": [ + { + "layer": "venue", + "name": "Stratosphere Tower", + "country_a": "USA", + "country": "United States", + "region": "Nevada", + "region_a": "NV", + "locality": "Las Vegas" + } + ] + } + }, + { + "id": 2, + "status": "pass", + "notes": "Stratosphere Tower should come up for Stratosphere Tower", + "in": { + "text": "Stratosphere Hotel" + }, + "expected": { + "properties": [ + { + "layer": "venue", + "name": "Stratosphere Tower", + "country_a": "USA", + "country": "United States", + "region": "Nevada", + "region_a": "NV", + "locality": "Las Vegas" + } + ] + } + } + ] +}