danielmewes / php-rql

A PHP client driver for the RethinkDB query language (ReQL).
http://php-rql.dnsalias.net/
339 stars 60 forks source link

getNearest options not working #154

Open h1k3 opened 7 years ago

h1k3 commented 7 years ago

The following does not work. It shoots back an error saying maxDist not recognized optional parameter. Is there a slight change to spelling that I'm not aware of or something? I want to change the distance to user defined and also change the number of records received. Any help with finding the updated parameters? Thank you in advance, Lance $secretBase = r\point(-122.422876,37.777128); r\table('hideouts')->getNearest($secretBase, array('index' => 'location', 'maxDist' => 5000) )->run($conn)