山区项目公共数据api的python包装器

MountainProjectPublicA的Python项目详细描述


这个包是mountain项目公共数据api的包装器:https://www.mountainproject.com/data

使用:pip install mountainprojectpublicapi安装

必需的包:json,请求

可用功能:

getuser(key,userid=,email=)

Return genral user information as JSON dictionary
args: 
     - key: your private key
    - userId: Id of user to return
    - email: email of user to return
return: genral user information as JSON dictionary

getticks(key,userid=”,email=”,startpos=0)

Return up to 200 of the user's most recent ticks.
args: 
    - key: your private key
    - userId: Id of user to return
    - email: email of user to return
    - startPos: The starting index of the list to return. Defaults to 0.
returns: Users ticks as JSON dictionary

gettods(key,userid=,email=,startpos=0)

 Return up to 200 of the user's TODOs
 args: 
     - key: your private key
     - userId: Id of user to return
     - email: email of user to return
     - startPos: The starting index of the list to return. Defaults to 0.
 returns: User's TODOs as JSON dictionary

获取路由(密钥,路由ID)

 Return details for up to 200 routes.
 args: 
     - key: your private key
     - routeIds: A comma-separated list of route IDs, up to 100
 returns: details for up to 200 routes as JSON dictionary

getroutesforlatlon(key,lat,lon,maxdistance=30,maxresults=50,mindiff=“5.0”,maxdiff=“5.16”)

 Return routes for a given query
 args: 
     - key: your private key
     - lat - Latitude for a given area
     - lon - Longitude for a given area
     - maxDistance: Max distance, in miles, from lat, lon. Default: 30. Max: 200.
     - maxResults:  Max number of routes to return. Default: 50. Max: 500.  
     - minDiff:  Min difficulty of routes to return, e.g. 5.6 or V0.
     - maxDiff:  Max difficulty of routes to return, e.g. 5.10a or V2.
 returns: details for up to 200 routes as JSON dictionary

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java可以从struts传递<param/>。xml作为隐藏参数?   带有文件字符串的java建议   安卓中带有用户名和密码的java RTSP流   eclipse如何在我的java代码中导入CSVreader特性?无论出于什么原因,我都不能使用cvsreader功能   Java类型推断在编译时失败,但Eclipse编译并运行良好   SpringBootJava。木卫一。IOException weblogic。乌提尔斯。编译器。ToolFailureException   在Spark中排序时出现java NotSerializableException   java在整数数组中查找缺少的数字   Angular 4中的AES 128加密和Java中的解密   显示GUI的java问题   java不包括ant build in javadocs中的文件   关闭弹出窗口后关闭java平台| JavaFX   java使用for循环还是while循环进行迭代?   java如何使用POI Apache获取生成的Excel文件中列的大小或长度   java Thornttail ArquillianTest,带有用于pactProvider测试的h2数据库   为什么XPATH(Java7)选择了太多的节点?   在自定义远程webapp上将数据附加到我的HDFS时发生java异常   xml如何在java多模块项目中创建bean entityManagerFactoryBean?   ConcurrentHashMap中的java死锁   Tomcat Java内存选项保存在哪个文件中