Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

VATSIM route


Martin Creighan 1387735
 Share

Recommended Posts

Martin Creighan 1387735
Posted
Posted

I am wondering whether someone can give me a pointer to how I can obtain the route I have filed in the form of a line of text.

 

I regularly stream on twitch and a number of viewers wish to fly the same route. I would like to be able to get my bot (ankhbot in this case) to be able to respond to the command !route and return the route I have filed on VATSIM so that they can copy it into their flight plan.

 

I have seen people using $readapi(http://metar.vatsim.net/metar.php?id=$msg) to return the metar of a particular airport. Is there something similar to provide the route?

 

Many thanks in anticipation

Link to comment
Share on other sites

Trent Hopkinson
Posted
Posted

https://vatstats.net/pilots/1387735 for your flights (click "View flight" for the route details)

 

This will update roughly every 2 to 5 minutes usually.

 

https://vatstats.net/ to search other pilots previous flights.

qfafin.png

Trent Hopkinson YMML. www.youtube.com/musicalaviator WorldFlight 2002,2008,2009, 2011, 2012, 2013 & 2015

Link to comment
Share on other sites

Ryan Savara 1369362
Posted
Posted

Edit: totally read the question wrong.

 

Vatsim has no api to access a current route. You'll have to see if a third party website that has an API you can use.

Senior Student (S3)

Chicago ARTCC Events Coordinator

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted

Do you or someone you know have access to a web host with some sort of scripting language (e.g. PHP)? VATSIM does provide a datafeed with information such as the route from your flight plan, but you'd have to use your own host to do a little work on the datafeed (e.g. download/cache it for 2-3 minutes to be a friendly user as well as parsing it to get the info you want).

 

Note that the route is from your current flight plan and will reflect any updates made to it by ATC (such as when you're issued a shortcut).

Link to comment
Share on other sites

Ryan Savara 1369362
Posted
Posted

After doing a bit more digging, here are a few possible solutions:

 

If you have your own webserver, you can host this project, which provides an API: https://github.com/xpguru17/VATSIM-API

 

Another option is to use VATEUD's API, however it requires manually updating what callsign you are using (which is almost just as pointless as manually updating the command with the route for the day): http://api.vateud.net/#toc_20

 

Other than that I don't see much other options. You could always just update the command every day to have the current route in it

Senior Student (S3)

Chicago ARTCC Events Coordinator

Link to comment
Share on other sites

 Share