implement nearby endpoint