---
title: "get weights · RUAL Documentation"
description: "RUAL pathfinding block."
canonical: https://docs.rual.nl/block-types/pathfinding/function_pathfinding_get_weights
language: en
---

# get weights

This block is part of the [`pathfinding`](https://docs.rual.nl/block-types/pathfinding) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

- flow `flow`

- tiles required `array` Array [{ state (String), x (Number), y (Number) }]

- width required `number`

- height required `number`

- path required `array` Array [x_y (String), x_y (String)]

- finder `value` The algorithm to use, currently supported are: AStarFinder, BestFirstFinder, BreadthFirstFinder, DijkstraFinder, IDAStarFinder, JumpPointFinder, OrthogonalJumpPointFinder, BiAStarFinder, BiBestFirstFinder, BiBreadthFirstFinder, BiDijkstraFinder

Default `BiAStarFinder`

- finder options `object`

- flow `flow`

- success `condition`

- error `value`

- weights `array`

A typical wiring for [get weights](https://docs.rual.nl/block-types/pathfinding/function_pathfinding_get_weights): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [with values](https://docs.rual.nl/block-types/array/array_of_values) feeds the `tiles` pin; [number](https://docs.rual.nl/block-types/number/number_default) feeds the `width` pin; [number](https://docs.rual.nl/block-types/number/number_default) feeds the `height` pin; [with values](https://docs.rual.nl/block-types/array/array_of_values) feeds the `path` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the get weights block: typical wiring for get weights.](https://docs.rual.nl/canvas-examples/function_pathfinding_get_weights.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Service documentation
