1
我使用scala
和twitter4j
来提取推文。我正在关注this教程。我确实做到了该位置的相同的例子中提到:twitter4j位置过滤器错误
val austinBox = Array(Array(-97.8,30.25),Array(-97.65,30.35))
twitterStream.filter(new FilterQuery().locations(austinBox))
我得到这个错误为:
Error:(64, 54) type mismatch;
found : Array[Array[Double]]
required: Array[Double]
我改变了价值Array[Double]
为:
val austinBox = Array(-97.8,30.25)
twitterStream.filter(new FilterQuery().locations(austinBox))
现在我得到406 error code
这是仅当搜索格式不被接受时才返回。 任何帮助将非常有用。