Layout coordinates¶
fast step 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.
Usage¶
The following are the step's expected inputs and outputs and their specific types.
layout_coordinates(
latitude: number,
longitude: number,
{
"param": value
}
) -> (x: column, y: column)
where the object {"param": value}
is optional in most cases and if present may contain any of the parameters described in the
corresponding section below.
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)
Inputs¶
latitude: column:number
Numerical column with the latitude value.
longitude: column:number
Numerical column with the longitude value.
Outputs¶
x: column
Numerical column with the x position in the graph.
y: column
Numerical column with the y position in the graph.
Parameters¶
method: string = "webmercator"
A method to use to convert the coordinates to x, y positions.
Must be one of:
"webmercator"
,
"spherical"
,
"wgs84"