geocode: geocode

Description Usage Arguments Value

View source: R/geocode.R

Description

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-address

Usage

1
2
3
4
5
6
7
8
geocode(
  addressLine = NULL,
  locality = NULL,
  adminDistrict = NULL,
  postalCode = NULL,
  countryRegion = NULL,
  includeNeighborhood = NULL
)

Arguments

addressLine

Street address of the location (e.g. "123 Market Street")

locality

City/neighborhood of the location (e.g. "San Francisco")

adminDistrict

Subdivision of the location, such as the state/province (e.g. "CA")

postalCode

Postal/ZIP code of the location (e.g. 94114)

countryRegion

ISO country code of the location (e.g. US)

includeNeighborhood

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

Value

S3 object containing the API response. Includes:
"chords": Named list containing the geocoded coordinates
"content": Complete parsed response, including the geocoded coordinates 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.