Start a new topic

Overwrite the current users Location

Overwrite the current users Location


Hi All, Im just mucking around with the Wikitude SDK on iOS, awesome. Im just wondering if there is a way to overwrite/set the current users location? i.e. The augmented viewer with points of interests will take the mobile users long and lat and show the POI's relative to their current location. I want to tell the system that the mobile user is actually at a different long and lat in the world and to show the POI's relative to this new location.

Is this possible?

Thanks

Hi Matt,
The iOS SDK comes with a API to do exactly what you want.

Injecting Locations


? injectLocationWithLatitude:longitude:altitude:accuracy:

? injectLocationWithLatitude:longitude:accuracy:

? setUseInjectedLocation:

? isUsingInjectedLocation


 

Please refer to each method documentation on how to use them. 
Don't forget to call the -setUseInjectedLocation:YES method so that the previously injected location is actually used.

 

Best regards

Andreas
Login or Signup to post a comment