since the route now accepts `key_lat`, `key_lon` and `key_dist`, you should add some checks here