[英]What are the different directional profiles in openrouteservice module?
import folium
import openrouteservice
client=openrouteservice.Client(key='apikey')
coordinates = [77.09838732369364, 28.50036408080802]
route = client.directions(coordinates=coordinates,profile='driving-car',format='geojson')
ap_directions = folium.Map(location=[28.50036408080802,77.09838732369364],zoom_start=13,tiles="openstreetmap")
folium.GeoJson(route, name='route').add_to(map_directions)
map_directions.save("testing.html")
in the variable route, what other profiles can the 'profile' argument have (something like bike or walk)??在可变路线中,'profile' 参数还有哪些其他配置文件(例如自行车或步行)?
oh I found the profiles using the help(openrouteservice)
method.哦,我使用
help(openrouteservice)
方法找到了配置文件。 so yeah these are the other profiles ["driving-car", "driving-hgv", "foot-walking","foot-hiking", "cycling-regular","cycling-road","cycling-mountain","cycling-electric",]
所以是的,这些是其他配置文件
["driving-car", "driving-hgv", "foot-walking","foot-hiking", "cycling-regular","cycling-road","cycling-mountain","cycling-electric",]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.