Accesing iphone gps position from the macbook?
I don't have an iPhone 4 to test this, but I assume Core Location will do.

Here's a simple sample application with a map (and coordinates).

Lucubrator is also an option, and comes with some more information.