added autodetect for search by distance from