`if (service == "nearest" || service == "locate")` is more common C++ style.