I think the 22m rule is only if they are in the same cell. The power stop is in the same cell as is the pokestop. the gym seems closer than 22m