Search code examples
ibm-mobilefirstworklight-geolocation

IBM Worklight 6.0 - Get current location ( lat, long)


I am working something with maps and not able to get the current location in worklight 6.0 any links or API which i can use to get current lat, long values.

Also i have seen this link for tracking the current location of device from IBM infocenter,

http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fdevref%2Ft_tracking_devices.html

WL.Device.Geo.acquirePosition(onSuccess, onFailure, options)

How can i use the above api in my sample project, any suggestions,

Thanks djrecker


Solution

  • Without your implementation and explanation of what you've tried to do, we cannot help you. This is a technical Q&A website...

    Depending on what you're doing, you could:

    Or use the location services Worklight offers:

    Please read what the two approaches offer and choose what's best for you.