I want to find the nearest neighbors of a point q given either spatial information or spatio-temporal information. To do this I want to create a B-tree index with keys based on either Z-order curve or Hilbert-curve. However, I have seen that Hilbert-curves are harder to implement than Z-order. My question is:
Is it worth to use Hilbert-curves over Z-order curves in nearest neighbor queries?