Location Services Hololens2?

I’m trying to figure out how to access the users location in my Hololens 2 app. Input.location shows as only working with Android. How would I go about getting those gps coords from the H2 headset?

Are you sure the H2 has GPS?
The H1 definitely doesn’t. The H2 doesn’t show it in it’s tech specs, and I can’t seem to find any information about it having GPS.

Yeah I didnt see it either, but there is an app you can install that shows my location. Maybe its just bouncing off the wifi router. Just trying to make sure I’m not missing anything obvious as I have never developed for UWP before

You could try testing that app to see how accurate it is. Does it show you moving throughout the house/office?
Does it work without Wifi? etc. Without knowing what app you’re referring to my guess would be it’s either just using the static location for your IP or doing some bouncing with the router.
As far as I can tell the H2 only has IMU (6DOF with Accelerometer, Gyro & Magnetometer), not GPS.

1 Like

That app is about a block off, which made me think it was bouncing the wifi instead of its unit. Guess I’m going to have to figure out a workaround

If it’s a block off, it’s not using bouncing. It’s just grabbing the location relative to your IP-adress…
https://iplocation.com/ will probably give you the same location

No, the location that comes from that site is way off.

I’m going to try this for now

Broadcast my gps from android to the headset. It’s hacky, but I’m not seeing any other way to do it

1 Like

I’ve made a tutorial on how to use the wifi GPS in hololens with 30 to 500m accuracy, GitHub - Gustavobb/HoloLens2-Unity-Tutorial: Tutorials to help you get started with HoloLens 2 in Unity, hope it helps anyone!

Another service that allows you to get location data behind any IP address is ipbase.com.