The nearest jobs for each candidate

A job board or a recruiting agency has vacancies with a workplace address and candidates with a home address. One command geocodes both lists and gives each candidate the nearest vacancies within a radius.

New Places and zones Command line

Nearest vacancies within 20 km

terminalCLI
gridpin nearest candidates.csv jobs.csv --sheet france.bin --k 3 --max-km 20 \
    --rows-column address --list-column address
outputreal
id,address,gp_lat,gp_lon,gp_precision,gp_weak,nearest_id,nearest_distance_m,nearest_lat,nearest_lon,nearest_rank
C001,"8 Rue Jules Hemet, 77144 Montévrain",48.87476,2.744577,house,false,J0886,609.6,48.879927,2.747364,1
C001,"8 Rue Jules Hemet, 77144 Montévrain",48.87476,2.744577,house,false,J0749,1312.4,48.874606,2.726633,2
C001,"8 Rue Jules Hemet, 77144 Montévrain",48.87476,2.744577,house,false,J0617,1685.0,48.883683,2.725954,3

Each candidate gets up to --k rows, nearest first; nearest_id is the id of the vacancy. The example lists are addresses of the sheet of France around Paris standing in for vacancies and candidates: 100 candidates against 1 003 vacancies take 0.3 seconds on a laptop.

What to watch

A vacancy marked remote or without an address has no point and is left out of the list, with a note of how many; an address in another country than the sheet gets no answer. The distance is a straight line, not a commute: a river or a motorway is not counted. Check gp_weak: a candidate placed only by town has a town's point.