add failure method for ajax nearby query