inst/tinytest/test_om_get.R

expect_silent({res = om_get(c(-61.070, 14.605), r = 600, quiet = TRUE)})
expect_length(res, 8)
expect_inherits(res$zone, "sf")
expect_equivalent(as.numeric(sum(st_area(res$building))), target = 340756.6, tolerance = 1)

Try the maposm package in your browser

Any scripts or data that you put into this service are public.

maposm documentation built on Sept. 17, 2026, 5:08 p.m.