🚛
简介
基于 Trimble PC*Miler 引擎的卡车路线规划文档工具,提供精准地理编码与路径计算能力,助力物流运输优化。
原始描述
PCMier REST API provides methods to retrieves a series of geographic coordinates that make up a route.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
Claude Codeunzip -o skill.zip -d ~/.claude/skills/pcmiler/
其它 Agent解压到它自己的 skills 目录,目录名用 pcmiler
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
技能正文
name: pcmiler description: | PCMier REST API provides methods to retrieves a series of geographic coordinates that make up a route. compatibility: Requires network access and valid PCMiler API key metadata: author: nirjhar version: "1.0"
PCMiler
Access the PCMiler REST API with API authentication. Manage truck routing needs.
Quick Start
# Show route report
curl -s -X GET "https://pcmiler.alk.com/apis/rest/v1.0/Service.svc/route/routeReports?stops=-75.173297%2C39.942892%3B-74.83153%2C39.61703%3B-74.438942%2C39.362469&reports=RoutePath" -H "Authorization: $PCMILER_API_KEY"
Example JSON Response
[
{
"__type": "RoutePathReport:http://pcmiler.alk.com/APIs/v1.0",
"RouteID": null,
"type": "Feature",
"geometry": {
"type": "MultiLineString",
"coordinates": [
[
[
-75.173297,
39.942892
],
[
-74.439742,
39.362342
]
]
]
},
"TMinutes": 102,
"TDistance": 74.411,
"properties": null
}
]
# Geocode an address to fir lat/lon
curl -s -X GET "https://pcmiler.alk.com/apis/rest/v1.0/Service.svc/locations?street=1%20Independence%20Way&city=princeton&state=nj&country=US&postcode=08540&postcodeFilter=us®ion=NA&dataset=Current" -H "Authorization: $PCMILER_API_KEY"
Example JSON Response
[
{
"Address": {
"StreetAddress": "1 Independence Way",
"City": "Princeton",
"State": "NJ",
"Zip": "08540",
"County": "Mercer",
"Country": "United States",
"SPLC": null,
"CountryPostalFilter": 0,
"AbbreviationFormat": 0,
"StateName": "New Jersey",
"StateAbbreviation": "NJ",
"CountryAbbreviation": "US"
},
"Coords": {
"Lat": "40.360639",
"Lon": "-74.599867"
},
"Region": 4,
"Label": "",
"PlaceName": "",
"TimeZone": "EST",
"Errors": [],
"SpeedLimitInfo": null,
"ConfidenceLevel": "Exact",
"DistanceFromRoad": null,
"CrossStreet": null,
"TimeZoneOffset": "GMT-5:00",
"TimeZoneAbbreviation": "EST",
"IsDST": false
}
]
Setup
Requires environment variable
PCMILER_API_KEY- PCMiler API Key
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。