How can I use iPhone GPS and share it with an OS X application to get live position on Mac?
I think he's asking about actually using an iPhone as a GPS module for a laptop, rather than sending a location which can be viewed on a laptop.

This functionality isn't available unless you jailbreak your iPhone, then you can use xGPS or any of the similar apps on Cydia which can turn your iPhone into a bluetooth GPS module.