Skip to content

An API to return OA (Census output area) data for a given UK point location

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

francisbarton/lonlatapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lonlatapi

{lonlatapi} finds OA (Census output area) data from longitude and latitude data.

It's really slow because it downloads boundary data at every step. It would be a lot quicker if it used the local boundary data that a package like {geographr} provides. But this package would need to be written quite differently.

{lonlatapi} depends on boundr.

Installation

You can install the development version of lonlatapi like so:

devtools::install_github("francisbarton/lonlatapi")

Examples

library(lonlatapi)

find_oa(lon = -1.234, lat = 54.567)
get_full_oa_data(lon = -1.234, lat = 54.567)
oacd <- find_oa(lon = -1.234, lat = 54.567)
get_full_oa_data(oacd)

Further development

Currently lonlatapi only works for a single lonlat supplied. I would like to make it so it could handle a list of lonlats, and efficiently re-use any downloaded boundary data within that list.

About

An API to return OA (Census output area) data for a given UK point location

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages