简体   繁体   English

openrouteservice 模块中有哪些不同的方向配置文件?

[英]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.

相关问题 Django:为学生和导师创建模型的最佳方法是什么,他们都有不同的配置文件? - Django: what is the best way to create models for students and tutors and both of them have different profiles? 与 openrouteservice 的连接中止 - Connection Aborted with openrouteservice 多个配置文件的认证配置文件模块问题 - auth profile module problems with multiple profiles 我可以将python模块作为可重用模块运送的不同方法是什么 - What are different ways I can ship python module as a reusable module 在一个应用程序中创建两个不同的配置文件 - Creating two different profiles in one application 在 Django 中如何获取存储在配置文件模块中的特定用户数据 - In Django how to get specific user's data stored in profiles module 如何用两个不同的配置文件扩展Django用户模型? - How to extend Django User model with two different profiles? 如何从两个不同的python模块调用变量(双向) - How to call variables from two different python modules(bi-directional) 在模块级别和函数范围内运行时,什么会导致此代码产生不同的结果? - What would cause this code to produce different results when running at the module level versus in the scope of a function? 在 openrouteservice.org 使用 POI 服务时出现 KeyError 错误 - KeyError error using POIs service at openrouteservice.org
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM