# Sample code needed to return Flight Route

**URL:** <https://discussions.flightaware.com/t/sample-code-needed-to-return-flight-route/18789>\
**Category:** AeroAPI\
**Created:** [July 26, 2016, 6:07pm UTC](https://discussions.flightaware.com/t/sample-code-needed-to-return-flight-route/18789 "2016-07-26T18:07:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yiyangao](https://avatars.discourse-cdn.com/v4/letter/y/b2d939/32.png) [@yiyangao](https://discussions.flightaware.com/u/yiyangao)\
**Post date:** [July 26, 2016, 6:07pm UTC](https://discussions.flightaware.com/t/sample-code-needed-to-return-flight-route/18789/1 "2016-07-26T18:07:26Z")

</div>

Hello,

I am new to the programming paradise, is it possible to provide a sample code (NetBeans) on how to implement FlightRouteStruct for a given FlightID?

Thank you in advance.

Yiyan

---

<div class="post-metadata">

**Author:** ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)\
**Post date:** [July 26, 2016, 7:18pm UTC](https://discussions.flightaware.com/t/sample-code-needed-to-return-flight-route/18789/2 "2016-07-26T19:18:00Z")

</div>

Have you already used the existing Java netbeans example to connect to FlightXML using SOAP? Once you have that example working, altering to use the other functions is not difficult.

Look halfway down on [flightaware.com/commercial/flig … ation2.rvt](https://flightaware.com/commercial/flightxml/documentation2.rvt)
