create basic state flow

@hodgestar I'm not sure if this is the correct way of handling this. It depends on how the API is structured. If no results are found will it return an empty list? Or will it always return results through using a nearest neighbor approach?