topographyObject
The topography object describes the spatial environment resources move through. Rather than an internal route network, Spiral can use external services for precise travel and distance calculation.
Define legislature in every map. Beyond the regulatory rules it names, it bounds where work can
happen: anything outside every declared region is not serviced — see
legislatureObject.
{
"geometry": FLAT | WGS84,
"precision": <real>,
"resolution": <real>,
"fractalDimension": <real> | null,
}
-
geometryFLAT | WGS84defaultFLAT - Coordinate system: flat Cartesian or spherical.
-
precisionrealdefault0.000001 - Accuracy of the coordinates Spiral OUTPUTS — meeting points and every stop location it reports. Input positions keep their own accuracy, and a request to the travel calculator carries the full input accuracy, not this.
-
resolutionrealdefault10 - Distance (m) within which two locations count as the same place. Used only to decide whether an additional job is deployed as being at an existing job's location; it does not touch resource positions or travel estimates.
-
cachecacheObject - Travel / distance cache configuration.
-
fractalDimensionrealdefault1.2 - Converts straight-line distance to a realistic travel distance.
-
referenceTravelreferenceTravelObject - Typical resource speed across unobstructed terrain.
-
inaccessibleinaccessibleObject - Max distance/time penalties when locations can’t reach each other.
-
urbanTimeFactorurbanTimeFactorObject - How travel speed varies by time and day within urban zones.
-
barrierbarrierObject - Obstacles (e.g. rivers) requiring detours via crossing points.
-
urbanurbanObject - Significant urban regions that distort distance estimates.
-
islandislandObject - Discrete regions needing terminal connections to move between.
-
legislaturelegislatureObject - REQUIRED. Areas under distinct regulatory rules (holidays, etc.) — and the serviceable extent of the map: a point outside every legislature is not serviced at all, so a map that declares none services nothing.
-
terminalterminalObject - Map of terminal name → terminalObject: connection points enabling scheduled transfers between islands.
Which property rounds what
Section titled “Which property rounds what”Four properties quantise positions and times, and they are easy to confuse:
| property | where | what it rounds |
|---|---|---|
precision | topography | the coordinates Spiral outputs. A precision of 0.001 is a 111 m × 69 m cell at UK latitudes, and a host that displays Spiral’s reported stop locations sees that grid. |
resolution | topography | whether an additional job counts as being at an existing job’s location. |
atResolution | setObject | how finely a rendezvous location is searched for — an expensive optimisation. |
clockResolution | stopParams | the estimated-arrival clock while a resource heads to a stop. |
None of them rounds a resource’s reported position or a travel request: a position arrives at its own accuracy and is sent to the travel calculator as it arrived.