# Geofence won't add "inarea" property

**URL:** https://discourse.nodered.org/t/geofence-wont-add-inarea-property/37383
**Category:** General
**Created:** [12 December 2020 01:16 UTC](https://discourse.nodered.org/t/geofence-wont-add-inarea-property/37383 "2020-12-12T01:16:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [12 December 2020 01:16 UTC](https://discourse.nodered.org/t/geofence-wont-add-inarea-property/37383/1 "2020-12-12T01:16:53Z")

</div>

Hi everyone, I'm new here.  
I'm using the flight Radar 24 node into the geofence node with the "inarea" option selected.  
I can see the message and all of the usual objects are there, I just cant see the "inarea" object in the debug tab. The other options inside or outside the area, work fine. Is it just me? 🙂 🙃

Many thanks  
Paul.

Here is the output

```auto
{"id":"2649da5c","registration":"LX-VCL","flight":null,"callsign":"CLX42K","origin":"PIK","destination":"LUX","altitude":39000,"bearing":136,"speed":496,"rateOfClimb":-64,"isOnGround":false,"squawkCode":"1150","model":"B748","modeSCode":"4D0116","radar":"F-EGXU1","isGlider":false,"timestamp":1607733832,"lat":53.136,"lon":1.541,"name":"CLX42K","icon":"plane","iconColor":"#F9DF39","layer":"FlightRadar24"}

```

Here are the nodes

```auto
[{"id":"45b4fad0.b6baf4","type":"inject","z":"bb6b9492.b2d228","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":500,"wires":[["8c835cc0.29652"]]},{"id":"8c835cc0.29652","type":"flightradar24","z":"bb6b9492.b2d228","lat":"52.455","latType":"num","lon":"1.155","lonType":"num","name":"","x":310,"y":500,"wires":[["a1931a45.e582c8","8bac4939.f6c9c8"]]},{"id":"8bac4939.f6c9c8","type":"geofence","z":"bb6b9492.b2d228","name":"MaxRange","mode":"circle","inside":"both","rad":37008.85997626756,"points":[],"centre":{"latitude":52.45726463903304,"longitude":1.15631103515625},"x":290,"y":600,"wires":[["34e2fe4c.f7e3b2","74fb98c0.eaffe8"]]},{"id":"74fb98c0.eaffe8","type":"debug","z":"bb6b9492.b2d228","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1030,"y":740,"wires":[]}]

```

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [12 December 2020 10:50 UTC](https://discourse.nodered.org/t/geofence-wont-add-inarea-property/37383/2 "2020-12-12T10:50:44Z")

</div>

Try changing the `debug` node to display the 'Complete msg object'

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [12 December 2020 11:43 UTC](https://discourse.nodered.org/t/geofence-wont-add-inarea-property/37383/3 "2020-12-12T11:43:35Z")

</div>

Hi zenofmud, I have tried everything it's not there not just not visible.  
Totally stumped

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [12 December 2020 12:25 UTC](https://discourse.nodered.org/t/geofence-wont-add-inarea-property/37383/4 "2020-12-12T12:25:33Z")

</div>

When you display the 'Complete msg object' you will notice a msg.location and in that is msg.location.inarea:  
 ![Screen Shot 2020-12-12 at 7.25.00 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/9/d9320a70c3eb2e0fcb35a152ea7ade093e7bad83.png)  
is that what you are looking for?

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [12 December 2020 13:13 UTC](https://discourse.nodered.org/t/geofence-wont-add-inarea-property/37383/5 "2020-12-12T13:13:39Z")

</div>

Hi zenofmud,  
Thank you I can now see it.  
Did this - ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/9622eeaa875785e2df31455e27ad933c07927519.png)

Can now see this -

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/d/ad7a48f5eddc2832c992305ee84ee97ddb1181e0.png)

Good lesson learned.  
Cheers.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [26 December 2020 13:13 UTC](https://discourse.nodered.org/t/geofence-wont-add-inarea-property/37383/6 "2020-12-26T13:13:55Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
