Skip to content

Layout coordinates

geo

Create x, y positions for nodes from their geographical coordinates.

Used to create a Graph view in which rows/nodes are placed geographically, rather than according to their (non-geographical) similarity.

Example

The following configuration transforms geographical coordinates into x and y points in the graph:

layout_coordinates(ds.latitude, ds.longitude) -> (ds.x, ds.y)

Usage

The following are the step's expected inputs and outputs and their specific types.

layout_coordinates(
    latitude: number,
    longitude: number
) -> (x: number, y: number)

Inputs


latitude: column:number

Numerical column with the latitude value.


longitude: column:number

Numerical column with the longitude value.

Outputs


x: column:number

Numerical column with the x position in the graph.


y: column:number

Numerical column with the y position in the graph.