As far as I've understood from my research online, I won't be able to reuse what I already made, since I used k-means clustering and that doesn't allow for constraints. Also, unfortunately, due to being new in Rstudio I have not been able to figure out how to save the code I'm writing, so I only have the results.
I am not looking for someone to do the task for me since that would be too much to ask, I am only looking for advice on which direction to go in or example code that I can use.
Here is an example with GPS coordinates, and daily volume. The volume numbers are randomly generated, since I'm not allowed to share that detailed information with GPS coordinates and demand.
|Volume|X|Y|
|97|12.51967|55.68966|
|63|11.76248632|55.22817757|
|48|12.597756|55.658126|
|51|12.5775499|55.714389|
|51|11.96025237|55.32906261|
|73|11.56769|55.462895|
|98|11.69224481|55.35309093|
|62|12.1439072|55.4160844|
|85|11.70916898|55.75662893|
|40|12.053885|55.63474|
|96|11.7606181|55.23246115|
|100|11.2906625|55.5039675|
|100|11.6377104|54.79746005|
|37|12.09508|55.567875|
|75|12.14944027|55.73692911|
|64|12.60486333|55.6565721|
|39|12.586355|55.6852|
|62|12.526795|55.64821|
|30|12.07475342|56.05974|
|66|12.5574588|55.668512|
|54|12.3786367|55.8142673|
|65|11.60594433|55.93335956|
|85|11.22897852|55.53814945|
|51|11.67932788|55.84426566|
|58|12.107238|55.750439|
|86|12.28674318|55.73087612|
|70|12.22552561|55.57142777|
|62|12.5378231|55.674093|
|99|12.17486523|55.47872497|
|42|12.55751|55.668815|
|96|12.51410104|55.69227432|
|45|11.75333045|55.21850789|