Skip to content

Commit

Permalink
per cran note remove licence column from readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jessecambon committed Apr 19, 2021
1 parent c01cbaa commit bec56b3
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 32 deletions.
8 changes: 6 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,15 @@ ggplot(lat_longs, aes(longitude, latitude), color = "grey99") +

To perform reverse geocoding (obtaining addresses from geographic coordinates), we can use the `reverse_geocode()` function. The arguments are similar to the `geocode()` function, but now we specify the input data columns with the `lat` and `long` arguments. The dataset used here is from the geocoder query above. The single line address is returned in a column named by the `address` argument and all columns from the geocoder service are returned because `full_results = TRUE`. See the `reverse_geo()` function documentation for more details.

<!--
Removing the licence column is done just to prevent a note from
occurring in automated CRAN checks for an improper/old link.
-->
```{r}
reverse <- lat_longs %>%
select(-addr) %>%
reverse_geocode(lat = latitude, long = longitude, method = 'osm',
address = address_found, full_results = TRUE)
address = address_found, full_results = TRUE) %>%
select(-addr, -licence)
```

```{r, echo = FALSE}
Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,23 @@ a column named by the `address` argument and all columns from the
geocoder service are returned because `full_results = TRUE`. See the
`reverse_geo()` function documentation for more details.

<!--
Removing the licence column is done just to prevent a note from
occurring in automated CRAN checks for an improper/old link.
-->

``` r
reverse <- lat_longs %>%
select(-addr) %>%
reverse_geocode(lat = latitude, long = longitude, method = 'osm',
address = address_found, full_results = TRUE)
address = address_found, full_results = TRUE) %>%
select(-addr, -licence)
```

| name | latitude | longitude | address\_found | place\_id | licence | osm\_type | osm\_id | osm\_lat | osm\_lon | historic | house\_number | road | city | state | postcode | country | country\_code | boundingbox | tourism | neighbourhood | county | building | suburb |
|:---------------------|---------:|-----------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------|----------:|:-------------------------------------------------------------------------|:----------|----------:|:-------------------|:--------------------|:------------|:--------------|:------------------------------|:--------------|:---------------------|:---------|:--------------|:--------------|:-----------------------------------------------------|:---------------------|:-------------------|:--------------|:-------------|:-------|
| White House | 38.89770 | -77.03655 | White House, 1600, Pennsylvania Avenue Northwest, Washington, District of Columbia, 20500, United States | 147370893 | Data © OpenStreetMap contributors, ODbL 1.0. <https://osm.org/copyright> | way | 238241022 | 38.897699700000004 | -77.03655315 | White House | 1600 | Pennsylvania Avenue Northwest | Washington | District of Columbia | 20500 | United States | us | 38.8974908 , 38.897911 , -77.0368537, -77.0362519 | NA | NA | NA | NA | NA |
| Transamerica Pyramid | 37.79520 | -122.40279 | Transamerica Pyramid, 600, Montgomery Street, Financial District, San Francisco, San Francisco City and County, San Francisco, California, 94111, United States | 95364489 | Data © OpenStreetMap contributors, ODbL 1.0. <https://osm.org/copyright> | way | 24222973 | 37.795200550000004 | -122.40279267840137 | NA | 600 | Montgomery Street | San Francisco | California | 94111 | United States | us | 37.7948854 , 37.7954472 , -122.4031399, -122.4024317 | Transamerica Pyramid | Financial District | San Francisco | NA | NA |
| Willis Tower | 41.87887 | -87.63591 | Willis Tower, 233, South Wacker Drive, Printer’s Row, Loop, Chicago, Cook County, Illinois, 60606, United States | 103673983 | Data © OpenStreetMap contributors, ODbL 1.0. <https://osm.org/copyright> | way | 58528804 | 41.878871700000005 | -87.63590893936448 | NA | 233 | South Wacker Drive | Chicago | Illinois | 60606 | United States | us | 41.8785389 , 41.8791932 , -87.6363362, -87.6354746 | NA | Printer’s Row | Cook County | Willis Tower | Loop |
| name | latitude | longitude | address\_found | place\_id | osm\_type | osm\_id | osm\_lat | osm\_lon | historic | house\_number | road | city | state | postcode | country | country\_code | boundingbox | tourism | neighbourhood | county | building | suburb |
|:---------------------|---------:|-----------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------|----------:|:----------|----------:|:-------------------|:--------------------|:------------|:--------------|:------------------------------|:--------------|:---------------------|:---------|:--------------|:--------------|:-----------------------------------------------------|:---------------------|:-------------------|:--------------|:-------------|:-------|
| White House | 38.89770 | -77.03655 | White House, 1600, Pennsylvania Avenue Northwest, Washington, District of Columbia, 20500, United States | 147370893 | way | 238241022 | 38.897699700000004 | -77.03655315 | White House | 1600 | Pennsylvania Avenue Northwest | Washington | District of Columbia | 20500 | United States | us | 38.8974908 , 38.897911 , -77.0368537, -77.0362519 | NA | NA | NA | NA | NA |
| Transamerica Pyramid | 37.79520 | -122.40279 | Transamerica Pyramid, 600, Montgomery Street, Financial District, San Francisco, San Francisco City and County, San Francisco, California, 94111, United States | 95364489 | way | 24222973 | 37.795200550000004 | -122.40279267840137 | NA | 600 | Montgomery Street | San Francisco | California | 94111 | United States | us | 37.7948854 , 37.7954472 , -122.4031399, -122.4024317 | Transamerica Pyramid | Financial District | San Francisco | NA | NA |
| Willis Tower | 41.87887 | -87.63591 | Willis Tower, 233, South Wacker Drive, Printer’s Row, Loop, Chicago, Cook County, Illinois, 60606, United States | 103673983 | way | 58528804 | 41.878871700000005 | -87.63590893936448 | NA | 233 | South Wacker Drive | Chicago | Illinois | 60606 | United States | us | 41.8785389 , 41.8791932 , -87.6363362, -87.6354746 | NA | Printer’s Row | Cook County | Willis Tower | Loop |

## In the Wild

Expand Down
2 changes: 1 addition & 1 deletion docs/articles/tidygeocoder.html

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

36 changes: 16 additions & 20 deletions docs/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articles:
developer_notes: developer_notes.html
geocoder_services: geocoder_services.html
tidygeocoder: tidygeocoder.html
last_built: 2021-04-19T17:09Z
last_built: 2021-04-19T17:57Z
urls:
reference: https://jessecambon.github.io/tidygeocoder/reference
article: https://jessecambon.github.io/tidygeocoder/articles
Expand Down
Binary file modified docs/reference/figures/README-usamap-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 docs/reference/reverse_geocode.html

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

Binary file modified man/figures/README-usamap-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bec56b3

Please sign in to comment.