sf_to_latlon: Convert 'sf' objects to *valhallr*-friendly tibbles

Description Usage Arguments Value

View source: R/valhalla.R

Description

This function converts simple feature (sf) POINT objects to tidy tibbles that you can feed to valhallr functions. This is handy if you're working with a lots of geospatial data and would like to run a set of locations through, for example, valhallr::od_table().

Usage

1
sf_to_latlon(data, output_crs = "WGS84")

Arguments

data

A simple feature collection with geometry class POINT.

output_crs

The desired output coordinate reference system (CRS). Defaults to WGS84.

Value

A non-sf tibble with new columns lat and lon containing latitudes and longitudes respectively that can be fed into other valhallr functions like valhallr::od_table().


chris31415926535/valhallr documentation built on Jan. 31, 2022, 8:57 a.m.