Package: osdatahub 0.3.0

Chris Jochem

osdatahub: Easier Interaction with the Ordnance Survey Data Hub

Ordnance Survey ('OS') is the national mapping agency for Great Britain and produces a large variety of mapping and geospatial products. Much of OS's data is available via the OS Data Hub <https://osdatahub.os.uk/>, a platform that hosts both free and premium data products. 'osdatahub' provides a user-friendly way to access, query, and download these data.

Authors:Chris Jochem [cre, aut], Ordnance Survey Ltd [cph, fnd]

osdatahub_0.3.0.tar.gz
osdatahub_0.3.0.tar.gz(r-4.7-any)osdatahub_0.3.0.tar.gz(r-4.6-any)
osdatahub_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
osdatahub/json (API)

# Install 'osdatahub' in R:
install.packages('osdatahub', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.70 score 20 scripts 629 downloads 23 exports 17 dependencies

Last updated from:63c12dc5f2. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK174
source / vignettesOK190
linux-release-x86_64OK136
wasm-releaseOK99

Exports:bng_to_geomdownload_os_datapackagesdownload_os_opendataextent_from_bboxextent_from_bngextent_from_geojsonextent_from_polygonextent_from_radiusget_os_keyhas_os_keylist_crslist_ngd_collectionslist_os_datapackageslist_os_opendataquery_mapsquery_namesquery_nearest_namesquery_nearest_placesquery_ngdquery_placesquery_postcode_placesquery_uprn_placesset_os_key

Dependencies:askpasscurlgeojsonsfgeometriesgeoshttrjsonifyjsonlitelibgeosmimeopensslR6rapidjsonrRcppsfheaderssyswk

Common CRS Pitfalls
Specifing the wrong bounding box | Sanity checks | EPSG:4326 and CRS:84

Last update: 2025-04-05
Started: 2025-04-05

How to Define Extents for API Queries
Extent from Polygon | Extent from Bounding Box | Extent from Radius | Extent from National Grid Code

Last update: 2025-04-05
Started: 2023-10-25

Interactive Plotting for API Results
Polygons with Popups | Get Data from the API | Define the Map | Add a Basemap | Add the Data | Add Bounding Box

Last update: 2025-04-05
Started: 2023-10-25

Plotting API Results: sf, tmap, and maptiles
Simple Features Data Frame | maptiles and tmap

Last update: 2025-04-05
Started: 2023-10-25

Using the NGD Features API with R
1. Getting Started | Importing the osdatahub package | Importing your OS Data Hub API Key | Import the osdatahub package | 2. Discovering Collections | 3. Loading NGD Data into a Spatial Data Frame | Requesting NGD Data | Importing into a spatial data frame | 4. Adding Filters | Specifying an Extent (Bounding Box) | Custom Paging Parameters | Applying CQL Filters | 5. Conclusion

Last update: 2025-04-05
Started: 2023-10-25

Readme and manuals

Help Manual

Help pageTopics
Return the geometry of a British National Grid squarebng_to_geom
Download OS premium data packagesdownload_os_datapackages download_os_datapackages.data.frame download_os_datapackages.numeric download_os_datapackages.package_list
Download OS OpenData Productsdownload_os_opendata download_os_opendata.character download_os_opendata.product_list
Create extents from geometriesextent extent_from_bbox extent_from_bng extent_from_geojson extent_from_polygon extent_from_radius
Print the currently accepted EPSG codes.list_crs
Retrieve OS NGD Feature Collectionslist_ngd_collections
Retrieve information on premium OS data packageslist_os_datapackages
Retrieve information on OS OpenData Downloadslist_os_opendata
Query the OS Maps APIquery_maps query_maps.qExtent
Query the OS Names APIquery_names
Query the OS Names APIquery_nearest_names
Query the OS Places APIquery_nearest_places
Query the OS NGD Features APIquery_ngd query_ngd.character query_ngd.geos_geometry query_ngd.qExtent query_ngd.sf query_ngd.sfc
Query the OS Places APIquery_places query_places.character query_places.qExtent
Query the OS Places APIquery_postcode_places
Query the OS Places APIquery_uprn_places
Set credentials for OS Data Hubget_os_key has_os_key set_os_key