diff --git a/R/get-osmdata-df.R b/R/get-osmdata-df.R index bc7c34b..bd20648 100644 --- a/R/get-osmdata-df.R +++ b/R/get-osmdata-df.R @@ -31,12 +31,12 @@ #' #' # Complex query as a string (not possible with regular osmdata functions) #' q <- '[out:csv(::type, ::id, "name:ca", "wikidata")][timeout:50]; -#' area["name"="Països Catalans"][boundary=political]->.boundaryarea; +#' area[name="Països Catalans"][boundary=political]->.boundaryarea; #' #' rel(area.boundaryarea)[admin_level=8][boundary=administrative]; #' map_to_area -> .all_level_8_areas; #' -#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;); +#' ( nwr(area.boundaryarea)[amenity=townhall]; >; ); #' is_in; #' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall; #' diff --git a/R/get-osmdata-sc.R b/R/get-osmdata-sc.R index 71ce041..1b6f784 100644 --- a/R/get-osmdata-sc.R +++ b/R/get-osmdata-sc.R @@ -19,18 +19,18 @@ #' #' # Complex query as a string (not possible with regular osmdata functions) #' q <- '[out:xml][timeout:50]; -#' area["name"="Països Catalans"][boundary=political]->.boundaryarea; +#' area[name="Països Catalans"][boundary=political]->.boundaryarea; #' #' rel(area.boundaryarea)[admin_level=8][boundary=administrative]; #' map_to_area -> .all_level_8_areas; #' -#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;); +#' ( nwr(area.boundaryarea)[amenity=townhall]; >; ); #' is_in; #' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall; #' #' (.all_level_8_areas; - .level_8_areas_with_townhall;); #' rel(pivot); -#' (._;>;); +#' (._; >;); #' out;' #' #' no_townhall <- osmdata_sc (q) diff --git a/R/get-osmdata-sf.R b/R/get-osmdata-sf.R index f743e12..b08169e 100644 --- a/R/get-osmdata-sf.R +++ b/R/get-osmdata-sf.R @@ -18,18 +18,18 @@ #' #' # Complex query as a string (not possible with regular osmdata functions) #' q <- '[out:xml][timeout:50]; -#' area["name"="Països Catalans"][boundary=political]->.boundaryarea; +#' area[name="Països Catalans"][boundary=political]->.boundaryarea; #' #' rel(area.boundaryarea)[admin_level=8][boundary=administrative]; #' map_to_area -> .all_level_8_areas; #' -#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;); +#' ( nwr(area.boundaryarea)[amenity=townhall]; >; ); #' is_in; #' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall; #' #' (.all_level_8_areas; - .level_8_areas_with_townhall;); #' rel(pivot); -#' (._;>;); +#' (._; >;); #' out;' #' #' no_townhall <- osmdata_sf (q) diff --git a/R/get-osmdata-sp.R b/R/get-osmdata-sp.R index e74c30f..6d38c32 100644 --- a/R/get-osmdata-sp.R +++ b/R/get-osmdata-sp.R @@ -26,18 +26,18 @@ #' #' # Complex query as a string (not possible with regular osmdata functions) #' q <- '[out:xml][timeout:50]; -#' area["name"="Països Catalans"][boundary=political]->.boundaryarea; +#' area[name="Països Catalans"][boundary=political]->.boundaryarea; #' #' rel(area.boundaryarea)[admin_level=8][boundary=administrative]; #' map_to_area -> .all_level_8_areas; #' -#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;); +#' ( nwr(area.boundaryarea)[amenity=townhall]; >; ); #' is_in; #' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall; #' #' (.all_level_8_areas; - .level_8_areas_with_townhall;); #' rel(pivot); -#' (._;>;); +#' (._; >;); #' out;' #' #' no_townhall <- osmdata_sp (q) diff --git a/R/get-osmdata-xml.R b/R/get-osmdata-xml.R index 6cd5d33..da8b4d2 100644 --- a/R/get-osmdata-xml.R +++ b/R/get-osmdata-xml.R @@ -27,12 +27,12 @@ #' #' # Complex query as a string (not possible with regular osmdata functions) #' q <- '[out:xml][timeout:50]; -#' area["name"="Països Catalans"][boundary=political]->.boundaryarea; +#' area[name="Països Catalans"][boundary=political]->.boundaryarea; #' #' rel(area.boundaryarea)[admin_level=8][boundary=administrative]; #' map_to_area -> .all_level_8_areas; #' -#' ( nwr(area.boundaryarea)["amenity"="townhall"];>;); +#' ( nwr(area.boundaryarea)[amenity=townhall]; >; ); #' is_in; #' area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall; #' diff --git a/man/osmdata_data_frame.Rd b/man/osmdata_data_frame.Rd index 1235c49..e28dc4c 100644 --- a/man/osmdata_data_frame.Rd +++ b/man/osmdata_data_frame.Rd @@ -46,12 +46,12 @@ attr (hampi_df, "meta") # Complex query as a string (not possible with regular osmdata functions) q <- '[out:csv(::type, ::id, "name:ca", "wikidata")][timeout:50]; - area["name"="Països Catalans"][boundary=political]->.boundaryarea; + area[name="Països Catalans"][boundary=political]->.boundaryarea; rel(area.boundaryarea)[admin_level=8][boundary=administrative]; map_to_area -> .all_level_8_areas; - ( nwr(area.boundaryarea)["amenity"="townhall"];>;); + ( nwr(area.boundaryarea)[amenity=townhall]; >; ); is_in; area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall; diff --git a/man/osmdata_sc.Rd b/man/osmdata_sc.Rd index 71d6716..d34b323 100644 --- a/man/osmdata_sc.Rd +++ b/man/osmdata_sc.Rd @@ -41,18 +41,18 @@ hampi_sf <- opq ("hampi india") \%>\% # Complex query as a string (not possible with regular osmdata functions) q <- '[out:xml][timeout:50]; - area["name"="Països Catalans"][boundary=political]->.boundaryarea; + area[name="Països Catalans"][boundary=political]->.boundaryarea; rel(area.boundaryarea)[admin_level=8][boundary=administrative]; map_to_area -> .all_level_8_areas; - ( nwr(area.boundaryarea)["amenity"="townhall"];>;); + ( nwr(area.boundaryarea)[amenity=townhall]; >; ); is_in; area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall; (.all_level_8_areas; - .level_8_areas_with_townhall;); rel(pivot); - (._;>;); + (._; >;); out;' no_townhall <- osmdata_sc (q) diff --git a/man/osmdata_sf.Rd b/man/osmdata_sf.Rd index 202dfeb..08ff713 100644 --- a/man/osmdata_sf.Rd +++ b/man/osmdata_sf.Rd @@ -40,18 +40,18 @@ hampi_sf <- opq ("hampi india") \%>\% # Complex query as a string (not possible with regular osmdata functions) q <- '[out:xml][timeout:50]; - area["name"="Països Catalans"][boundary=political]->.boundaryarea; + area[name="Països Catalans"][boundary=political]->.boundaryarea; rel(area.boundaryarea)[admin_level=8][boundary=administrative]; map_to_area -> .all_level_8_areas; - ( nwr(area.boundaryarea)["amenity"="townhall"];>;); + ( nwr(area.boundaryarea)[amenity=townhall]; >; ); is_in; area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall; (.all_level_8_areas; - .level_8_areas_with_townhall;); rel(pivot); - (._;>;); + (._; >;); out;' no_townhall <- osmdata_sf (q) diff --git a/man/osmdata_sp.Rd b/man/osmdata_sp.Rd index 479b4e0..018f722 100644 --- a/man/osmdata_sp.Rd +++ b/man/osmdata_sp.Rd @@ -37,18 +37,18 @@ hampi_sp <- opq ("hampi india") \%>\% # Complex query as a string (not possible with regular osmdata functions) q <- '[out:xml][timeout:50]; - area["name"="Països Catalans"][boundary=political]->.boundaryarea; + area[name="Països Catalans"][boundary=political]->.boundaryarea; rel(area.boundaryarea)[admin_level=8][boundary=administrative]; map_to_area -> .all_level_8_areas; - ( nwr(area.boundaryarea)["amenity"="townhall"];>;); + ( nwr(area.boundaryarea)[amenity=townhall]; >; ); is_in; area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall; (.all_level_8_areas; - .level_8_areas_with_townhall;); rel(pivot); - (._;>;); + (._; >;); out;' no_townhall <- osmdata_sp (q) diff --git a/man/osmdata_xml.Rd b/man/osmdata_xml.Rd index 874acb3..e942e8f 100644 --- a/man/osmdata_xml.Rd +++ b/man/osmdata_xml.Rd @@ -42,12 +42,12 @@ osmdata_xml (q, filename = "hampi.osm") # Complex query as a string (not possible with regular osmdata functions) q <- '[out:xml][timeout:50]; - area["name"="Països Catalans"][boundary=political]->.boundaryarea; + area[name="Països Catalans"][boundary=political]->.boundaryarea; rel(area.boundaryarea)[admin_level=8][boundary=administrative]; map_to_area -> .all_level_8_areas; - ( nwr(area.boundaryarea)["amenity"="townhall"];>;); + ( nwr(area.boundaryarea)[amenity=townhall]; >; ); is_in; area._[admin_level=8][boundary=administrative] -> .level_8_areas_with_townhall;