Learn R Programming

rmapzen (version 0.4.0)

mz_geocode: 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

Run this code
# NOT RUN {
mz_geocode("1600 Pennsylvania Ave., Washington DC")

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

Run the code above in your browser using DataLab