# MapFlightEx boolean parameters

**URL:** https://discussions.flightaware.com/t/mapflightex-boolean-parameters/17681
**Category:** AeroAPI
**Created:** [December 4, 2015, 5:35pm UTC](https://discussions.flightaware.com/t/mapflightex-boolean-parameters/17681 "2015-12-04T17:35:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![foxhound6](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@foxhound6](https://discussions.flightaware.com/u/foxhound6)
#### Post date: [December 4, 2015, 5:35pm UTC](https://discussions.flightaware.com/t/mapflightex-boolean-parameters/17681/1 "2015-12-04T17:35:02Z")

</div>

Hi Everyone,  
Using the REST API, I’m trying to generate an image of a flight map similar to the one that’s used on FA’s website. Using MapFlightEx, I’m able to get an image of the flight path, but passing boolean parameters, I’m not sure what’s expected to indicate true/false. For show\_airports and and airports\_expand\_view, I’ve tried 0/1, true/false, and True/False and the images returned don’t seem to respect it (even though I know where the airports are on the map from using MapFlight). Here’s my URL:

```auto

http://flightxml.flightaware.com/json/FlightXML2/MapFlightEx?faFlightID=RPA4370-1449072900-schedule-0001&show_airports=1&airports_expand_view=1

```

Here is the image that’s returned:

[http://imgur.com/ed5cgIS.png](http://imgur.com/ed5cgIS.png)

KMIA should be visible in the bottom right corner. Also the map should be large enough to include the destination of the flight (KPNS in this case).

Link to the relevant part of the documentation:  
[http://flightxml.flightaware.com/soap/FlightXML2/doc#op\_MapFlightEx](http://flightxml.flightaware.com/soap/FlightXML2/doc#op_MapFlightEx)

Thanks in advance.

---

<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: [December 7, 2015, 10:30pm UTC](https://discussions.flightaware.com/t/mapflightex-boolean-parameters/17681/2 "2015-12-07T22:30:08Z")

</div>

We’re investigating this. It’s possible there was a regression that is causing those arguments to get dropped.

---

<div class="post-metadata">

### Author: ![foxhound6](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@foxhound6](https://discussions.flightaware.com/u/foxhound6)
#### Post date: [December 8, 2015, 1:48pm UTC](https://discussions.flightaware.com/t/mapflightex-boolean-parameters/17681/3 "2015-12-08T13:48:06Z")

</div>

Thanks. Glad to know it wasn’t me 😃

---

<div class="post-metadata">

### Author: ![adimic](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@adimic](https://discussions.flightaware.com/u/adimic)
#### Post date: [January 22, 2016, 8:18pm UTC](https://discussions.flightaware.com/t/mapflightex-boolean-parameters/17681/4 "2016-01-22T20:18:44Z")

</div>

**MapFlightEx** should show orig/dest airports by default now, with zoom adjusted to include orig and dest in the picture.  
If you ever want to turn off the airports, then you could use layer\_off {airports}.

Let us know if the maps don’t show up as expected.
