为什么我的地理坐标始终为假?

时间:2012-07-13 22:55:50

标签: geolocation twitter

我正在通过Android手机向@JoeMaxiTaxis发送推文。麻烦的是,坐标根本没有显示出来。

我仔细检查了GPS已启用且该位置已在Twitter应用程序上启用。

以下是我在服务器上的回复:

{ in_reply_to_status_id_str: null,
  contributors: null,
  place: null,
  in_reply_to_screen_name: 'JoeMaxiTaxis',
  text: '@joemaxitaxis lll',
  favorited: false,
  in_reply_to_user_id_str: '634579476',
  coordinates: null,
  geo: null,
  retweet_count: 0,
  created_at: 'Fri Jul 13 22:13:01 +0000 2012',
  source: '<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>',
  in_reply_to_user_id: 634579476,
  in_reply_to_status_id: null,
  retweeted: false,
  id_str: '223902880527167488',
  truncated: false,
  user: 
   { favourites_count: 0,
     friends_count: 0,
     profile_background_color: 'C0DEED',
     following: null,
     profile_background_tile: false,
     profile_background_image_url_https: 'https://si0.twimg.com/images/themes/theme1/bg.png',
     followers_count: 0,
     profile_image_url: 'http://a0.twimg.com/sticky/default_profile_images/default_profile_0_normal.png',
     contributors_enabled: false,
     geo_enabled: true,
     created_at: 'Wed Jul 07 16:19:53 +0000 2010',
     profile_sidebar_fill_color: 'DDEEF6',
     description: '',
     listed_count: 0,
     follow_request_sent: null,
     time_zone: 'Dublin',
     url: null,
     verified: false,
     profile_sidebar_border_color: 'C0DEED',
     default_profile: true,
     show_all_inline_media: false,
     is_translator: false,
     notifications: null,
     profile_use_background_image: true,
     protected: false,
     profile_image_url_https: 'https://si0.twimg.com/sticky/default_profile_images/default_profile_0_normal.png',
     location: 'Dublin, Ireland',
     id_str: '163924257',
     profile_text_color: '333333',
     name: 'Eamonn Hynes',
     statuses_count: 6,
     profile_background_image_url: 'http://a0.twimg.com/images/themes/theme1/bg.png',
     id: 163924257,
     default_profile_image: true,
     lang: 'en',
     utc_offset: 0,
     profile_link_color: '0084B4',
     screen_name: 'rainbowcabs' },
  id: 223902880527167500,
  entities: { user_mentions: [ [Object] ], urls: [], hashtags: [] } }

任何人都可以提供任何见解吗?

1 个答案:

答案 0 :(得分:0)

您的HTTP请求是否获得包含GPS坐标(经度和纬度)的longlat参数?无论你的应用程序使用GPS做什么,如果Twitter没有获得longlat参数,如果你没有“地理位置启用”,Twitter将无法返回你的位置书面推文。