reverse_geocode: reverse_geocode

Description Usage Arguments Value

View source: R/reverse_geocode.R

Description

Reverse geocodes an address using the Bing Maps Locations API For more information, please see https://docs.microsoft.com/en-us/bingmaps/rest-services/locations/find-a-location-by-point

Usage

1
2
3
4
5
6
7
reverse_geocode(
  lat,
  long,
  includeEntityTypes = NULL,
  verboseplacenames = NULL,
  includeNeighborhood = NULL
)

Arguments

lat

Latitude of the location (e.g. '37.7708' )

long

Longitude of the location (e.g. '-122.4195')

includeEntityTypes

Only include the specified entity types (e.g. 'naturalPOI')

verboseplacenames

Whether the returned location names should be represented with their official abbreviations or in expanded form (e.g. 'true' or 'false'), default value is 'false'

includeNeighborhood

Whether the response should include the neighborhood of the location (e.g. "0" or "1")

Value

S3 object containing the API response. Includes:
"address": Complete geocoded address
"content": Complete parsed response, including the geocoded address separated by descriptor as well as other information about the location
"params": Parameters inputted into the API from the user
"response": Response object returned from httr, including the request URL, status code returned, and time of request


ericphillips99/bingmapr documentation built on March 3, 2021, 3:32 p.m.