1 (edited by digitalrock 2016-12-09 16:29:19)

Topic: Get current latitude/longitude

Is there currently something like:

locationService.instance.Latitude;
locationService.instance.Longitude;

I have the location services component added to my tileset map game object.

I'm just trying to find out what current lat/lon are at that moment.  I don't need constant updates, just a one-time call.  So what's the best way (fastest or most accurate) to find this? 

Input.location.lastData.longitude
or...
OnlineMaps.instance.GetPosition()
or...
locationService.instance.somethingElse

Thanks!

Re: Get current latitude/longitude

Hello.

OnlineMapsLocationService.position
http://infinity-code.com/doxygen/online … 164baf7eb5

Important: position not available Start, because GPS is not already initialized.
Use OnLocationInited or OnLocationChanged event, to determine the initialization of GPS.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.