Location Issue Android

So I have a raspberry pi 5 using android. I know I don’t have a GPS hat for the pi. It is on WiFi.

If I get on Google Maps and search my location, it takes a few seconds, but it does show my correct location.

Anytime I get on RealDash tho, I’m stuck at the stock location in Finland.

Is there anyway to fix this? RealDash has all its permissions granted.

We did find a bug that prevents Location services to work if system sends ‘Provider Disabled’ event, and never sends ‘Provider Enabled’ event. Quite many Android devices seem to do that. Fix for that is in next release (2.5.7).

Not sure if that is the same case you are experiencing, but sounds like it may be.

@realdashdev I will keep an eye out for it on the next update then. It wasn’t a huge concern at first but been trying to get the bugs out of my new system. Definitely would save me money from buying a GPS module for my pi if I can get location with hotspot internet.

Hey I updated the app and nothing. Still shows location in Finland.

Again I have no GPS module on this raspberry pi 5 but it does have internet thru hotspot.

I can get Google apps to show my correct location. On Real Dash though, I’m stuck on the same location, Finland.

I’ve disabled the permission and enabled it again thru the app upon reopening. Nothing.

I also tried disabling and enabling “Use Internal GPS”. Still nothing.

Ok. I do not know how Google Maps would get your accurate location using only Wifi, but to my knowledge its not possible. So I wonder where Maps gets the accurate location without actual GPS module.

@realdashdev Yea that’s where I get confused. Checking location settings both have permissions but I just noticed that it seems RealDash has never accessed my location.

Like it shows Google Maps, last accessed 4:55 am.

But it doesn’t show anything for RealDash.

I think the issue here is that RealDash is always requests ‘HIGH ACCURACY’ location provider from Android. And in this case there probably is none.

I could experiment with low accuracy providers as a backup if starting high accuracy one fails.

@realdashdev can we? Id love to try it test it out for you guys.

Drop me an email to contact@realdash.net and I will link you with test version.

I’d be very surprised if you get any speed reading, or location is actually accurate to the point that it follows the road while you drive. I just don’t think its possible without GPS.

@realdashdev Well even a low accuracy helps in regards to city and weather information. So having weather data again would be nice. And I can’t say for sure right now, but when I have checked prior I saw it did track my location fairly smooth.

Usually when I go over my monthly data is when I notice issues overall with any apps using hot spot. Which, unfortunately, is right now. But it resets over the weekend and I can properly test it next week once my data resets.

Now for speed, I don’t worry about that too much atm. I did have it as a backup Incase Bluetooth connection dropped with OBD2.

@realdashdev did you guys get my email response? I assume you’re still investigating.

Not really, as this is not high priority. It seems like we would need to duplicate your setup to understand how app gets the location services when there is no GPS hardware available. On test version we provided we used something called ‘fused’ location service, but that didn’t seem to work on your case.

Even if I don’t open Google maps when I check for my device location it works. It’s a raspberry pi 5 using a custom android OS.

It primarily gets internet from my phone’s hotspot.

On Android settings for location I do have “use assisted GPS” enabled. It says download satellite assistance data from the internet.

Are you sure that you are not sharing your location to Google from example from your phone. That shared location to Google could propagate to Google Maps also with same Google account. Others than Google would not be able to access that information in any way.

@realdashdev I double checked and it shouldn’t. Not completely anyways.

Setting wise, the Google account I share with my car, shouldn’t be sharing it’s location. i made sure that setting was off specifically for that account. With that said during the testing I did notice it was a lot smoother.

What I did for testing was I turned off use location completely on my phone. I still got the pi to update my location when I checked for it. If anything it took maybe 30 sec longer to zone in on me. When I turned back on use location it did feel like it was a bit smoother but nothing drastic.

Either way, both on or off, I still got a much better location reading. And I know that for gps speed or navigation it would be super inaccurate. But it would give me a way better idea of where I’m at and weather information should be correct.

@realdashdev so I never figured out why but I did get a cheap USB GPS device for the pi5. That got it to work. Fairly accurate but I hear the device has a weak antenna.

I do now have some questions about location improvement or at least direction. Using Google maps as an example you can see that it doesn’t sway so much. Is there anyway to make RealDash reflect that. The map sways left and right a lot when I’m just driving straight. Also cha we make it stay in the same heading that we stopped in.

This is actually already on our todo list. The map can sway/heading change while stationary.