Pixhawk GPS pinout

Writing this down for future me. I’m assembling a drone using some old parts and could not find the pinout to this GPS / compass combo:

For reference, with the antenna pointing up and looking at the connector, then the pins from left to right are:
- GND
- TX
- RX
- VCC
- SDA
- SCL
The connector seems to be a JST-SH 1.0 mm socket. VCC goes to a regulator. Surprisingly, if you connect 5 V to SCL then the GPS still runs correctly which confused me for a while.
The markings on the board are NEO-M8N-0-01 and HG-C04_V1.1. The antenna is a
Cirocomm. I suspect it came with a Pixhawk or Pixracer kit.