getNearest functions get a new parameter "relativeTo". Minor edits in documentation