If the maxdist value is not large enough, stplanr::find_nearest_nodes() will return NA. Need add a check for this and, then, offer a suggestion that user increase value for maxdist.
Probably also worth exploring optimal maxdist values so the default is sensible
This was addressed in ae11412; there is no longer a maxdist value needed with the swich to nabor::knn(). should still add some checks in case knn() fails.
If the maxdist value is not large enough,
stplanr::find_nearest_nodes()
will return NA. Need add a check for this and, then, offer a suggestion that user increase value for maxdist.Probably also worth exploring optimal maxdist values so the default is sensible