Development & Production Builds
To keep the amount of data in the graphs as small as possible, the same path and node attributes are combined. The creation of a production friendly graph is initialised with the getProductionBuild()
function:
Here, the same nodes and path attributes are joined together, identified with an ID, and referenced at the respective node objects. The following development graph...
...is converted to the following production graph:
pa = path attributes
pan = path attributes names
na = node attributes
nan = node attributes names
The returned production graph can also be stored in a JSON file and used to initialise the indoor graph. It is highly recommended to use a production graph when calculating a route. If you use a development graph when determining a route, this graph will be converted to a production graph on runtime.
Last updated