* {@inheritDoc}
*/
public Place createPlace(String name, String containedWithin, String token, GeoLocation location, String streetAddress) throws TwitterException {
ensureAuthorizationEnabled();
List<HttpParameter> params = new ArrayList<HttpParameter>(3);
params.add(new HttpParameter("name", name));
params.add(new HttpParameter("contained_within", containedWithin));
params.add(new HttpParameter("token", token));
params.add(new HttpParameter("lat", location.getLatitude()));
params.add(new HttpParameter("long", location.getLongitude()));
if (streetAddress != null) {
params.add(new HttpParameter("attribute:street_address", streetAddress));
}
return factory.createPlace(post(conf.getRestBaseURL() + "geo/place.json"
, params.toArray(new HttpParameter[params.size()])));
}