开发者

How to integrate location information into Twitter app?

开发者 https://www.devze.com 2022-12-27 18:31 出处:网络
I\'m trying to get a Twitter iPhone app working using Matt Gemmell\'s M开发者_StackOverflow中文版GTwitterEngine. I can post tweets OK, but I can\'t work out how to attach location data to those tweets

I'm trying to get a Twitter iPhone app working using Matt Gemmell's M开发者_StackOverflow中文版GTwitterEngine. I can post tweets OK, but I can't work out how to attach location data to those tweets... anyone have any idea?


I've never used MGTwitterEngine but from looking at the code, it should be as simple as calling sendUpdate:withLatitude:longitude:. What have you tried? What did and what did not work? Please be more specific.


There is no way to do post tweets with location information with MGTwitterEngine as of now. I am currently working on bringing the library up to date. You can check github.com/freeatnet/MGTwitterEngine/tree/v2-dev for updates. I'll be pushing a commit containing a method for geo-aware updates today.

UPD. See commit @ http://github.com/freeatnet/MGTwitterEngine/commit/512be99cca9f5787192633455300dcd788c7830c for location-aware updates.

Method signatures:

  • (NSString *)sendUpdate:(NSString *)status;
  • (NSString *)sendUpdate:(NSString *)status fromLocationLat:(float)locLat locationLong:(float)locLong;
  • (NSString *)sendUpdate:(NSString *)status inReplyTo:(unsigned long long)updateID fromLocationLat:(float)locLat locationLong:(float)locLong;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号