-
WazeRouteCalculator: 利用Waze API精确计算行驶路线的时间和距离
资源介绍
WazeRouteCalculator
使用Waze API计算实际路线时间和距离。
安装
pip install WazeRouteCalculator
在Python 2.7和3.5、3.6、3.7上测试
例子
import WazeRouteCalculator
logger = logging . getLogger ( 'WazeRouteCalculator.WazeRouteCalculator' )
logger . setLevel ( logging . DEBUG )
handler = logging . StreamHandler ()
logger . addHandler ( handler )
from_address = 'Budapest, Hungary'
to_address = 'Gyor, Hungary'
region = 'EU'
ro