The sign itself and the number on it decide the answer.
is a service sign: it tells you there is a rest area ahead. Out of town, such signs may be placed in advance, a few hundred meters before the facility; the number on the sign, like a “Distance to an object” plaque, shows how far away it is. So 500 m means the rest area is 500 m past the sign