There are a couple of variables. If you have an internet connection you can use various apps if your laptop can connect to a bluetooth enabled GPS receiver. I use a Holux GPS receiver with bluetooth and it has a rechargeable battery and lasts for at least a week on one charge. But the laptop has to have an internet connection for this to work and half the time we do not have a good 4G signal.
For travel I prefer using a dedicated GPS unit as it is much faster than any smartphone I have tried and so I get earlier notice of when to make turns. I can also mount it on the dash and the portable units often have a mode feature so I can set it for walking or bicycling and get different routes than I would get if I was in a car. I use this a lot in Europe where the cities are people friendly.