There is a /gps/fix input topic to rtabmap node. To use GPS in graph optimization, you have to set Optimizer/PriorsIgnored to false. You may check this
post and this
post that show how GPS and SLAM trajectories can be visualized in rtabmap-databaseViewer.
About more robust loop closure detection using GPS, see this page:
https://github.com/introlab/rtabmap/wiki/Robust-Graph-Optimization#multi-session