0

我的代码使用最后一个 TweetInvi API 失败。为了使它工作,我必须将它与 AddTrack 结合起来。

以下代码仅在我取消注释“stream.AddTrack()”时才有效。

var stream = Stream.CreateFilteredStream();
stream.AddLocation(new Coordinates(-180, 90), new Coordinates(180, -90));
//stream.AddTrack("xbox");

stream.MatchingTweetReceived += (sender, args) =>
{
}
4

1 回答 1

1

正如我在 github 上提到的,问题是您没有Coordinates正确使用该类。

您只需反转您的坐标纬度和经度。

stream.AddLocation(new Coordinates(90, -180), new Coordinates(-90, 180));
于 2016-09-10T00:38:53.987 回答