Skip to content

Commit 6586a6d

Browse files
committed
re-render docs
1 parent 2be3119 commit 6586a6d

File tree

6 files changed

+48
-10
lines changed

6 files changed

+48
-10
lines changed

_docs.zip

21.9 MB
Binary file not shown.

dev/attachments.qmd

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "TODO better title: Using Layer Attachments"
3+
uid: attachments
4+
---
5+
6+
feature services can contain attachments associated with individual features in their layers
7+
this is often the case with survey 123
8+
the R-ArcGIS Bridge provides facilities to query, download, and update these attachments
9+
10+
11+
## Querying Attachments
12+
13+
- lists the attachments associated with a feature service
14+
15+
```{r}
16+
query_layer_attachments()
17+
```
18+
19+
## Downloading Attachments
20+
21+
```{r}
22+
tmp <- tempdir()
23+
download_attachments()
24+
```
25+
26+
27+
## Updating Attachments
28+
29+
- requires uploading the attachment
30+
- this example will require owneship of a feature service

dev/generate-docs.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,7 @@ for (i in 1:length(in_fps)) {
8989
ip <- in_fps[[i]]
9090
op <- out_fps[[i]]
9191
cli::cli_alert_info("Rendering # file {i}: {.file {ip}} to {.file {op}}")
92+
# always unset the arcgis token first
93+
arcgisutils::unset_arc_token()
9294
render_qmd_to_md(ip, op)
9395
}

docs/geocode/bulk-geocoding.qmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ The restaurant addresses are contained in the `restaurant_address` column. Pass
4949

5050
```{r message=FALSE}
5151
geocoded <- geocode_addresses(
52-
single_line = restaurants[["restaurant_address"]]
52+
single_line = restaurants[["restaurant_address"]],
53+
.progress = FALSE
5354
)
5455
5556
# preview the first 10 columns
-81.5 KB
Binary file not shown.

docs/places/overview.qmd

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In order to use `{arcgisplaces}` you will need an ArcGIS Developers account. [Ge
1717
`{arcgisplaces}` can be installed directly from R-universe using
1818

1919
```r
20-
install.packages("arcgisplaces", repos = c("https://r-arcgis.r-universe.dev", "https://cloud.r-project.org"))
20+
install.packages("arcgisplaces")
2121
```
2222

2323
## Usage
@@ -62,7 +62,12 @@ set_arc_token(token)
6262
You can **search for places near a location** with `near_point()`.
6363

6464
```{r}
65-
coffee <- near_point(x = -122.334, y = 47.655, search_text = "Coffee")
65+
coffee <- near_point(
66+
x = -122.3408,
67+
y = 47.62045,
68+
search_text = "Coffee"
69+
)
70+
6671
coffee
6772
```
6873

@@ -71,30 +76,30 @@ Locations are returned as an sf object with the place ID, the place name, distan
7176

7277
::: callout-tip
7378

74-
`arcgisplaces` will return an sf object, but the sf package is not required to work with the package. The `sf` print method will not be used unless the package is loaded. If package size is a consideration—i.e. deploying an app in a Docker container—consider using `wk` or `rsgeo`.
79+
`arcgisplaces` will return an sf object, but the sf package is not required to work with the package. The `sf` print method will not be used unless the package is loaded. If package size is a consideration—i.e. deploying an app in a Docker container—consider using `wk` or `geos`.
7580

7681
:::
7782

7883
Details for the places can be fetched using `place_details()`. The possible fields are [documented online](https://developers.arcgis.com/rest/places/place-id-get/#requestedfields) as well as contained in the exported vector `fields`. Because pricing is dependent upon which fields are requested, it is a required argument.
7984

80-
To get the add `requested_fields = "hours"`. Note, that the other possible fields will still be present in the result, but completely empty.
85+
To fiew possible fields for places details use `arcgisplaces::fields`.
8186

8287
```{r message=FALSE}
8388
details <- place_details(
8489
coffee$place_id,
85-
requested_fields = "rating"
90+
requested_fields = "all"
8691
)
8792
88-
details[c("price", "user")]
93+
details[c("name", "website")]
8994
```
9095

9196
Or, you can search for places within a bounding box using `within_extent()`. This could be quite handy for searching within current map bounds, for example.
9297

9398
```{r}
94-
bakeries <- within_extent(
99+
coffee_shops <- within_extent(
95100
-70.356, 43.588, -70.176, 43.7182,
96-
category_id = "13002"
101+
category_id = "4bf58dd8d48988d1e0931735"
97102
)
98103
99-
bakeries[c("name")]
104+
coffee_shops[c("name")]
100105
```

0 commit comments

Comments
 (0)