We gave something like this a shot (and missed). Collecting background GPS data and transmitting it to a third party service in the background is currently hard and battery intensive. Highlight does it though!
There are some good ideas in here. Thank you.