@SuppressWarnings("rawtypes")
	public void buildList(JSONObject jo) {
		//build from the JSONObejct a arrayList with stops
		try{
			if(!jo.isEmpty()) {
				Set set = jo.entrySet();
				Iterator i = set.iterator();
				
				int data = set.size();
				int total = 25; 
				double current = StartUpLoader.getInstance().getProcent();
				double stepSize = total/data;
				
				
				while(i.hasNext()) {
					Map.Entry me = (Map.Entry)i.next(); 
					String SpBern = (String) me.getKey();
					double Latitude = 0;
					String TimingPointName = null;
					double Longitude = 0;
					String TimingPointTown = null;
					JSONObject job = (JSONObject) me.getValue();
					Set set2 = job.entrySet();
					Iterator i2 = set2.iterator();
					while(i2.hasNext()) {
						Map.Entry me2 = (Map.Entry)i2.next();
						if(((String) me2.getKey()).equalsIgnoreCase("TimingPointName")) {
							TimingPointName = (String) me2.getValue();
						} else if(((String) me2.getKey()).equalsIgnoreCase("TimingPointTown")) {
							TimingPointTown = (String) me2.getValue();
						} else if(((String) me2.getKey()).equalsIgnoreCase("Latitude")) {
							Latitude = (Double) me2.getValue();
						} else if(((String) me2.getKey()).equalsIgnoreCase("Longitude")) {
							Longitude = (Double) me2.getValue();
						}
					}
					stops.add(new Stop(SpBern, Latitude, TimingPointName, Longitude, TimingPointTown));
					current += stepSize;
					StartUpLoader.getInstance().setProcent((int) current);
 				}
				
			} else {
				System.out.println("JOSNObject containt no values");
			}
		} catch(NullPointerException ne) {
			System.out.println("JOSNObject is null, maybe connection issue");
		}
		
	}