geocoding_reverse: Reverse Geocoding

View source: R/geocoding_reverse.R

geocoding_reverseR Documentation

Reverse Geocoding

Description

Attempt to match a latitude, longitude pair to an address.

Usage

geocoding_reverse(lat, lng, within.country = NA, exclude.location.types = NA)

Arguments

lat

Latitude of the point to reverse geocode.

lng

Longitude of the point to reverse geocode.

within.country

Only return the results that are within the specified country. If no results are found it will return the country itself. Optional. Format:ISO 3166-1 alpha-2 or alpha-3

exclude.location.types

Exclude location types from results. Available values: "country". Optional.

Details

See https://traveltime.com/docs/api/reference/geocoding-reverse for details

Value

API response parsed as list and as a raw json

Examples

## Not run: 
geocoding_reverse(lat=51.507281, lng=-0.132120)

## End(Not run)

s-Nick-s/traveltimeR documentation built on Dec. 1, 2022, 6:28 p.m.