Georeferencing with Google
A wrapper around the Google geocoding web-service. It returns 0 to n matches. It is important to be as precise as possible, e.g. always include the country in the locality description.
geocode(x, boxes='', extent=NULL)
- Locality description
- Character. '', 'only', or 'one'; if '', 0 to n localities and bounding boxes are returned. If it is 'only', only a single bounding box is returned (the union of all boxes) for each record in
x. It it is 'one', a single bounding box will be re
- An Extent object, or an object that can be coerced to one, to bias the search towards that region
# geocode(c('1600 Pennsylvania Ave NW, Washington DC', 'Luca, Italy', 'Kampala')) # geocode(c('San Jose', 'San Jose, Mexico')) # geocode(c('San Jose', 'San Jose, Mexico'), boxes='one')
Looks like there are no examples yet.