New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see
New map style for Google Maps Platform.
GoogleMaps Framework Reference
GMSGeometryIsLocationOnPathTolerance
extern BOOL GMSGeometryIsLocationOnPathTolerance(CLLocationCoordinate2D point,
GMSPath *_Nonnull path,
BOOL geodesic,
CLLocationDistance tolerance)
Returns whether point
lies on or near path
, within the specified tolerance
in meters.
path
is composed of great circle segments if geodesic
is YES, and of rhumb (loxodromic)
segments if geodesic
is NO.
See also GMSGeometryIsLocationOnPath(point, path, geodesic)
.
The tolerance, in meters, is relative to the spherical radius of the Earth. If you need to work
on a sphere of different radius, you may compute the equivalent tolerance from the desired
tolerance on the sphere of radius R: tolerance = toleranceR * (RadiusEarth / R), with
RadiusEarth==6371009.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["Determines if a given location (`point`) is on or near a specified path (`path`) within a certain tolerance distance."],["The path can be composed of great circle segments (geodesic) or rhumb segments (non-geodesic)."],["Tolerance is measured in meters and is relative to the Earth's spherical radius; it can be adjusted for different sphere radii."],["Provides a Boolean result indicating whether the location is on or near the path."]]],[]]