geocode

0th

Percentile

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.

Keywords
spatial
Usage
geocode(x, boxes='', extent=NULL)
Arguments
x
Locality description
boxes
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
extent
An Extent object, or an object that can be coerced to one, to bias the search towards that region
Value

  • matrix

See Also

biogeomancer

Aliases
  • geocode
Examples
# 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')
Documentation reproduced from package dismo, version 0.5-1, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.