Updated getNearest to include optional limit

getNearest can now be limited to just chosen locations, or to search all
locations

Also fixed a potential null pointer exception in MetaWarchService
triggered by not finding a 'nearest' location