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
pkgs
folder 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
PACKAGE
save 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
PACKAGE
save file:DLTOBJ OBJ(GEOTAB/PACKAGE) OBJTYPE(*FILE)
- Copy
headers/geotab.rpgle_h
intoGEOTAB/QRPGLEREF
since they are the header files - Create a binding directory with both
GEOTAB
andJSONXML
on.
- 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 andQRPGLEREF
with the header file)