In case I step away again, I thought I would leave an example of this:
The red dot is a gym, and the blue dots are pokestops. You can see how there is a pokestop right next to the gym but on the other side of the cell line. Meanwhile, the portal I highlighted is much further from the gym, but doesn’t appear in Pokemon Go because it is in the same L17 S2 cell as the gym.