Nearest fix

Adds /nearest endpoint