How to get "Bus Service No" using google api

I have the latitude and longitude of two places. I can get the direction to the destination below the api with mode = transit.

https://maps.googleapis.com/maps/api/directions/json?origin=place_id:ChIJVwkdVbQTrjsRGUkefteUeFk&destination=place_id:ChIJIZo0S_EUrjsR_yPLFVLgvHw&mode=YEY_IURI&APIKI

But it does not return "Bus Service No" as shown on the google map. Google map with bus service

Can we get all the tires between the specified location using google api or any api

+4
source share
1 answer

API Google Maps Directions API mode=transit transit_mode=bus, , .

, , , , :

  • name . . "7 Avenue Express" .

  • color , . , : # FF0033.

  • agencies TransitAgency, .

  • short_name . , "M7" "355" .

  • vehicle , . :

    • name . . "" .

    • type , . . Vehicle Type .

    • icon URL- , .

    • local_icon URL- , , .

. , short_name , , "short_name": "500D",, .

+2

All Articles