GPS interfacing woes

Hello! I'm using an arduino UNO to interface GPS and GSM together. I want to ask if that's possible as I've used the SoftwareSerial library and I'm using different pins for Rx and Tx of GPS and pins 0 and 1 (standard rx and tx) for the GSM. All I want to do is get the gps latitude and longitude and send it to a number using GSM. Here's my code-

#include <SoftwareSerial.h>
#include <TinyGPS.h>
TinyGPS gps;
SoftwareSerial ss(4,3);// Setting rx and tx for gps 
int c;
int i=0;
unsigned long t1;
unsigned long time;
float dat[2];//for storing lat and long


void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
ss.begin(4800);
Serial.print("\r");
 delay(1000);
  Serial.print("AT+CMGF=0\r");
  delay(1000);
}

void loop() {
  // put your main code here, to run repeatedly:
t1 = millis() / 1000;//This code generates the repeated delay of 1 minute. After each 1 minute the message(); function is called.
  while (((millis() / 1000) - t1) < 60);
  time++;

  if (time == 1) {
    message();
    time = 0;
}
}

void message()
{
  while(ss.available())
 {
   
   int c = ss.read();
    Serial.println(c);
    }
 
   if(gps.encode(c))
   {
     long lat, lng;
     gps.get_position(&lat,&lng);
      dat[0]=lat;
     dat[1]=lng;
     i=0;
     Serial.print("Latitude: ");
     Serial.println(lat);
     Serial.print("Longitude: ");
     Serial.println(lng);
     Serial.println();
   }
while(i<2){

dat[i]=dat[i]+48;//Convert to ASCII for sending to GSM
}
Serial.print("AT+CMGS=\"+918275256645\"\r");    //Number to which you want to send the sms
  delay(1000);
   for(i=0;i<2;i++)
   {
   Serial.print("Sending data");
   Serial.print(dat[i]);//The text of the message to be sent
   }
  Serial.print("");
  delay(1000);
  Serial.write(0x1A);
  delay(1000); 
}

And here's my output-

AT+CMGF=0
37
32
1
134
132
165
228
134
198
199
198
198
196
198
193
70
199
134
70
131
1
33
192
192
196
198
199
198
197
198
198
197
134
64
130
1
64
193
132
164
134
199
196
37
198
198
135
135
196
228
132
133
133
133
196
198
227
37
98
37
32
32
134
199
134
65
131
1
33
192
196
198
198
198
199
198
198
135
64
131
65
193
132
165
199
196
39
198
198
134
196
228
133
196
36
36
135
196
70
135
195
132
167
243

This is showing nothing. It sometimes shows -1 too. I think either it's unable to get a fix or my code and connections are wrong.

I've nex robotics mt3329 gps module. whenever I search the specs and configuration for this module, all I get is the mediatek mt3329 module, which has way more number of pins than the one I have. I found the nex robotics mt3333 module information which matches with my gps module. here's the link for it-

I did connections as per shown in the webpage, except I just connected my defined rx pin of arduino (pin 4) to the tx of gps. pulled up the enable, and grounded both the gnd pins of gps. Connected the vcc to 5V o/p of arduino.
Where did I go wrong?