What is wrong with my polygon location sensor?

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.

Any help would be greatly appreciated.

1 Like

Please see the documentation 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.

1 Like

Also, you’ll want to see this topic:

Thank you for the help really appreciate it.

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