Description Usage Arguments Value Examples
Use the Nokia HERE batch geocoding API to geocode lots of addresses in a single call instead of looping over the addresses one by one.
1 2 | geocodeHERE_batch_upload(address_string, email_address, App_id = "",
App_code = "", quiet = TRUE)
|
address_string |
Character string containing the addresses to be geocoded. Output from 'format_vec_for_upload(...) |
email_address |
Character string containing an email address. Nokia will email you here when the job is done. |
App_id |
App_id to use the production HERE API. Get one here... http://developer.here.com/get-started. If left blank, will default to demo key with an unknown usage limit. |
App_code |
App_code to use the production HERE API. Get one here... http://developer.here.com/get-started. If left blank, will default to demo key with an unknown usage limit. |
quiet |
TRUE / FALSE indicating whether to write the POST information to the console |
request_id as a string
1 2 3 4 5 6 7 8 9 10 11 12 | addresses <- chicago_landmarks[,"Address"]
addresses <- paste(addresses, "chicago IL")
addresses_df <- data.frame(id=1:length(addresses), addresses=addresses)
address_str <- df_to_string(addresses_df)
## Not run:
request_id <- geocodeHERE_batch_upload(address_string = address_str,
email_address = "youremail<at>domain.com")
geocodeHERE_batch_status(request_id)
geocode_data <- geocodeHERE_batch_get_data(request_id)
addresses_df <- merge(addresses_df, geocode_data, by.x="id", by.y="recId", all.x=T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.