synthesize_apis: Synthesize API URLs

Description Usage Arguments Value Examples

Description

A wrapper function to synthesize API URL(s) for extraction of data. You can then use get_api_data() to extract the data.

Usage

1
2
3
4
5
6
7
synthesize_apis(url_body, provider = c("google", "baidu", "gaode",
  "ipstack", "ipinfo", "ipify"), api = c("geocode", "revgeocode",
  "convcoord", "geohost"), ...)

synthesize_api(url_body, provider = c("google", "baidu", "gaode",
  "ipstack", "ipinfo", "ipify"), api = c("geocode", "revgeocode",
  "convcoord", "geohost"), ...)

Arguments

url_body

character, the main body of the caller API.

provider

character, 'google', 'baidu', 'gaode', 'ipstack', 'ipinfo', or 'ipify'

api

character, 'geocode', 'revgeocode', 'convcoord', or 'geohost'

...

other arguments to pass to the function

Value

A list of API URLs, each of which is a url object.

Examples

1
2
3
4
## Not run: 
synthesize_apis('https://maps.googleapis.com/maps/api/', 'google', 'geocode')

## End(Not run)

madlogos/aseskit documentation built on June 26, 2019, 12:17 a.m.