Skip to content

Commit

Permalink
Update docs and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Jul 19, 2024
1 parent 91e1b79 commit 26d9c11
Show file tree
Hide file tree
Showing 37 changed files with 54 additions and 40 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/recheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Workflow derived from https://github.com/r-devel/recheck
on:
workflow_dispatch:
inputs:
which:
type: choice
description: Which dependents to check
options:
- strong
- most

name: r-devel reverse dependency check

jobs:
revdep_check:
name: Reverse check ${{ inputs.which }} dependents
uses: r-devel/recheck/.github/workflows/recheck.yml@v1
with:
which: ${{ inputs.which }}

7 changes: 2 additions & 5 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ message: 'To cite package "nominatimlite" in publications use:'
type: software
license: MIT
title: 'nominatimlite: Interface with ''Nominatim'' API Service'
version: 0.4.0.9000
version: 0.4.1
doi: 10.32614/CRAN.package.nominatimlite
abstract: Lite interface for getting data from 'OSM' service 'Nominatim' <https://nominatim.org/release-docs/latest/>.
Extract coordinates from addresses, find places near a set of coordinates and return
Expand All @@ -28,7 +28,7 @@ preferred-citation:
orcid: https://orcid.org/0000-0001-8457-4658
doi: 10.32614/CRAN.package.nominatimlite
year: '2024'
version: 0.4.0.9000
version: 0.4.1
url: https://dieghernan.github.io/nominatimlite/
abstract: Lite interface for getting data from OSM service Nominatim <https://nominatim.org/release-docs/latest/>.
Extract coordinates from addresses, find places near a set of coordinates and
Expand Down Expand Up @@ -105,9 +105,6 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0002-4035-0289
year: '2024'
identifiers:
- type: url
value: https://arxiv.org/abs/1403.2805
version: '>= 1.7.0'
- type: software
title: sf
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: nominatimlite
Title: Interface with 'Nominatim' API Service
Version: 0.4.0.9000
Version: 0.4.1
Authors@R: c(
person("Diego", "Hernangómez", , "[email protected]", role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0001-8457-4658")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nominatimlite (development version)
# nominatimlite 0.4.1

- Fix input validation in `geo_address_lookup()` and `geo_address_lookup_sf()`
that crashes the function if the OSM ID is too long (#47 reported by
Expand Down
2 changes: 1 addition & 1 deletion R/geo_address_lookup.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Address lookup API for OSM elements
#' Address lookup API
#'
#' @description
#' The lookup API allows to query the address and other details of one or
Expand Down
2 changes: 1 addition & 1 deletion R/geo_address_lookup_sf.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Address lookup API for OSM elements in \CRANpkg{sf} format
#' Address lookup API in \CRANpkg{sf} format
#'
#' @description
#' The lookup API allows to query the address and other details of one or
Expand Down
2 changes: 1 addition & 1 deletion R/geo_lite.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Address search API for OSM elements (free-form query)
#' Address search API (free-form query)
#'
#' @description
#' Geocodes addresses given as character values. This function returns the
Expand Down
2 changes: 1 addition & 1 deletion R/geo_lite_sf.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Address search API for OSM elements in \CRANpkg{sf} format (free-form query)
#' Address search API in \CRANpkg{sf} format (free-form query)
#'
#' @description
#' This function allows you to geocode addresses and returns the corresponding
Expand Down
2 changes: 1 addition & 1 deletion R/geo_lite_struct.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Address search API for OSM elements (structured query)
#' Address search API (structured query)
#'
#' @description
#' Geocodes addresses already split into components. This function returns the
Expand Down
2 changes: 1 addition & 1 deletion R/geo_lite_struct_sf.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Address search API for OSM elements in \CRANpkg{sf} format (structured query)
#' Address search API in \CRANpkg{sf} format (structured query)
#'
#' @description
#' Geocodes addresses already split into components and return the corresponding
Expand Down
2 changes: 1 addition & 1 deletion R/reverse_geo_lite.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Reverse geocoding API for OSM elements
#' Reverse geocoding API
#'
#' @description
#'
Expand Down
2 changes: 1 addition & 1 deletion R/reverse_geo_lite_sf.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Reverse geocoding API for OSM elements in \CRANpkg{sf} format
#' Reverse geocoding API in \CRANpkg{sf} format
#'
#' @description
#'
Expand Down
10 changes: 4 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ results](https://badges.cranchecks.info/worst/nominatimlite.svg)](https://cran.r
[![R-CMD-check](https://github.com/dieghernan/nominatimlite/actions/workflows/check-full.yaml/badge.svg)](https://github.com/dieghernan/nominatimlite/actions/workflows/check-full.yaml)
[![R-hub](https://github.com/dieghernan/nominatimlite/actions/workflows/rhub.yaml/badge.svg)](https://github.com/dieghernan/nominatimlite/actions/workflows/rhub.yaml)
[![codecov](https://codecov.io/gh/dieghernan/nominatimlite/branch/main/graph/badge.svg?token=jSZ4RIsj91)](https://app.codecov.io/gh/dieghernan/nominatimlite)
[![r-universe](https://dieghernan.r-universe.dev/badges/nominatimlite)](https://dieghernan.r-universe.dev/nominatimlite)
[![CodeFactor](https://www.codefactor.io/repository/github/dieghernan/nominatimlite/badge)](https://www.codefactor.io/repository/github/dieghernan/nominatimlite)
[![Project Status: Active -- The project has reached a stable, usable state and
is being actively
Expand Down Expand Up @@ -95,8 +94,7 @@ You can install the developing version of **nominatimlite** with:
remotes::install_github("dieghernan/nominatimlite")
```

Alternatively, you can install **nominatimlite** using the
[r-universe](https://dieghernan.r-universe.dev/nominatimlite):
Alternatively, you can install **nominatimlite** using the **r-universe**:

```{r, eval=FALSE}
# Install nominatimlite in R:
Expand All @@ -114,7 +112,7 @@ install.packages("nominatimlite",

With **nominatimlite** you can extract spatial objects easily:

```{r pizzahut}
```{r pizzahut, fig.alt="Locations of Pizza Hut restaurants in California extracted with nominatimlite"}
library(nominatimlite)
# Extract some points - Pizza Hut in California
Expand All @@ -136,14 +134,14 @@ ggplot(CA) +
You can also extract polygon and line objects (as provided by the Nominatim API)
using the option `points_only = FALSE`:

```{r statue_liberty }
```{r statue_liberty, fig.alt="Location of Statue of Liberty extracted with nominatimlite"}
sol_poly <- geo_lite_sf("Statue of Liberty, NY, USA", points_only = FALSE) # a building - a polygon
ggplot(sol_poly) +
geom_sf()
```

```{r line-object}
```{r line-object, fig.alt="Different features named Ohio extracted with nominatimlite"}
dayton <- geo_lite_sf("Dayton, OH") # default - a point
ohio_state <- geo_lite_sf("Ohio, USA", points_only = FALSE) # a US state - a polygon
ohio_river <- geo_lite_sf("Ohio river", points_only = FALSE) # a river - a line
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ results](https://badges.cranchecks.info/worst/nominatimlite.svg)](https://cran.r
[![R-CMD-check](https://github.com/dieghernan/nominatimlite/actions/workflows/check-full.yaml/badge.svg)](https://github.com/dieghernan/nominatimlite/actions/workflows/check-full.yaml)
[![R-hub](https://github.com/dieghernan/nominatimlite/actions/workflows/rhub.yaml/badge.svg)](https://github.com/dieghernan/nominatimlite/actions/workflows/rhub.yaml)
[![codecov](https://codecov.io/gh/dieghernan/nominatimlite/branch/main/graph/badge.svg?token=jSZ4RIsj91)](https://app.codecov.io/gh/dieghernan/nominatimlite)
[![r-universe](https://dieghernan.r-universe.dev/badges/nominatimlite)](https://dieghernan.r-universe.dev/nominatimlite)
[![CodeFactor](https://www.codefactor.io/repository/github/dieghernan/nominatimlite/badge)](https://www.codefactor.io/repository/github/dieghernan/nominatimlite)
[![Project Status: Active – The project has reached a stable, usable
state and is being actively
Expand Down Expand Up @@ -79,7 +78,7 @@ remotes::install_github("dieghernan/nominatimlite")
```

Alternatively, you can install **nominatimlite** using the
[r-universe](https://dieghernan.r-universe.dev/nominatimlite):
**r-universe**:

``` r
# Install nominatimlite in R:
Expand Down Expand Up @@ -116,7 +115,7 @@ ggplot(CA) +
geom_sf(data = pizzahut, col = "red")
```

<img src="man/figures/README-pizzahut-1.png" width="100%" />
<img src="man/figures/README-pizzahut-1.png" alt="Locations of Pizza Hut restaurants in California extracted with nominatimlite" width="100%" />

You can also extract polygon and line objects (as provided by the
Nominatim API) using the option `points_only = FALSE`:
Expand All @@ -128,7 +127,7 @@ ggplot(sol_poly) +
geom_sf()
```

<img src="man/figures/README-statue_liberty-1.png" width="100%" />
<img src="man/figures/README-statue_liberty-1.png" alt="Location of Statue of Liberty extracted with nominatimlite" width="100%" />

``` r
dayton <- geo_lite_sf("Dayton, OH") # default - a point
Expand All @@ -141,7 +140,7 @@ ggplot() +
geom_sf(data = ohio_river, color = "blue")
```

<img src="man/figures/README-line-object-1.png" width="100%" />
<img src="man/figures/README-line-object-1.png" alt="Different features named Ohio extracted with nominatimlite" width="100%" />

### Geocoding and reverse geocoding

Expand Down Expand Up @@ -217,7 +216,7 @@ A BibTeX entry for LaTeX users is
doi = {10.32614/CRAN.package.nominatimlite},
author = {Diego Hernangómez},
year = {2024},
version = {0.4.0.9000},
version = {0.4.1},
url = {https://dieghernan.github.io/nominatimlite/},
abstract = {Lite interface for getting data from OSM service Nominatim <https://nominatim.org/release-docs/latest/>. Extract coordinates from addresses, find places near a set of coordinates and return spatial objects on sf format.},
}
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/dieghernan/nominatimlite",
"issueTracker": "https://github.com/dieghernan/nominatimlite/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.4.0.9000",
"version": "0.4.1",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -220,7 +220,7 @@
},
"applicationCategory": "cartography",
"keywords": ["r", "geocoding", "openstreetmap", "address", "nominatim", "reverse-geocoding", "rstats", "shapefile", "r-package", "spatial", "cran", "api-wrapper", "api", "gis"],
"fileSize": "252.444KB",
"fileSize": "250.421KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
2 changes: 1 addition & 1 deletion inst/schemaorg.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"url": "https://cran.r-project.org"
},
"runtimePlatform": "R version 4.4.1 (2024-06-14 ucrt)",
"version": "0.4.0.9000"
"version": "0.4.1"
},
{
"id": "https://doi.org/10.32614/CRAN.package.nominatimlite",
Expand Down
Binary file modified man/figures/README-line-object-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-pizzahut-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion man/geo_address_lookup.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/geo_address_lookup_sf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/geo_lite.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/geo_lite_sf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/geo_lite_struct.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/geo_lite_struct_sf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/reverse_geo_lite.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/reverse_geo_lite_sf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified pkgdown/favicon/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion vignettes/nominatimlite.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ggplot(CA) +
geom_sf(data = pizzahut, col = "red")
```

![Pizza Hut in California](../man/figures/README-pizzahut-1.png){width="100%"}
![Locations of Pizza Hut in California](../man/figures/README-pizzahut-1.png){width="100%"}

You can also extract polygon and line objects (if available) using the option
`points_only = FALSE`:
Expand Down
2 changes: 1 addition & 1 deletion vignettes/nominatimlite.Rmd.orig
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ ggplot(CA) +
geom_sf(data = pizzahut, col = "red")
```

![Pizza Hut in California](../man/figures/README-pizzahut-1.png){width="100%"}
![Locations of Pizza Hut in California](../man/figures/README-pizzahut-1.png){width="100%"}

You can also extract polygon and line objects (if available) using the option
`points_only = FALSE`:
Expand Down

0 comments on commit 26d9c11

Please sign in to comment.