【推特】Twitter地理推文数据分析(东京20万地理标记推特数据展示)

获取了2016年东京20万地理标记的推特数据,在arcgis中打开看看

 

推文可以与某个位置相关联,生成已经“地理标记”的推文。可以使用Twitter用户界面或使用API​​发布推文来分配推文位置。推文位置可以是一个精确的“点”位置,也可以是带有“边界框”的Twitter位置,该边界框描述了从场地到整个区域的更大区域。有两个“根级”JSON对象用于描述与推文相关的位置:coordinatesplace

place当Tweet被地理标记时,该对象始终存在,而coordinates当为Tweet分配确切位置时,该对象仅存在(非空)。如果提供了确切的位置,则该coordinates对象将提供具有地理坐标的[long,lat]数组,并且将分配与该位置对应的Twitter Place。

实例

Tweet with Twitter Place

{
  "geo": null,
  "coordinates": null,
  "place": {
    "id": "07d9db48bc083000",
    "url": "https://api.twitter.com/1.1/geo/id/07d9db48bc083000.json",
    "place_type": "poi",
    "name": "McIntosh Lake",
    "full_name": "McIntosh Lake",
    "country_code": "US",
    "country": "United States",
    "bounding_box": {
      "type": "Polygon",
      "coordinates": [
        [
          [
            -105.14544,
            40.192138
          ],
          [
            -105.14544,
            40.192138
          ],
          [
            -105.14544,
            40.192138
          ],
          [
            -105.14544,
            40.192138
          ]
        ]
      ]
    },
    "attributes": {
      
    }
  }
}

Tweet with exact location

{
  "geo": {
    "type": "Point",
    "coordinates": [
      40.74118764,
      -73.9998279
    ]
  },
  "coordinates": {
    "type": "Point",
    "coordinates": [
      -73.9998279,
      40.74118764
    ]
  },
  "place": {
    "id": "01a9a39529b27f36",
    "url": "https://api.twitter.com/1.1/geo/id/01a9a39529b27f36.json",
    "place_type": "city",
    "name": "Manhattan",
    "full_name": "Manhattan, NY",
    "country_code": "US",
    "country": "United States",
    "bounding_box": {
      "type": "Polygon",
      "coordinates": [
        [
          [
            -74.026675,
            40.683935
          ],
          [
            -74.026675,
            40.877483
          ],
          [
            -73.910408,
            40.877483
          ],
          [
            -73.910408,
            40.683935
          ]
        ]
      ]
    },
    "attributes": {
      
    }
  }
}



猜你喜欢

转载自blog.csdn.net/qq_912917507/article/details/89485552