Distance calculations for sc currently use default geodist method, which is "cheap" distance, while for sf they use an internally-coded Haversine calculation. These can both be ditched, and a distance column inserted after return from the C++ routines with geodist(..., measure = "geodesic"). The extra calculation time for geodesic distances is still only a tiny fraction of total graph construction time, so can easily be implemented with hardly any slowdown. Prompted by comments of @mguzmann in #178.
Distance calculations for
sc
currently use defaultgeodist
method, which is "cheap" distance, while forsf
they use an internally-coded Haversine calculation. These can both be ditched, and a distance column inserted after return from the C++ routines withgeodist(..., measure = "geodesic")
. The extra calculation time for geodesic distances is still only a tiny fraction of total graph construction time, so can easily be implemented with hardly any slowdown. Prompted by comments of @mguzmann in #178.