downloading of route details only for current vehicle rather than entire fleet using the Vehicle Location Command

69 views
Skip to first unread message

Harish

unread,
Jan 21, 2015, 1:49:42 AM1/21/15
to nextbus-a...@googlegroups.com
Hi All,
 
Is it possible to get the only one vehicle route details from the next bus by hitting the next bus URL(Vehicle Location Command) in browser instead of getting all vehicles and route info for the agency.
 
Waiting for your valuable reply.
 
Regards,
Harish

Mark Vantzelfde

unread,
Jan 21, 2015, 7:51:34 AM1/21/15
to nextbus-a...@googlegroups.com
There is an r parameter you can submit on the vehicleLocations request to get the info for a single route:

http
://webservices.nextbus.com/service/publicXMLFeed?command=vehicleLocations&a=<agency_tag>&r=<route tag>

--
You received this message because you are subscribed to the Google Groups "NextBus API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextbus-api-dis...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mark Vantzelfde
GIS/NetMasters, Inc.

Harish

unread,
Feb 4, 2015, 3:33:08 AM2/4/15
to nextbus-a...@googlegroups.com
Hi Mark,
 
Thanks for your replay.
 
But we need one vehicle information not one route information.
 
For example we are looking for 1111 vehicle route info ,so is there any way that we can specify the vehicle id in vehiclelocation command query parameter. So we can get the only that vehicle and route details.
 
Looking forward for your valuable inputs.
 
Regards,
Harish
 
On Wednesday, January 21, 2015 at 6:21:34 PM UTC+5:30, MarkV wrote:
There is an r parameter you can submit on the vehicleLocations request to get the info for a single route:

http
://webservices.nextbus.com/service/publicXMLFeed?command=vehicleLocations&a=<agency_tag>&r=<route tag>
On Wed, Jan 21, 2015 at 1:49 AM, Harish <haris...@gmail.com> wrote:
Hi All,
 
Is it possible to get the only one vehicle route details from the next bus by hitting the next bus URL(Vehicle Location Command) in browser instead of getting all vehicles and route info for the agency.
 
Waiting for your valuable reply.
 
Regards,
Harish

--
You received this message because you are subscribed to the Google Groups "NextBus API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextbus-api-discuss+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Adrian Clarke

unread,
Jul 4, 2018, 10:39:19 AM7/4/18
to NextBus API Discussion
Harish,

Try using v=1111 (this works on a vehicleLocation command (note singular not plural) but seems to be ignored on the vehicleLocations command)

With Best Wishes

Adrian
Reply all
Reply to author
Forward
0 new messages