https://github.com/mdsumner/place
Captures an Intended Region Specified as a Point and a Width and Height either side.
https://github.com/mdsumner/place
Last synced: 8 months ago
JSON representation
Captures an Intended Region Specified as a Point and a Width and Height either side.
- Host: GitHub
- URL: https://github.com/mdsumner/place
- Owner: mdsumner
- License: other
- Created: 2021-09-04T10:55:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T13:19:14.000Z (almost 3 years ago)
- Last Synced: 2025-04-12T14:55:51.408Z (about 1 year ago)
- Language: R
- Homepage: https://mdsumner.github.io/place/
- Size: 1.11 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# place
[](https://github.com/mdsumner/place/actions)
[](https://CRAN.R-project.org/package=place)
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
The goal of place is to specify a region simply as point (longitude,latitude) and a region around that.
This package does absolutely nothing with this information, but other packages might (get where I'm going ...?).
Data at [virtualearth](http://a0.ortho.tiles.virtualearth.net/tiles/).
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("mdsumner/place")
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r example}
library(place)
## get me outta here
where()
```
Ok, get me somewhere specific.
```{r somewhere}
where(156, 34, wh = 100000) ## 100km either side of that location
```
More useful, give me a defined discretized region around a location.
```{r somewhere-else}
where(147, -42, wh = c(1, 1) * 5000)
place("1 George St, Bathurst NSW", wh = c(1, 1.6) * 15000, dimension = 1024)
```
---
## Code of Conduct
Please note that the place project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.