An open API service indexing awesome lists of open source software.

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.

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

[![R-CMD-check](https://github.com/mdsumner/place/workflows/R-CMD-check/badge.svg)](https://github.com/mdsumner/place/actions)
[![CRAN status](https://www.r-pkg.org/badges/version/place)](https://CRAN.R-project.org/package=place)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](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.