View source: R/osmapiR_objects.R
osmapi_objects | R Documentation |
osmapi_objects constructor
osmapi_objects(x, tag_columns, keep_na_tags = FALSE)
x |
|
tag_columns |
A vector indicating the name or position of the columns representing tags. If missing, it's
assumed that |
keep_na_tags |
If |
An osmapi_objects
Other get OSM objects' functions:
osm_bbox_objects()
,
osm_get_objects()
,
osm_history_object()
,
osm_relations_object()
,
osm_ways_node()
x <- data.frame(
type = c("node", "node", "way"), id = 1:3, name = c(NA, NA, "My way")
)
x$members <- list(NULL, NULL, 1:2)
obj <- osmapi_objects(x, tag_columns = "name")
obj
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.