Decoding Nike+ snapshot data (you don't need to use Nike+ to possibly help)

Discussion in 'iPhone' started by REBELinBLUE, Jul 16, 2010.

  1. REBELinBLUE macrumors regular

    Joined:
    Oct 2, 2007
    Location:
    London, UK
    #1
    I have reconstructed the XML file from the run I lost today due to my own mistake, using the sqlite DB on the iPhone (I stupidly clicked the sync with nike+ button in 4.1 even though the docs say it doesn't work >_<)

    However, I am having trouble working out one of the fields, everything else was easy but I can't figure out the <pace> in <snapShot> items

    http://www.rebelinblue.com/skitch/Formatted_Data-20100716-231124.png

    If you look at that screenshot you will see on the left the mileSplit data in a real Nike+ XML file and on the right you will see the related mileSplit data stored in the sqlite DB. Duration was easy, the DB is in seconds, the XML is in milliseconds and the distance was easy as well, the DB is in miles but the XML is in KM.

    But I just can't for the life of me figure out the pace.

    Does anyone have any ideas?

    Thanks
     
  2. Benji222 macrumors 65816

    Benji222

    Joined:
    Dec 21, 2009
    Location:
    So Cal
    #2
    Id ask a mod to delete and try in the hacks/code sections
     
  3. REBELinBLUE thread starter macrumors regular

    Joined:
    Oct 2, 2007
    Location:
    London, UK
    #3
    oops you're right, not sure how I ended up in the iPhone forum. It's late, that’s my excuse ;)

    Can a mod move this somewhere more appropriate please?
     
  4. REBELinBLUE thread starter macrumors regular

    Joined:
    Oct 2, 2007
    Location:
    London, UK
    #4
    In fact it doesn't matter, this can be closed.

    Someone just figured it out for me. Multiplying ZPACEINSECONDSPERMILE by 37282.2727 gives the pace, god knows what that is though
     
  5. Benji222 macrumors 65816

    Benji222

    Joined:
    Dec 21, 2009
    Location:
    So Cal
    #5
    Thats some crazy stuff haha....
    Btw, mods dont like double posting, ive been warned before haha
     

Share This Page