Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample datasets #4

Open
JosiahParry opened this issue Sep 3, 2024 · 1 comment
Open

Sample datasets #4

JosiahParry opened this issue Sep 3, 2024 · 1 comment

Comments

@JosiahParry
Copy link
Contributor

Collect small and medium sized datasets to test the services with.

@rafapereirabr, do you have any publicly available datasets we can use as samples here?

I'm starting off building OD matrix. This supports point, line, and polygon barriers as well.

@rafapereirabr
Copy link

Hi @JosiahParry !

For demonstration and test purposes, I normally use a couple sample data sets we ship with the {r5r} package. These include two data.frames that provide the centroids of some H3 cells (resolution 9) in the cities of São Paulo and Porto Alegre, Brazil. You can read both data sets with the code below. We also ship the Sao Paulo data in r5py.

Please feel free to use these data.

library(r5r)

points_spo <- read.csv(system.file("extdata/spo/spo_hexgrid.csv", package = "r5r"))
points_poa <- read.csv(system.file("extdata/poa/poa_hexgrid.csv", package = "r5r"))

head(points_spo)
#>                id       lon       lat population schools jobs healthcare
#> 1 89a8100c603ffff -46.60797 -23.57110       1146       0 1155          0
#> 2 89a8100c617ffff -46.61108 -23.57249        700       1  463          0
#> 3 89a8100c60fffff -46.60788 -23.56803        377       0  257          0
#> 4 89a8100c607ffff -46.61099 -23.56942        743       0  687          1
#> 5 89a8100c6abffff -46.61409 -23.57082        601       0   29          0
#> 6 89a8100c6a3ffff -46.61719 -23.57221       1097       1  338          0

ps. So glad to see you're working on arcgisrouting :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants