This an SDK for the Geotab APIs.
Currently supported Geotab APIs:
- Auth
- Get
- GetFeed
- GetRoadMaxSpeeds
- GetAddresses
- Add
- Set
Please see the examples.
The GEOTAB service program uses noxDb as the JSON manipulation library. We ship it in the repo so the users do not have to also build that.
CRTLIB GEOTAB- Upload the contents of the
pkgsfolder to the IFS - Unpack
JSONXML:CPYFRMSTMF FROMSTMF('./pkgs/jsonxml.pkg') TOMBR('/QSYS.LIB/GEOTAB.LIB/PACKAGE.FILE') MBROPT(*REPLACE) CVTDTA(*NONE) - Restore
JSONXML:RST DEV('/QSYS.LIB/GEOTAB.LIB/PACKAGE.FILE') OBJ(('/QSYS.LIB/GEOTAB.LIB/JSONXML.SRVPGM')) - Delete the
PACKAGEsave file:DLTOBJ OBJ(GEOTAB/PACKAGE) OBJTYPE(*FILE) - Unpack
JSONXML:CPYFRMSTMF FROMSTMF('./pkgs/geotab.pkg') TOMBR('/QSYS.LIB/GEOTAB.LIB/PACKAGE.FILE') MBROPT(*REPLACE) CVTDTA(*NONE) - Restore
JSONXML:RST DEV('/QSYS.LIB/GEOTAB.LIB/PACKAGE.FILE') OBJ(('/QSYS.LIB/GEOTAB.LIB/GEOTAB.SRVPGM')) - Delete the
PACKAGEsave file:DLTOBJ OBJ(GEOTAB/PACKAGE) OBJTYPE(*FILE) - Copy
headers/geotab.rpgle_hintoGEOTAB/QRPGLEREFsince they are the header files - Create a binding directory with both
GEOTABandJSONXMLon.
- Create the library in 5250:
CRTLIB GEOTAB - Clone &
cd geotab_rpgle_sdk - Restore JSONXML:
gmake jsonxml.restore - Build the service program:
gmake(this also creates a binding directory andQRPGLEREFwith the header file)