The answer depends on the sign itself and the number on it.
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 the “Distance to an object” plaque, shows how far away it is. So 500 m means the rest area will be 500 m past the sign