k nearest nieghbor problem

nodejs + REST + mysql