     lattitude=gps.location.lat();
     ThingSpeak.setField(2,longtitude);
     ThingSpeak.setField(3,lattitude);
-    ThingSpeak.writeFields(myChannelNumber, myWriteAPIKey); 
+    ThingSpeak.writeFields(myChannelNumber, myWriteAPIKey);
   }
   else
   {

//for collecting GPS data and transfering longtitude and lattitude to thingspeak 
//arduino 2 

#include <TinyGPS++.h>
#include <SoftwareSerial.h>

#define USE_WIFI101_SHIELD
#include <SPI.h>
#include <WiFi.h>
char ssid[] = "*******";    //  your network SSID (name)
char pass[] = "*******";   // your network password
int status = WL_IDLE_STATUS;

WiFiClient  client;

unsigned long myChannelNumber = ******;
const char * myWriteAPIKey = "******";

static const int RXPin = 2, TXPin = 3;
float lattitude,longtitude;
static const uint32_t GPSBaud = 9600;

// The TinyGPS++ object
