On streaming API results there are three location responses; coordinates,place and geo.
I am assuming that if tweet is sent by e.g. iphone then coordinates are there. If it's sent from web, twitter doesn't know the exact coordinates, so it gives a Place bounding box.
I couldn't understand the difference between top level geo & coordinates fields, they appear to be the same thing, but sometimes those values are different then each other. Sometimes order is different sometimes values.
I couldn't find a documentation on this, could u tell me what is the difference between them ? and is my assumption correct on bounding box?
Thanks, Devrim
[coordinates] => Array (
[type] => Point
[coordinates] => Array (
[0] => -87.9
[1] => 42.95
)
)
[place] => Array (
[bounding_box] => Array (
[type] => Polygon
[coordinates] => Array (
[0] => Array (
[0] => Array (
[0] => -87.925183
[1] => 42.922616
)
[1] => Array (
[0] => -87.882582
[1] => 42.922616
)
[2] => Array (
[0] => -87.882582
[1] => 42.961715
)
[3] => Array (
[0] => -87.925183
[1] => 42.961715
)
)
)
)
[geo] => Array (
[type] => Point
[coordinates] => Array (
[0] => 42.95
[1] => -87.9
)
)