GPS location to FIT file

Former Member
Former Member

I am trying to test a project I found online with ConnectIQ which uses GPS location by generating a FIT file using EncodeDemo.cs in the Cookbook example. I was wondering if a simple newRecord.SetPosition(int? positionLong_) would be sufficient for both the longitude and latitude? 

I have tried this and it does not work. So i was wondering what needs to be added to set the location of the FIT file. 

Also, it has to be simulated through the ConnectIQ as a workout FIT file?