Twitter Unit - Get Geo location of twitt

19 May '13, 04:52 PM
26,777 Views
No Forum Badges

Hello,

I'm currently working with twitter unit and would like to get the geo location of twitts(if they have it).

As I understood currently there is no output like this in twitter unit, so I tried to find out how to get it, as I understood twitter unit working with twitter4j library, this library supports get request for location (.getPlace). So I tried to add it to twitter unit, I added in TwitterTwitt.java next lines

private Place place; ...... public TwitterTweet(Status tweet) { ..... this.place = tweet.getPlace(); } ..... public TwitterTweet(String statusId, String userId, String user, String text, Place place, GregorianCalendar createAt) { ..... this.place=place; } ..... public Place getPlace() { return place; }

and after that I also added new line of output into output.template

and now when I'm trying to get information from twitter unit (getTweetDetailsByID) and using twitt id which contains geo location it still doesn't show information about "place".

Do you know what can be a problem? Thank you!

 
x 0
Follow
Answer Answer at this question and get points!
No Forum Badges

Hello,

the items in the WebRatio Store can be customized by the users. In this case, you wish to add the geo localization of the tweets.

The executed operations seem to be corrected. The information about the Place is added in the class representing the tweet and also as an output parameter of the unit. Additionally, the Place has to be added in the result bean of the unit. You should check if the TwitterUnitService java class, in the method which saves the tweet details, contains the instruction to put the Place in the unit bean. For example:

bean.put("place", tweet.getPlace());

   
x 0
Answer at this question and get points!

Related questions

Add to Bag link in ACME Any way to localize the Tab Grid Template (Webratio Store)? Ayuda Simple List Component Layout personalizado Button to go on another page Can not get generate and run option for DataService Project Como se usa la componente paypal en web ratio? Componente de pagos paypal Could not open the editor: This copy of WebRatio is not registered Creación DB Apache Derby - Modelado BPMN Criptare dati sensibili nel database CSV Component with utf8 encoding Custom components Custom descriptors Custom Plug-in Custom Time Unit Custom Unit and AJAX / SOAP Custom Unit: Difficult example in Guide ... any suggestions? Data flow from a page which is not visible anymore Dependencies installation error Dynamic link labelling for Custom Unit Encoding Confirm Dialog Examples at WebRatio 7.2 (Acme, BookStore, ...) Examples of WebRatio (Acme) Facebook login and personalization Facebook Unit file analysis then update MySQL database Geolocalizzazione con Twitter Component Google map is not shown properly in the tab grid Google Map Unit Graph Component Problem Guardar Saltos de LINEA How can I add a credit card payment gateway or integrate paypal in my web app logic? how can i open a pdf file using download dialog How can I see the administration page of bookstore example on the cloud? How complex can Custom Unit output be? How to modify the FertileEnviroment Default page How to run the example from Custom Unit Guide? How to scale a image? How to use GoogleGeocoding Add-on Is there any custom unit store or repository? Do you create/sell custom units? java.lang.NullPointerException More Custom Unit questions: example of Content and Operation Unit? Need help with Landmark Overlays for Google Map Unit. Personalizzazione del login component Problema Invocation Unit Problems with Custom components: Can't get values from output parameters on ok flow. Problems with the page refresh (Tab Grid) Problem with adding templates "Run Now" on a job scheduled to run later Selezione sul giorno "Events Planning" Statistics Component for WebRatio > 7.2.0 Status ProcessInstance and activityInstance in spanish Stored procedure component store problme Target tabs in Tab Grid Control Usage of the Gantt Unit ¿Visor de imágenes y reproductor de video para la versión 7.2? Image viewer and video player for version 7.2? Web project without initial login form - how to create custom logins? Webratio - Add-ons Webratio Add-ons no permite login Web Ratio Add-ons shop not working Webratio don't recognize JSON library Web Ratio Mobile plateform Macos Sierra WebRation Store connection problem WebRatio Platform 7.2 Community Cloud Edition When stars web ratio between dofollow and nofollow backlink has affected? Where can i find ifml sample with webratio? Where is the ACME demo data stored?! which of these three models is closer to webratio/ifml way of creating web applications