terra distance to calculate distance from points to edges of polygons I have this list of lat/long coordinates (from Google maps).