String[] params = s.split(",");
if(params[0].equals("$GPRMC")) {
nmea = new HashMap<String, String>();
nmea.put("GPRMC", s);
trackpoint.setLatitude(new Latitude(params[3], Direction.fromValue( params[4])));
trackpoint.setLongitude(new Longitude(params[5], Direction.fromValue( params[6])));
String time = params[1];
String date = params[9];
Calendar cal = GregorianCalendar.getInstance();
cal.set(Calendar.HOUR, Integer.parseInt(time.substring(0, 2)));
cal.set(Calendar.MINUTE, Integer.parseInt(time.substring(2, 4)));