Description Usage Arguments Value Author(s) References Examples
Get gecode for given query from one of the geocoding services: OKF.fi Geocoding API Test Console: http://data.okf.fi/console/ OpenStreetMap Nominatim (usage policy: http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy) Google Maps API See Terms and Conditions from http://code.google.com/apis/maps/documentation/geocoding/
1 | get_geocode(query, service = "okf", raw_query = F)
|
query |
Either a street address, e.g. 'Mannerheimintie 100, Helsinki' or place, e.g. 'Eduskuntatalo' |
service |
Geocoding service to use, one of 'okf', 'openstreetmap' or 'google' |
raw_query |
If true, don't prepend / append some default parameters to query. Except for the ones specifying json format, send the query to API as-it-is |
A list with coordinates (lat, long) of the first output, and the raw output list
Juuso Parkkinen louhos@googlegroups.com, minor updates by Aaro Salosensaari aaro.salosensaari@helsinki.fi and Leo Lahti.
See citation("gisfin")
1 2 3 4 5 6 7 8 | ## Not run:
# Geocode for a street address:
gc1 <- get_geocode("Mannerheimintie 100, Helsinki");
# Geocode for a place name
gc2 <- get_geocode("&city=Helsinki", service="openstreetmap", raw_query=T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.