All Projects → ropensci → opencage

ropensci / opencage

Licence: other
🌐 R package for the OpenCage API -- both forward and reverse geocoding 🌐

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to opencage

PostcodesioR
API wrapper around postcodes.io - free UK postcode lookup and geocoder
Stars: ✭ 36 (-56.1%)
Mutual labels:  geocoder, r-package, peer-reviewed
geostan
Bayesian spatial analysis
Stars: ✭ 40 (-51.22%)
Mutual labels:  r-package, rspatial
rdefra
rdefra: Interact with the UK AIR Pollution Database from DEFRA
Stars: ✭ 14 (-82.93%)
Mutual labels:  r-package, peer-reviewed
python-opencage-geocoder
Python module to access the OpenCage geocoding API
Stars: ✭ 54 (-34.15%)
Mutual labels:  opencage, opencage-geocoder
nlrx
nlrx NetLogo R
Stars: ✭ 66 (-19.51%)
Mutual labels:  r-package, peer-reviewed
rdflib
📦 High level wrapper around the redland package for common rdf applications
Stars: ✭ 47 (-42.68%)
Mutual labels:  r-package, peer-reviewed
python-omgeo
OMGeocoder - A python geocoding abstraction layer
Stars: ✭ 34 (-58.54%)
Mutual labels:  geocoder, geocode
roadoi
Use Unpaywall with R
Stars: ✭ 60 (-26.83%)
Mutual labels:  r-package, peer-reviewed
Osmunda
An offline geocode library for android, powered by SQLite, using osm data. 离线地理编码Android库,基于SQLite,使用开放街道地图数据。
Stars: ✭ 37 (-54.88%)
Mutual labels:  geocoder, geocode
oai
OAI-PMH R client
Stars: ✭ 13 (-84.15%)
Mutual labels:  r-package, peer-reviewed
nomisr
Access UK official statistics from the Nomis database through R.
Stars: ✭ 30 (-63.41%)
Mutual labels:  r-package, peer-reviewed
suppdata
Grabbing SUPPlementary DATA in R
Stars: ✭ 31 (-62.2%)
Mutual labels:  r-package, peer-reviewed
geodaData
Data package for accessing GeoDa datasets using R
Stars: ✭ 15 (-81.71%)
Mutual labels:  r-package, rspatial
leaflet-opencage-search
A Leaflet geocoding control that uses the OpenCage geocoding API
Stars: ✭ 18 (-78.05%)
Mutual labels:  geocoder, opencage
geocoder
Geocoder is a Typescript library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations
Stars: ✭ 28 (-65.85%)
Mutual labels:  geocoder, geocode
medrxivr
Access and search medRxiv and bioRxiv preprint data
Stars: ✭ 34 (-58.54%)
Mutual labels:  r-package, peer-reviewed
NLMR
📦 R package to simulate neutral landscape models 🏔
Stars: ✭ 57 (-30.49%)
Mutual labels:  r-package, peer-reviewed
getCRUCLdata
CRU CL v. 2.0 Climatology Client for R
Stars: ✭ 17 (-79.27%)
Mutual labels:  r-package, peer-reviewed
robotstxt
robots.txt file parsing and checking for R
Stars: ✭ 65 (-20.73%)
Mutual labels:  r-package, peer-reviewed
php-opencage-geocode
PHP library to access the OpenCage geocoding API
Stars: ✭ 26 (-68.29%)
Mutual labels:  opencage, opencage-geocoder

opencage

CRAN Version CRAN Checks Status CRAN Downloads per Month R-CMD-check Status on GitHub Actions codecov.io Status rOpenSci Peer-Review License

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 the location (reverse geocoding).

Installation

Install the package with:

install.packages("opencage")

Or install the development version using remotes with:

remotes::install_github("ropensci/opencage")

Quickstart

For the best experience, we recommend that you read through the “Introduction to opencage” vignette (vignette("opencage")), but if you are in a hurry:

  1. Register at opencagedata.com/users/sign_up.
  2. Generate an API key at the OpenCage dashboard.
  3. Save your API key as an environment variable like OPENCAGE_KEY=yourkey in .Renviron. See help(oc_config) for alternative ways to set your OpenCage API key.

Now you are ready to turn place names into latitude and longitude coordinates:

library(opencage)
oc_forward_df(placename = "Sarzeau")
placename oc_lat oc_lng oc_formatted
Sarzeau 47.52877 -2.7642 56370 Sarzeau, France

Or turn a set of coordinates into the name and address of the location:

oc_reverse_df(latitude = 51.5034070, longitude = -0.1275920)
latitude longitude oc_formatted
51.50341 -0.127592 Prime Minister’s Office, 10 Downing Street, Westminster, London, SW1A 2AA, United Kingdom

But remember, the vignettes are really great! We have:

  • “Introduction to opencage” vignette("opencage")
  • “Customise your query” vignette("customise_query")
  • “Output options” vignette("output_options")

About OpenCage

The OpenCage API supports forward and reverse geocoding. Sources of OpenCage are open geospatial data including OpenStreetMap, DataScienceToolkit, GeoPlanet, Natural Earth Data, libpostal, GeoNames, and Flickr’s shapefiles plus a whole lot more besides. Refer to the current full list of credits.

Meta

  • Please report any issues or bugs.
  • License: GPL >= 2
  • Get citation information for opencage in R doing citation(package = 'opencage')
  • Please note that this package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].