reverse_geocode: Convert lat/long coordinates to City of Dallas addresses

Description Usage Arguments Value Examples

View source: R/geocoders.R

Description

Convert lat/long coordinates to City of Dallas addresses using the City of Dallas's public reverseGeocode service. See ArcGIS's documentation page for additional details.

Usage

1
reverse_geocode(latitude, longitude, intersection = F, sr = 4326)

Arguments

latitude

numeric vector of latitude coordinate to reverse geocode

longitude

numeric vector of longitude coordinate to reverse geocode

intersection

boolean value specifying whether the geocode service should return the nearest street intersection or the nearest address.

out_sr

Spatial Reference ID (WKID) for the given lat/long coordinate system. Defaults to 4326, which corresponds to WGS84. If using with one of the City of Dallas's MapServers, you may wish to set this to 2276, the default WKID for many Dallas services. Refer to ArcGIS's Projected and Geographic coordinate system documentation pages for a full list of valid WKIDs.

Value

A dataframe containing the reverse-geocoded address

Examples

1
2
3
4
5
6
7
8
9
reverse_geocode(32.8217, -96.7163)

addresses <- data.frame(
  street = c('8525 Garland Rd', '1500 Marilla St', '3809 Grand Avenue'),
  city = c('Dallas', 'Dallas', 'Dallas'),
  zip = c(75218, 75201, 75210)
) #'
coords <- geocode_addresses(addresses$street, addresses$city, addresses$zip)
reverse_geocode(coords$latitude[[2]], coords$longitude[[2]]

log-linear/DallasGeocodeR documentation built on Dec. 21, 2021, 11:45 a.m.