Ran into a small problem with that last one.  Apparently you can't set a 'radius' param is rankby=distance.