# Point In Polygon Best Practices

A Point in Polygon (PIP) determines if a point lies inside, outside, or on the boundary of a polygon. Solving a PIP problem can seem simple, however to get the results for the problem with a high accuracy in the most efficient manner, is not always easy.

As far as Spectrum operations, there are a couple of ways to solve the same PIP question. Each solution will vary depending on the type of data you have, if you are doing a batch versus real time processing, and if performance is important.

In order to choose the best approach, there are three considerations: the problem being solved, the Spectrum configuration, and the overall solution design. Each of these must be thought of as you design your PIP solution.

This section will show you how to make informed choices when creating you PIP solution.