	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_stop_map);
		Intent i = getIntent();
		String sLocation = i.getStringExtra("location");
		if(sLocation != null && sLocation != ""){
			Log.e("debug", "http://deco3801-005.uqcloud.net/stops-from-location/?location=" +sLocation);
			new StopRequest().execute("http://deco3801-005.uqcloud.net/stops-from-location/?location=" +sLocation);
		}
		else if(servicesConnected()){
			mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
	        mLocationManager.requestLocationUpdates(mLocationManager.getBestProvider(new Criteria(), true),
	        		0, 0, this);
	        currentLocation = mLocationManager.getLastKnownLocation(mLocationManager.
	        		getBestProvider(new Criteria(), true));
	        if(currentLocation != null && currentLocation.getTime() > Calendar.getInstance().
	        		getTimeInMillis() - 2 * 60 * 1000) {
	        	Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());
				String address;
				try {
					address = gcd.getFromLocation(currentLocation.getLatitude(), 
							currentLocation.getLongitude(), 1).get(0).getLocality();
					Log.e("DEBUG", address);
					new StopRequest().execute("http://deco3801-005.uqcloud.net/stops-from-location/?location=" +address);
				} catch (IOException e) {
					e.printStackTrace();
				}
				mLocationManager.removeUpdates(this);
	        }
		}
		setUpMap( null);
	}

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_stop_map);
		Intent i = getIntent();
		String sLocation = i.getStringExtra("location");
		if(sLocation != null && sLocation.length() != 0){
			Log.e("debug", sLocation +"derp");
			new StopRequest().execute("http://deco3801-005.uqcloud.net/stops-from-location/?location=" +sLocation);
		}
		else if(servicesConnected()){
			mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
	        mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
	        		0, 0, this);
	        currentLocation = mLocationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
	        if(currentLocation != null && currentLocation.getTime() > Calendar.getInstance().
	        		getTimeInMillis() - 2 * 60 * 1000) {
	        	Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());
				String address;
				try {
					address = gcd.getFromLocation(currentLocation.getLatitude(), 
							currentLocation.getLongitude(), 1).get(0).getLocality();
					Log.e("DEBUG", address);
					new StopRequest().execute("http://deco3801-005.uqcloud.net/stops-from-location/?location=" +address);
				} catch (IOException e) {
					e.printStackTrace();
				}
				mLocationManager.removeUpdates(this);
	        }
		}
		setUpMap( null);
	}
