Nearest fix

Addes /nearest endpoint