Representation learning on heterogeneous spatiotemporal networks