Support "nearest" spatial relation + edges.