Calculate location

Now all data are ordered by proximity.