# What is wrong with my polygon location sensor?

**URL:** https://community.thunkable.com/t/what-is-wrong-with-my-polygon-location-sensor/2093986
**Category:** Questions about Thunkable X
**Created:** [October 22, 2022, 2:59am UTC](https://community.thunkable.com/t/what-is-wrong-with-my-polygon-location-sensor/2093986 "2022-10-22T02:59:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jakesoccer08dyn1ti](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jakesoccer08dyn1ti](https://community.thunkable.com/u/jakesoccer08dyn1ti)
#### Post date: [October 22, 2022, 2:59am UTC](https://community.thunkable.com/t/what-is-wrong-with-my-polygon-location-sensor/2093986/1 "2022-10-22T02:59:41Z")

</div>

I’m just wondering if anyone is able to tell me what is wrong with my code, I’m kind of a beginner and I don’t know much.

Basically my idea is to set up a perimeter using a persons current location as a centre point.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/4/84ac11ee61278f6f5068fede06264a254fb6d5de.png)

Any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [October 22, 2022, 4:08am UTC](https://community.thunkable.com/t/what-is-wrong-with-my-polygon-location-sensor/2093986/2 "2022-10-22T04:08:26Z")

</div>

Please see the [documentation](https://docs.thunkable.com/map#add-polygon) for the addPolygon block.

You’ll need to set it up the same way as in the screenshot provided in that link. There isn’t a property called “Latitude and Longitude” so your current blocks aren’t going to work.

Since you’re using the GetCurrentLocation block, you can put the green latitude and longitude blocks in place of the integer values shown in the Create Object blocks in the documentation.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [October 22, 2022, 4:25am UTC](https://community.thunkable.com/t/what-is-wrong-with-my-polygon-location-sensor/2093986/3 "2022-10-22T04:25:05Z")

</div>

Also, you’ll want to see this topic:

> [@Polygon in the form of a circle](https://community.thunkable.com/t/polygon-in-the-form-of-a-circle/1642580):
>
> Hello. I ask for the help of the collective mind: is it possible to draw a circle on the map, in the center of which will be the current location of the user? those. we draw a polygon consisting, for example, of 24 points, which are at an equal distance from the center. Maybe someone has an idea how to implement this? Thanks!

---

<div class="post-metadata">

### Author: ![jakesoccer08dyn1ti](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jakesoccer08dyn1ti](https://community.thunkable.com/u/jakesoccer08dyn1ti)
#### Post date: [October 22, 2022, 4:36am UTC](https://community.thunkable.com/t/what-is-wrong-with-my-polygon-location-sensor/2093986/4 "2022-10-22T04:36:17Z")

</div>

Thank you for the help really appreciate it.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [January 20, 2023, 4:36am UTC](https://community.thunkable.com/t/what-is-wrong-with-my-polygon-location-sensor/2093986/5 "2023-01-20T04:36:51Z")

</div>

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