extract_coords: Extract latitude and longitude from a provided object

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This is an internal utility function to convert bounding boxes into coordinate pairs.

Usage

1

Arguments

coords

An object to try and extract coordinates from

Value

A vector of length 2 containing object latitude and longitude

Examples

1
2
3
4
5
6
extract_coords(get_centroid_bounding_box(c(
  "lat" = 44.121268,
  "lng" = -73.903734
),
distance = 10
)[[1]])

spacey documentation built on March 15, 2020, 1:07 a.m.