Hi,

For countries where Geo is supported twitter.com allows you to set the
location you are tweeting from. The place chosen on this screen is the
one entered as the place information in a Tweet. For other
applications this information is set by passing the place_id parameter
when Tweeting. (More info:
http://dev.twitter.com/doc/post/statuses/update )

A quick request for the status from @twitterapi includes an example of
the place attribute:
    twurl 
"/1/statuses/user_timeline.json?screen_name=twitterapi&trim_user=1&count=1"

[
  {
    "coordinates": null,
    "favorited": false,
    "created_at": "Tue Oct 12 17:40:03 +0000 2010",
    "truncated": false,
    "text": "Snowflake is on ice for the moment so no new IDs yet.
We'll post an update to the developer mailing list with more
information soon.",
    "contributors": [
      777925
    ],
    "annotations": null,
    "id": 27159735506,
    "retweet_count": 0,
    "geo": null,
    "retweeted": false,
    "in_reply_to_user_id": null,
    "user": {
      "id": 6253282
    },
    "source": "web",
    "in_reply_to_screen_name": null,
    "place": {
      "name": "Twitter HQ",
      "country": "The United States of America",
      "country_code": "US",
      "attributes": {
        "street_address": "795 Folsom St"
      },
      "url": "http://api.twitter.com/1/geo/id/247f43d441defc03.json";,
      "id": "247f43d441defc03",
      "bounding_box": {
        "coordinates": [
          [
            [
              -122.400612831116,
              37.7821120598956
            ],
            [
              -122.400612831116,
              37.7821120598956
            ],
            [
              -122.400612831116,
              37.7821120598956
            ],
            [
              -122.400612831116,
              37.7821120598956
            ]
          ]
        ],
        "type": "Polygon"
      },
      "full_name": "Twitter HQ, San Francisco",
      "place_type": "poi"
    },
    "in_reply_to_status_id": null
  }
]

Hope that helps,

@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris



On Tue, Oct 12, 2010 at 12:49 PM, D. Smith <emai...@sharedlog.com> wrote:
> I have seen this field in streaming api, but never got a chance to see
> any actual data for this field. Can someone explain to me what usually
> will be the the "place" when it's not null?
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group: 
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to