Can I get my location from Wikitude using javaScript and Objective-C.
I am using IOS.
Locaction Manger from IOS doesn't give my exactly spot.
I am using Wikitude to show graphic on place where I stand.
After that I want to save my location.
A
Andreas Schacherbauer
said
almost 10 years ago
Hi,
Please have a look at our SDK examples. "Obtain Poi Data From Webservice" uses the AR.context.onLocationChanged callback to receive any location update in JS. You can then pass the latitude/longitude/altitude/accuracy to ObjC using the architectsdk:// protocol. Simply call e.g. document.location = architectsdk://locationDidChange?latitude=34&longitude=45&altitude=56&accuracy=1. Don't forget to set the WTArchitectView delegate in ObjC and implement the onUrlInvoke method declared in the WTArchitectViewDelegate Protocol to receive the architectsdk url invoke. You can then parse the latitude/longitude/altitude/accuracy from the given url.
Best regards
Andreas
C
Cezary Walenciuk
said
almost 10 years ago
2013-09-05 03:54:19.637 ARchitect is running with version: 3.0.0
Cezary Walenciuk