Eclipse Paths
Eclipse paths suitable for use on digital maps
This API is available on the Pro plan or higher
Please note that solar eclipse path functionality is currently in beta. Please read Known Issues prior to use. These affect some paths which cross extreme latitudes and/or the anti-meridian.
The solar-eclipse/path
end point returns GeoJSON representing the path of a solar eclipse. This data is suitable for display on digital maps or to derive your own geographic representations.
GeoJSON is a simple data format, somewhat similar to KML, used to represent geographic data structures. It is widely supported by map SDKs, including Leaflet and Google Maps.
Request format
Given the midnight UTC on the date of the eclipse, converted to a Julian Day, the request is made as shown:
All arguments are optional, with the exception of JULIAN_DAY(
plus a valid Authorization method).
Request options
Parameter | Default value | Description |
---|---|---|
| None | Required. Midnight UTC of the date of the eclipse, expressed as a Julian Day. |
| 1 | Optional. Controls the longitudinal spacing of path points. Max = 40. For example, SPACING_FACTOR=10 results in points spaced every 0.1°. 1 or even values are recommended. |
|
| Optional. A comma separated list of eclipse path line types. Supported values are:
e.g. |
| 0 | Optional. If |
| 0° | Optional. The minimum true altitude of the Sun relative to the horizon for which path points will be included. The standard is zero degrees, but it may be advantageous to use a small negative value, particularly with lower Note: results may be unpredictable due to lack of convergence of the underlying interpolation logic. |
| None | Optional. A comma-separated list of three |
Example request
The following request generates GeoJSON for the path of the Apr 20 2023, including the central path, limits of totality, limits of partial eclipse, and lines of equal eclipse magnitude (for mag=0.2, 0.4, 0.6, 0.8):
When displayed on a map the output appears as shown:
GeoJSON can generally be styled as desired by setting properties either directly in tools such as geojson.io, or using the styling capabilities of mapping SDKs. For example, this screenshot shows a close up of the path of totality as it crosses Exmouth, Western Australia, with the central path shown in green and the polygon representing the path of totality in pink:
Known Issues
There are no known issues affecting the central path and path of totality for the upcoming Oct 14 2023 and Apr 8 2024 eclipses.
Known issues for eclipse paths include:
Northern or southern limits of partial eclipses, or lines of equal magnitude may be incomplete at extreme latitudes
Eclipses where one or more lines cross the anti-meridian may exhibit inconsistent or incorrect anti-meridian crossing behavior
Rarely, an eclipse path may include one or more 'rogue' points, arising from two sources:
Bad results of mathematical iteration (i.e. the underlying algorithm converges to an incorrect value under rare conditions) - these typically show up as single stray points that appear as a discontinuity in latitude
Zig-zagging due to incorrect merging of separate path segments between moderate and high latitudes
Straight line segments, due to failure of the underlying algorithm to converge as expected. For example north of Siberia for the Aug 12 2026 eclipse.
This endpoint remains in beta while we work to resolve these issues. If you run into anything not mentioned above, please let us know.
Last updated