How the government tracks your location
This page describes some of the tools that law enforcement use to track the locations of people they are interested in.
Many governments operate license plate scanners to identify cars committing traffic violations, often automatically sending a traffic ticket to vehicle registrations's home address.
Police squad cars also have license plate scanners, allowing officers to quickly look up if passing drivers are legal interest. If you are driving past a police car, assume that you have been scanned.
The Electronic Frontier Foundation has more information on how governments use automated license plate readers.
Law enforcement often deploy networks of fake cell phone towers that are capable of tracking the cell phones they connect with. You can read more about fake cell phone towers here.
The company Clearview AI sells a tool to law enforcement, allowing them to search for matching faces from billions of images scraped off of social media. If you or anybody else has posted a picture of your face on the Internet, you should assume that Clearview and similar companies already have a copy, and that law enforcement can find your Internet presence based on photos of you taken from security cameras.
There are many other companies that sell or offer the ability to build computer vision models capable of facial recognition, such as Matroid.
Law enforcement often request information from major social media, mapping, or ridesharing companies. They may make these requests with or without a warrant from a judge. It is common for companies to notify a user when law enforcement is requesting that user's data, but companies are often barred by law from contacting users.