How can I use iPhone GPS and share it with an OS X application to get live position on Mac? How can I use iPhone GPS and share it with an OS X application to get live position on Mac?

Note: I am looking for a way of seeing current location, live, in Google Earth, Google maps or something similar.

I assumed a configuration where I share my internet connection from iPhone and I connect a  mac to it. I know that at least the iPad can get the location when it is connected to an iPhone.
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.