原来
here API
可以提供以下信息:
curl \
-X GET \
-H 'Content-Type: *' \
--get 'https://transit.api.here.com/v3/route.json' \
--data-urlencode 'dep=52.521504,13.41126' \
--data-urlencode 'arr=52.515829,13.45395' \
--data-urlencode 'time=2018-11-19T07:30:00' \
--data-urlencode 'app_id=devportal-demo-20180625' \
--data-urlencode 'app_code=9v2BkviRwi9Ot26kp2IysQ' \
--data-urlencode 'routing=tt'
将返回这样的json(节选)
"Journey": {
"duration": "PT6M",
"Stop": [
{
"dep": "2018-11-19T07:51:00",
"Stn": {
"id": "vbb_900100704",
"name": "S+U Alexanderplatz [U5]",
"x": 13.41311,
"y": 52.521607
}
},
{
"dep": "2018-11-19T07:53:00",
"Stn": {
"id": "vbb_900100017",
"name": "U Schillingstr.",
"x": 13.421893,
"y": 52.520313
}
},
{
"dep": "2018-11-19T07:55:00",
"Stn": {
"id": "vbb_900120006",
"name": "U Strausberger Platz",
"x": 13.432212,
"y": 52.518029
}
}
]
}