Support to write GeoLocation info

Hi all,
in a iOS app I’m not able to write current latitude and longitude on a beacon using deviceInfo classes and methods.
Is there anyone could provide me an example of writing?
Thanks