Api session event editor netload generate loads and paths

From Tygron Support wiki
Revision as of 10:16, 30 March 2026 by Frank@tygron.nl (talk | contribs) (Created page with "API Event to Generate Loads And Paths {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(NET_FUNCTION Integer ID) |Net Functions | |- |1 |REQUIRED |(MultiPolygon with crs: EPSG:3857) |MultiPolygon | |- |2 |REQUIRED |(Category or multiple values in array [a, b, c]) |Category[] | |- |3 |REQUIRED |(Integer number) |Integer | |- |4 |REQUIRED |(Integer number) |Integer | |- |5 |REQUIRED |(STAKEHOLDER Integer ID or multiple values in array...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API Event to Generate Loads And Paths

Name Importance Type Description Values
0 REQUIRED (NET_FUNCTION Integer ID) Net Functions
1 REQUIRED (MultiPolygon with crs: EPSG:3857) MultiPolygon
2 REQUIRED (Category or multiple values in array [a, b, c]) Category[]
3 REQUIRED (Integer number) Integer
4 REQUIRED (Integer number) Integer
5 REQUIRED (STAKEHOLDER Integer ID or multiple values in array [1, 2, 3]) Stakeholders
6 REQUIRED (STAKEHOLDER Integer ID or multiple values in array [1, 2, 3]) Stakeholders
7 REQUIRED (true, false) Boolean true or false
8 REQUIRED (Floating point number) Double
9 REQUIRED (Floating point number) Double

Response Codes

Response Code: Description
204 No Content
300-600 Codes Overview

Example POST

Example POST: https://engine.tygron.com/api/session/event/editornetload/generate_loads_and_paths/?crs=3857&f=HTML&token=API_TOKEN

with content:

[ 35, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799320.667686103 ], [ 658697.3843553703, 6799320.667686103 ], [ 658697.3843553703, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, [ "AGRICULTURE", "INTERSECTION", "HEALTHCARE" ], 14, 48, [ 1, 2, 3 ], [ 1, 2, 3 ], false, 3, 76 ]