mz_geocode: Geocode an address or other location

View source: R/geocode.R

mz_geocodeR Documentation

Geocode an address or other location

Description

This is a convenience function that calls mz_search to retrieve latitude and longitude.

Usage

mz_geocode(location, ...)

Arguments

location

An address or other suitably specific search string

...

Additional arguments passed on to mz_search

Value

A tibble, with the parsed address used to retrieve the geocode, lat/lon, and the confidence (between 0 and 1)

See Also

mz_search, mz_reverse_geocode

Examples

## Not run: 
mz_geocode("1600 Pennsylvania Ave., Washington DC")

# can also be a landmark
mz_geocode("Statue of Liberty, New York")

## End(Not run)


tarakc02/rmapzen documentation built on Oct. 19, 2023, 7:32 p.m.