Added distance as an optional third parameter to location search

Added distance as an optional third parameter to the location search. I needed this for one of my applications, so I added the change along with a couple rspec tests.