within_extent {arcgisplaces} | R Documentation |
Search for places within an extent (bounding box).
Description
The /places/within-extent
request searches for places within an extent (bounding box).
Usage
within_extent(
xmin,
ymin,
xmax,
ymax,
search_text = NULL,
category_id = NULL,
icon = NULL,
token = arc_token()
)
Arguments
xmin |
The minimum x coordinate, or longitude, of the search extent in |
ymin |
The minimum y coordinate, or latitude, of the search extent in |
xmax |
The maximum x coordinate, or longitude, of the search extent in |
ymax |
The maximum y coordinate, or latitude, of the search extent in |
search_text |
Default |
category_id |
Default |
icon |
Default |
token |
an object of class |
Details
You must supply the xmin
, ymin
, xmax
and ymax
coordinates to define the extent. The maximum width and height of an extent that can be used in a search is 20,000 meters.
You can also provide multiple categories or search text to find specific types of places within the extent.
Note: You cannot permanently store places. Please see the Terms of use.
Note: Query parameters are case-sensitive.
Value
An sf
object with columns
-
place_id
: The unique Id of this place. The ID can be passed toplace_details()
to retrieve additional details. -
name
: The name of the place, or point of interest. You can search for places by name using the searchText property -
categories
: Adata.frame
with two columnscategory_id
andlabel
. Categories are uniquely identified by a categoryId. For example,17119
identifies a "Bicycle Store" and10051
identifies a "Stadium". Note that a single place can belong to multiple categories (for example, a petrol station could also have a super-market). -
icon
: A character vector of the URL for an icon for this place or category in either svg, cim or png format. -
geometry
: ansfc_POINT
object inEPSG:4326
References
Examples
## Not run:
within_extent(
139.74,
35.65,
139.75,
35.66,
category_ids = "10001"
)
## End(Not run)