GPS module for Photon?

Can any one guide me how to use Serial2 in photon with a diagram.?

I refer above link but didn't get any idea..