It takes it directly from the .fit file on the watch, uses some software to parse the file. You can get the .fit file on a windows machine by plugging the watch into it and accessing it like a USB.
Not sure about linux, but I've heard Mac requires some third party software.