I purchased the TK419 and wired up the electrical cutoff using a relay. The instructions that come with the GPS tell you to connect the 4th/yellow wire to a specific numbered contact on the relay, and splice the other circuit of the relay in-between the battery and the controller .The ground of both circuits of the relay can be connected to the black wire of the battery. You also have to make sure the GPS still gets a charge even after cutting off the ebike power. Once it's all wired up you can use the Keelin app or website to cut the power.
Another thing to mention. You'll need the TK419 version with the external battery. You can buy it directly from the manufacturer. You can't use an external battery without rewiring the internals of the GPS. And the internal battery only lasts 4 or 5 hours. If you ever take the ebike battery to charge at work, then you'll need the external GPS battery to keep tracking past 5 hours.
To get the external battery to work on a regular TK419, you'll need to open it up and cut the internal battery wires. Then connect them to the 7th and 8th wires exiting the GPS. Make sure to desolder them from the PCB first and connect the ground/positive wires in the correct orientation. The 7th and 8th wires are the same color so be-careful not to accidentally reverse the polarity. After I made the modification and connected a 1500 mah 3.7v lithium ion battery for RC cars, the GPS lasts over 50 hours without external power. It even recharges automatically when the GPS is powered by the ebike battery.