"""
测试利用depedia提取火车站的位置
"""
import requests
data = requests.get('http://dbpedia.org/data/Beijing_Railway_Station.jsod').json()
Lat = data['d']['results'][0]['http://www.w3.org/2003/01/geo/wgs84_pos#lat']
Lon = data['d']['results'][0]['http://www.w3.org/2003/01/geo/wgs84_pos#long']
网友评论