Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Add notification when isochrones cannot be calculated #266

Open
rmglennon opened this issue Nov 16, 2016 · 0 comments
Open

Add notification when isochrones cannot be calculated #266

rmglennon opened this issue Nov 16, 2016 · 0 comments

Comments

@rmglennon
Copy link
Contributor

If isochrones cannot be generated from the pin's position, add a notification that a problem has occurred. See also #265

To reproduce:

  • Pan to the ocean...or anywhere else known without roads or transit data.
  • Drag a pin onto the map.
  • Click Generate isochrones.

The map refreshed but it looks like nothing has happened. There is a console error of 400, and the response is:

{"error_code":171,"error":"No suitable edges near location","status_code":400,"status":"Bad Request"}

Maybe something like, "Isochrones could not be generated for this area. Make sure you are near roads or transit network lines and try again."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant