21 Recipes for Mining Twitter 2013. 5. 27 Yong-Jin Jeong Soo-jin Shin LINK@KOREATECH .

Post on 29-Mar-2015

213 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

Transcript

21 Recipes for

Mining Twitter

2013. 5. 27

Yong-Jin JeongSoo-jin Shin

LINK@KOREATECHhttp://link.koreatech.ac.kr

1.21 Geocoding Locations from Profiles (or Elsewhere)

• Problem – You want to geocode information in tweets for

situations beyond what the /geo and /status resources currently support.

• Solution – Use the geopy package to perform your own

geocoding against your web service of choice, such as Google Maps.

• Geocoding–지역 이름 -> 위도 , 경도 좌표

• Easy_install geopy• https://github.com/geopy/geopy

1.21 Geocoding Locations from Profiles (or Elsewhere)

1.21 Geocoding Locations from Profiles (or Elsewhere)

1.21 Geocoding Locations from Profiles (or Elsewhere)

http://maps.googleapis.com/maps/api/geocode/json?address=cheonan&sensor=false

1.21 Geocoding Locations from Profiles (or Elsewhere)

<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.0"> <Folder> <name>Geocoded user profiles for Twitter search results for koreatech</name> <Placemark> <Style> <LineStyle> <color>cc0000ff</color> <width>5.0</width> </LineStyle> </Style> <name>Seoul</name> <Point> <coordinates>126.9779692,37.566535,0</coordinates> </Point> </Placemark></Folder> </kml>

KML 은 구글어스 (Google Earth), 구글맵(Google Maps), 모바일 구글맵 (Google Maps for mobile) 등 어스 브라우저에 지리정보를 표시하는데 사용되는 파일 포맷

1.21 Geocoding Locations from Profiles (or Elsewhere)

https://maps.google.co.kr/kml 확장자 파일의 사용

1.21 Geocoding Locations from Profiles (or Elsewhere)

Google map api 사용

1.21 Geocoding Locations from Profiles (or Elsewhere)

top related