added function to get random poles based on location