2018-10-10简单的测试代码
2018-10-10 本文已影响0人
微雨旧时歌丶
"""
测试利用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']