Code to connect mega arduino and neo 6m gps module by serial port 1

good afternoon ... someone could pass me the code to connect my neo 6m gps module to my mega arduino by any of the serial ports either 1,2 or 3 without using the software softwareserial ... thanks.

yesidm93:
good afternoon ... someone could pass me the code to connect my neo 6m gps module to my mega arduino by any of the serial ports either 1,2 or 3 without using the software softwareserial ... thanks.

You just connect it physically with wires.
Serial1
Serial2
Serial3
are the possible ports

All of the examples in the NeoGPS library will use Serial1 by default (on a Mega). Lots of tips on the Installation and Troubleshooting pages, too.

It's available from the Arduino Library Manager, under the menu Sketch -> Include Library -> Manage Libraries.