Closed barbeau closed 8 years ago
As far as persistence, here's what I originally envisioned to be in the data model:
private String userId; // We currently have this
private String city; // We currently have this
private int regionId;
private String obaBaseUrl;
private String currentStopId; // We currently have this
private String currentStopCode; // See https://github.com/OneBusAway/onebusaway-alexa/issues/13
So I think for this issue we just need to add the regionId and obaBaseUrl. Ideally we should refresh the obaBaseUrl for the region from the Regions API occasionally, which is where the regionId comes in (regionId is guaranteed to always remain the same for each region).
I'm going to take a shot at implementing this.
From https://github.com/OneBusAway/onebusaway-alexa/pull/8#issuecomment-185287864:
When I mention "error handling" above, I'm primarily thinking of the case where the user specifies a city name but the closest OBA region is hundreds of miles from their location. We can offer to give them data for that region, but it's probably not relevant to them.