If I were you, I would analyze the whole file to get a list of stores. classified by X and then Y.
Then, to get a list of nearby stores, simply grab them from the list.
I am sure that you will not be able to get stores on the fly without parsing your file.
Another way is to send a request to the server, to which you will answer only with the nearest stores! Each task performed on a portable device, such as an iphone, requires a lot of time and battery than if it were done on a server.
source share