@Override
	protected URI buildUri() {
		String path = "statuses/sample.json";

		if (StringUtils.hasText(track) || StringUtils.hasText(follow) || StringUtils.hasText(locations)) {
			path = "statuses/filter.json";
		}

		URIBuilder b = URIBuilder.fromUri(API_URL_BASE + path);

		if (delimited) {
			b.queryParam("delimited", "length");
		}

		if (stallWarnings) {
			b.queryParam("stall_warnings", "true");
		}

		if (!FilterLevel.none.equals(filterLevel)) {
			b.queryParam("filter_level", filterLevel.toString());
		}

		if (StringUtils.hasText(getLanguage())) {
			b.queryParam("language", getLanguage());
		}

		if (StringUtils.hasText(track)) {
			b.queryParam("track", track);
		}

		if (StringUtils.hasText(follow)) {
			b.queryParam("follow", follow);
		}

		if (StringUtils.hasText(locations)) {
			b.queryParam("locations", locations);
		}
		return b.build();
	}
Bound the returned tweets by location(s).
extensions/spring-xd-extension-twitter/src/main/java/org/springframework/integration/x/twitter/TwitterStreamChannelAdapter.java