GSM Location using Mbed OS Cellular

Hey community, how can we get GPS or GSM location from Cellular Network. We are using Sim868 from SimCom which has GPS and GSM interfaces. Can anyone give us some example on how to get GPS and GSM location after connecting to Network.