Learn R Programming

spacey (version 0.1.1)

extract_coords: Extract latitude and longitude from a provided object

Description

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

Usage

extract_coords(coords)

Arguments

coords

An object to try and extract coordinates from

Value

A vector of length 2 containing object latitude and longitude

Examples

Run this code
# NOT RUN {
extract_coords(get_centroid_bounding_box(c(
  "lat" = 44.121268,
  "lng" = -73.903734
),
distance = 10
)[[1]])
# }

Run the code above in your browser using DataLab