虽然链接这里显示Herepy库支持这里-API的自行车路由,但我无法使它工作(而car路由很好)。
跑步时:
import herepy
#https://herepy.readthedocs.io/en/latest/herepy.html
lat1,lng1 = 45.575402, -73.209555
lat2,lng2 = 45.595625, -73.619487
routingApi = herepy.RoutingApi('a key', 'another key')
byCar = routingApi.car_route([lat1,lng1],[lat2,lng2],[herepy.RouteMode.car, herepy.RouteMode.fastest])
byBike = routingApi.bicycle_route([lat1,lng1],[lat2,lng2])我得到:
AttributeError: RoutingApi对象没有属性“bicycle_route”
是bicycle_route()函数没有正确实现,还是我在这里做错了什么?
https://stackoverflow.com/questions/58015913
复制相似问题