Geocode with the OpenCage API

Geocode with the OpenCage API, either from place name to longitude and latitude (forward geocoding) or from longitude and latitude to the name and address of a location (reverse geocoding), see <>.


opencage 0.1.4

  • Bug fix: now the countrycode argument can be used for Namibia thanks to Daniel Possenriede.

opencage 0.1.3

  • Added a add_request parameter (for appending original query to results).

opencage 0.1.2

opencage 0.1.1

opencage 0.1.0

  • Added a file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.2 by Daniel Possenriede, 8 months ago,

Report a bug at

Browse source code at

Authors: Daniel Possenriede [aut, cre] , Jesse Sadler [aut] , Maƫlle Salmon [aut] , Noam Ross [ctb] , Jake Russ [ctb] , Julia Silge [rev] (Julia Silge reviewed the package for rOpenSci , see

Documentation:   PDF Manual  

Task views: Web Technologies and Services

GPL (>= 2) license

Imports crul, dplyr, lifecycle, jsonlite, memoise, progress, purrr, ratelimitr, rlang, tibble, tidyr, withr

Suggests knitr, mockery, rmarkdown, sf, testthat

Suggested by eiCompare.

See at CRAN