Returns whether point lies inside of path. The path is always considered closed, regardless of
whether the last point equals the first or not.
Inside is defined as not containing the South Pole – the South Pole is always outside.
path describes great circle segments if geodesic is YES, and rhumb (loxodromic) segments
otherwise.
If point is exactly equal to one of the vertices, the result is YES. A point that is not equal
to a vertex is on one side or the other of any path segment – it can never be “exactly on the
border”.
See GMSGeometryIsLocationOnPath() for a border test with tolerance.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[[["\u003cp\u003eDetermines if a given geographical point (latitude/longitude) lies within a specified path on the Earth's surface.\u003c/p\u003e\n"],["\u003cp\u003eConsiders the path closed, irrespective of its last point's connection to the first, and always excludes the South Pole as being outside the path.\u003c/p\u003e\n"],["\u003cp\u003eDefines the path's segments as great circles for geodesic calculations or rhumb lines for non-geodesic ones.\u003c/p\u003e\n"],["\u003cp\u003eReturns true if the point exactly matches a path vertex; otherwise, the point is considered strictly inside or outside the path, not on the border.\u003c/p\u003e\n"],["\u003cp\u003eFor border proximity checks with a tolerance, refer to the separate function \u003ccode\u003eGMSGeometryIsLocationOnPath()\u003c/code\u003e.\u003c/p\u003e\n"]]],["The function `GMSGeometryContainsLocation` determines if a given `point` is within a defined `path`. The path is treated as closed, and the South Pole is always considered outside. The `geodesic` parameter dictates whether the path segments are great circle or rhumb lines. If the `point` matches a path vertex, it's considered inside. A point is always either inside or outside, never exactly on the path's border. `GMSGeometryIsLocationOnPath` provides a border test with tolerance.\n"],null,["# GoogleMaps Framework Reference\n\nGMSGeometryContainsLocation\n===========================\n\n extern BOOL GMSGeometryContainsLocation(CLLocationCoordinate2D point,\n ../Classes/GMSPath.html *_Nonnull path, BOOL geodesic)\n\nReturns whether `point` lies inside of path. The path is always considered closed, regardless of\nwhether the last point equals the first or not.\n\nInside is defined as not containing the South Pole -- the South Pole is always outside.\n\n`path` describes great circle segments if `geodesic` is YES, and rhumb (loxodromic) segments\notherwise.\n\nIf `point` is exactly equal to one of the vertices, the result is YES. A point that is not equal\nto a vertex is on one side or the other of any path segment -- it can never be \"exactly on the\nborder\".\n\nSee `GMSGeometryIsLocationOnPath()` for a border test with tolerance."]]