To activate a PokéStop or Gym, you need to earn location points by submitting an AR scan of the respective location. The more AR scans you upload, the more location points you'll accumulate, ultimately boosting the PokéStop or Gym to higher levels.