The Aimsun API Module can be implemented using a Python script. This Python script is an ASCII file with extension .py and may be created in any text editor. To load an Aimsun API Module written in Python, the file should be placed in a user defined folder with a file named AAPI.py (supplied with Aimsun).
The user can write a Python script defining the six high level functions: AAPILoad(), AAPIIni(), AAPIManage(…), AAPIPostManage(…), AAPIFinish() and AAPIUnLoad().
A very simple example of Aimsun API Module could be defined by the following contents: