Add another endpoint for calculating nearest points.