View source: R/geocode_multiple_Colombia.R
geocode_multiple_Colombia | R Documentation |
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.
geocode_multiple_Colombia(df, key, ..., id_col = NULL, join_id = NULL)
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) |
The coordinates of the address given.
ver <- geocode_multiple(bd, key)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.