A multigranular spatiotemporal data model