パッケージ twitter4j.v1
クラス GeoQuery
java.lang.Object
twitter4j.v1.GeoQuery
- すべての実装されたインタフェース:
Serializable
- 導入されたバージョン:
- Twitter4J 2.1.1
- 関連項目:
-
フィールドの概要
フィールド修飾子とタイプフィールド説明final @Nullable String
accuracyfinal @Nullable String
granularityfinal @Nullable String
ipfinal @Nullable GeoLocation
locationfinal int
maxResultsfinal String
query -
メソッドの概要
修飾子とタイプメソッド説明Sets a hint on the "region" in which to search.boolean
geoLocation
(double latitude, double longitude) Creates a GeoQuery with the specified locationgranularity
(@NotNull String granularity) Sets the minimal granularity of data to return.int
hashCode()
maxResults
(int maxResults) Sets a hint as to the number of results to return.static GeoQuery
ofGeoLocation
(double latitude, double longitude) Creates a GeoQuery with the specified locationstatic GeoQuery
Creates a GeoQuery with the specified IP addressstatic GeoQuery
Creates a GeoQuery with the specified query, ip and locationCreates a GeoQuery with the specified query, ip and locationtoString()
-
フィールド詳細
-
location
location -
query
query -
ip
ip -
accuracy
accuracy -
granularity
granularity -
maxResults
public final int maxResultsmaxResults
-
-
メソッドの詳細
-
ofGeoLocation
Creates a GeoQuery with the specified location- パラメータ:
latitude
- latitudelongitude
- longitude- 戻り値:
- GeoQuery
-
geoLocation
Creates a GeoQuery with the specified location- パラメータ:
latitude
- latitudelongitude
- longitude- 戻り値:
- GeoQuery
-
ofIP
Creates a GeoQuery with the specified IP address- パラメータ:
ip
- IP address- 戻り値:
- GeoQuery
-
ip
- パラメータ:
ip
- IP- 戻り値:
- GeoQuery
-
ofQuery
Creates a GeoQuery with the specified query, ip and location- パラメータ:
query
- free-form text to match- 戻り値:
- GeoQuery
-
query
Creates a GeoQuery with the specified query, ip and location- パラメータ:
query
- free-form text to match- 戻り値:
- GeoQuery
-
accuracy
Sets a hint on the "region" in which to search. If a number, then this is a radius in meters, but it can also take a string that is suffixed with ft to specify feet. If this is not passed in, then it is assumed to be 0m. If coming from a device, in practice, this value is whatever accuracy the device has measuring its location (whether it be coming from a GPS, WiFi triangulation, etc.).- パラメータ:
accuracy
- a hint on the "region" in which to search.- 戻り値:
- this instance
-
granularity
Sets the minimal granularity of data to return. If this is not passed in, then neighborhood is assumed. city can also be passed.- パラメータ:
granularity
- the minimal granularity of data to return- 戻り値:
- GeoQuery
-
maxResults
Sets a hint as to the number of results to return. This does not guarantee that the number of results returned will equal max_results, but instead informs how many "nearby" results to return. Ideally, only pass in the number of places you intend to display to the user here.- パラメータ:
maxResults
- A hint as to the number of results to return.- 戻り値:
- this instance
-
equals
-
hashCode
public int hashCode() -
toString
-