You are given JSON data file that contains a list of objects representing geographic points, with a lat, lon and id. Write a Python script that will take an integer argument n, then read the file and output the ids of all the points, grouped into n groups, into a second file, groups.json. That file should be formatted as a list of lists with similar dictionaries to the points.json file.
When grouping addresses to produce our daily routes, it's important that each van has roughly the same number of stops to make in a day. Do the same as above, with one final optimization - optimize for both geographical proximity, using the function in the first stretch goal, and for equal group size for each van.