Depending on the application type, you may be able to enable permissions for Positioning, and then register a callback to receive the information. This is covered in the Programmer's Guide in the section about Location Events. There are two sample programs provided with the current SDK that show how to do this, the only difference being the number of position updates that are being requested. Here is a link to the reference documentation.
You can also use Position.getInfo() to get position data. If you haven't registered for position updates as mentioned above, this will potentially return stale data.
In a data field, the Activity.Info object passed to your data field's compute() method and the instance returned from Activity.getInfo() have position data as well.