Any way to get geo data from a KML data source?

If I load a Cesium.KmlDataSource is there any way to pull information out of that?

Specifically can I get a center lat/lon or bounding rectangle or something like that?

Once the load promise resolves, KmlDataSource.entities will contain all of the loaded data as Entity instances. (KmlDataSource.entities is an EntityCollection which you can read more about in the Visualizing Spatial Data tutorial. It ends up looking something like the below:

var promise = Cesium.KmlDataSource.load(‘kmlfile.kml’);

promise.then(function(dataSource) {

var entities = dataSource.entities.values;

//entities is an array of Entities

}