最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google maps api 3 - Routes API is not returning the train route - Stack Overflow

programmeradmin3浏览0评论

I am using route API :computeRoutes

This is the body I am sending

"origin": {
"address": "Delhi"
 },
 "destination": {
 "address": "Prayagraj"
 },
 "travelMode": "TRANSIT",
 "transitPreferences": {
 "allowedTravelModes": ["TRAIN", "RAIL"]
 },
 "computeAlternativeRoutes": true
 }

But I am not getting train route in the API, just the driving route How can I get the train route

If I am selecting the same destination then google maps is giving the train info properly

发布评论

评论列表(0)

  1. 暂无评论