NYCPlanning / labs-search-api

Typeahead search API that returns addresses and POI from mapzen, lots, zoning changes, etc
Other
3 stars 0 forks source link

GeoSearch error handling #37

Open allthesignals opened 5 years ago

allthesignals commented 5 years ago

StatusCodeError: 400 - "{\"geocoding\":{\"version\":\"0.2\",\"attribution\":\"http://geosearch.planninglabs.nyc/attribution\",\"query\":{\"tokens\":[],\"size\":10,\"private\":false,\"boundary.rect.min_lat\":40.477248,\"boundary.rect.max_lat\":40.958123,\"boundary.rect.min_lon\":-74.292297,\"boundary.rect.max_lon\":-73.618011,\"lang\":{\"name\":\"English\",\"iso6391\":\"en\",\"iso6393\":\"eng\",\"defaulted\":true}},\"errors\":[\"invalid param 'text': text length, must be >0\"],\"engine\":{\"name\":\"Pelias\",\"author\":\"Mapzen\",\"version\":\"1.0\"},\"timestamp\":1559848373455},\"type\":\"FeatureCollection\",\"features\":[]}"

Somehow it's querying with less than 1?