njtierney / maxcovr

Tools in R to make it easier to solve the Maximal Coverage Location Problem
https://njtierney.github.io/maxcovr/
GNU General Public License v3.0
43 stars 12 forks source link

Discussion on extending the API to be more flexible #64

Open njtierney opened 6 years ago

njtierney commented 6 years ago

This could combine approaches used in ompr and prioritizr.

Basically, this looks like this:

coverage_distances(existing = wifi,
                   proposed = property,
                   target = stops) %>%
  add_distance_cutoff(92) %>%
  add_distance_decay(use_gauss(20, 15)) %>%
  add_n_targets(c(100, 200, 300)) %>%
  solve()