They can already do this via the cellular phone networks, which need your location to provide the service. Yes, they could discard that data once it was no longer needed, but that is subject to subpoena and preservation orders, so it's not that far to a location history DB anyways.