How to display live location from gps to IOT Cloud dashboard?

You just need to add a Location cloud variable to your IoT cloud thing, and assign values like

location = Location(gps.location.lat(), gps.location.lng());

in your loop() cycle.

Additionally, this could help: