you can create a field like 25N22E (using lat and lon degrees) next to each city, then you can search for all cities with that value, this will give you a list of "candidates", then calculate distance from your position to each candidate, looking for the minimum distance. You can use a pytagorical formula for this.