This automatic GPS switch for streetlamps connects to the GPS receiver and compares its time signal with the standard time received from the satellite for time correction. Thus, it can turn lamps on/off at a more exact time, and allows the customer to select from the GPS function and the digital switching function, thus giving scalability to product implementation.