You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -71,30 +76,30 @@ Locations are returned as an sf object with the place ID, the place name, distan
71
76
72
77
::: callout-tip
73
78
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`.
75
80
76
81
:::
77
82
78
83
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.
79
84
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`.
81
86
82
87
```{r message=FALSE}
83
88
details <- place_details(
84
89
coffee$place_id,
85
-
requested_fields = "rating"
90
+
requested_fields = "all"
86
91
)
87
92
88
-
details[c("price", "user")]
93
+
details[c("name", "website")]
89
94
```
90
95
91
96
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.
0 commit comments