java - Twitter4j Query by location + blacklistword -


this question relates twitter4j library

so when doing standard search in twitter, it's possible @apples near:uk

however when creating object query object:

query q = new query("@apples near:uk");  

doesn't work. explain how tweets specific location, uk?

there 2 ways this.

if take @ documentation you'll see can use place ids rather text searches.

for particular case, need geocode search per the documentation.

the search operator “near” isn’t available in api, there more precise way restrict query given location using geocode parameter specified template “latitude,longitude,radius”, example, “37.781157,-122.398720,1mi”.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -