# Waypoints¶

class WaypointManager

Waypoints are the location markers you can see on the map view showing you where contracts are targeted for. With this structure, you can obtain coordinate data for the locations of these waypoints. Obtained by calling waypoint_manager.

waypoints

A list of all existing waypoints.

Attribute: Read-only, cannot be set list(Waypoint) All
add_waypoint(latitude, longitude, body, name)

Creates a waypoint at the given position at ground level, and returns a Waypoint object that can be used to modify it.

Parameters: latitude (double) – Latitude of the waypoint. longitude (double) – Longitude of the waypoint. body (CelestialBody) – Celestial body the waypoint is attached to. name (str) – Name of the waypoint. Waypoint All
add_waypoint_at_altitude(latitude, longitude, altitude, body, name)

Creates a waypoint at the given position and altitude, and returns a Waypoint object that can be used to modify it.

Parameters: latitude (double) – Latitude of the waypoint. longitude (double) – Longitude of the waypoint. altitude (double) – Altitude (above sea level) of the waypoint. body (CelestialBody) – Celestial body the waypoint is attached to. name (str) – Name of the waypoint. Waypoint All
colors

An example map of known color - seed pairs. Any other integers may be used as seed.

Attribute: Read-only, cannot be set dict(str, int) All
icons

Returns all available icons (from “GameData/Squad/Contracts/Icons/”).

Attribute: Read-only, cannot be set list(str) All
class Waypoint

Represents a waypoint. Can be created using WaypointManager.add_waypoint().

body

The celestial body the waypoint is attached to.

Attribute: Can be read or written CelestialBody Flight
name

The name of the waypoint as it appears on the map and the contract.

Attribute: Can be read or written str Flight
color

The seed of the icon color. See WaypointManager.colors for example colors.

Attribute: Can be read or written int Flight
icon

The icon of the waypoint.

Attribute: Can be read or written str Flight
latitude

The latitude of the waypoint.

Attribute: Can be read or written double Flight
longitude

The longitude of the waypoint.

Attribute: Can be read or written double Flight
mean_altitude

The altitude of the waypoint above sea level, in meters.

Attribute: Can be read or written double Flight
surface_altitude

The altitude of the waypoint above the surface of the body or sea level, whichever is closer, in meters.

Attribute: Can be read or written double Flight
bedrock_altitude

The altitude of the waypoint above the surface of the body, in meters. When over water, this is the altitude above the sea floor.

Attribute: Can be read or written double Flight
near_surface

True if the waypoint is near to the surface of a body.

Attribute: Read-only, cannot be set bool Flight
grounded

True if the waypoint is attached to the ground.

Attribute: Read-only, cannot be set bool Flight
index

The integer index of this waypoint within its cluster of sibling waypoints. In other words, when you have a cluster of waypoints called “Somewhere Alpha”, “Somewhere Beta” and “Somewhere Gamma”, the alpha site has index 0, the beta site has index 1 and the gamma site has index 2. When Waypoint.clustered is False, this is zero.

Attribute: Read-only, cannot be set int Flight
clustered

True if this waypoint is part of a set of clustered waypoints with greek letter names appended (Alpha, Beta, Gamma, etc). If True, there is a one-to-one correspondence with the greek letter name and the Waypoint.index.

Attribute: Read-only, cannot be set bool Flight
has_contract

Whether the waypoint belongs to a contract.

Attribute: Read-only, cannot be set bool Flight
contract

The associated contract.

Attribute: Read-only, cannot be set Contract Flight
remove()

Removes the waypoint.

Game Scenes: Flight