View source: R/reverse_geocoding.R
reverse_geocoding | R Documentation |
Returns nearest postcodes for a given longitude and latitude.
reverse_geocoding(
longitude,
latitude,
limit = 10,
radius = 100,
wideSearch = NULL
)
longitude |
A string or numeric. Needs to have at least three decimal points. |
latitude |
A string or numeric. Needs to have at least three decimal points. |
limit |
An integer. Limits number of postcodes matches to return. Defaults to 10. Needs to be less than 100. |
radius |
An integer. Limits number of postcodes matches to return. Defaults to 100m. Needs to be less than 2,000m. |
wideSearch |
TRUE or FALSE. Search up to 20km radius, but subject to a maximum of 10 results. Since lookups over a wide area can be very expensive, we've created this method to allow you choose to make the trade off between search radius and number of results. Defaults to false. When enabled, radius and limits over 10 are ignored. |
A list with available data.
postcode_lookup
for documentation.
reverse_geocoding(0.127, 51.507)
reverse_geocoding("0.1275", "51.5073", limit = 3)
reverse_geocoding("0.1275", "51.5073", limit = 11, radius = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.