Create json location search string from geographies
parse_tojson_location.Rd
Create json location search string from geographies
Examples
parse_tojson_location(example_geography_query()) |> cat()
#>
#> {
#> "locations": {
#> "in": [
#> {
#> "level": "NAT",
#> "code": "E92000001"
#> }
#> ]
#> }
#> }
#> {
#> "locations": {
#> "in": [
#> {
#> "level": "REG",
#> "code": "E12000003"
#> }
#> ]
#> }
#> }