optimizing query to use index on latitude,longitude