geocode_multiple_Colombia: geocode in Colombia using the ESRI API geocoding server first

View source: R/geocode_multiple_Colombia.R

geocode_multiple_ColombiaR Documentation

geocode in Colombia using the ESRI API geocoding server first

Description

This function allows you to geocode addresses in Colombia. The first attempt to geocode addresses is made using the ESRI API geocoding server. If any address are not geocoded, then these directions are geocoded using the Google Maps API (requires key). The result is a datframe with all the information recolected, specifying in column 'geocoded' which server was used (1: ESRI, 2: Google Maps). A column for localidad is specified when the address is geocoded using the Google Maps API, since the score of this geocoding process is not computated, so this may be the fastest way to verify the results.

Usage

geocode_multiple_Colombia(df, key, ..., id_col = NULL, join_id = NULL)

Arguments

df

The dataframe containing the information.

key

The google API key used for geocoding with the Google Maps API.

id_col

The name of the column with the id for keeping track of your data (for each address).

join_id

A string indicating the name of the column to join the results into the new dataframe.

direccion_gm

The name of the column with the address in Google Maps format (addres, city, country)

Value

The coordinates of the address given.

Examples

ver <- geocode_multiple(bd, key)

samesag/emu documentation built on Aug. 22, 2023, 3:19 p.m.