geohashdroid icon indicating copy to clipboard operation
geohashdroid copied to clipboard

Version without Google Maps dependency?

Open v1993 opened this issue 4 years ago • 7 comments

I'm using GApps-less phone, so it lacks google maps libraries Geohash Droid is using. As a result, it fails to install.

It would be really cool to have an option to use another map provider (like OSM), eliminating gmaps dependency or at least making it optional. To be honest, I wouldn't even mind a version completely without maps since I'm using OSMAnd for any planning and navigation anyways.

v1993 avatar May 21 '21 15:05 v1993

I've considered this before, and I agree it might be a neat idea, but last time I checked over other Android map libraries (I mostly focused on OSM), they were either lacking in some way or would've involved a rather huge tearup to put into my code (that is, there wasn't anything that was really a drop-in replacement for the v2 Google Maps stuff).

Things might've changed since then, and it might still be worth looking into, but it'd have to be something I'd do later on. I've still got a few other features to either fix or bring up-to-date first, whenever I can find the time.

I'll leave this open, though. Thanks!

CaptainSpam avatar May 23 '21 07:05 CaptainSpam

Related: #21.


[…] last time I checked over other Android map libraries (I mostly focused on OSM), they were either lacking in some way or would've involved a rather huge tearup to put into my code (that is, there wasn't anything that was really a drop-in replacement for the v2 Google Maps stuff).

Things might've changed since then, […]

osmdroid, from its self-description, seems (to strive) to be such a drop-in replacement for several key Android functions.


I wonder, given the nature of the app (GeoHashing, XKCD) and the audience to which it would appeal, if remaining dependent on Google actually limits adoption. I'm imagining users of non-Google OSes (Lineage), or who otherwise want their device to be Google-free.

Lee-Carre avatar Mar 08 '22 13:03 Lee-Carre

I find the Google Maps integration incredibly convenient, so if you change anything, please don't remove the Google Maps integration, simply make it an option. Thanks!

jonathanwcrane avatar Mar 08 '22 19:03 jonathanwcrane

If I were to go ahead with this, it would likely be in the form of a separate APK entirely. I'm definitely not removing Google Maps support any time soon, as I agree the integration is pretty useful for GMaps users (shared data cache, offline map downloads, etc). A distinct branch for, say, "Geohash Droid (OSM version)" would likely be the answer there.

osmdroid doesn't look like a full drop-in replacement for what I've got, at least in its current version (osmdroid claims to be a replacement for Maps v1, where I've switched to v2 a long time ago). So, it wouldn't be as simple as just changing a few class names and such; it'd take some tweaking to make a version that could use it.

That said, though, I could probably see a way to make it work, once I've got time. However, that's a bit lower of priority at the moment, behind things like the AndroidX release, Centicule support, better picture upload options, etc. I'll see what I can do, eventually.

CaptainSpam avatar Mar 08 '22 20:03 CaptainSpam

Wouldn't this be as simple as running the calculation (with location permission for ease), and having an "open in external map" functionality? It would do everything I expected from this app at least, and currently there's no way for me to use it.

nyanmeister avatar Aug 09 '23 23:08 nyanmeister

Hmm... that might be more possible than you'd think. When an expedition is in progress (i.e. it has a hash point on the map), check the vertical dots menu for "Send to Maps" and see if that goes to the app you're looking for. I know that with the apps installed on my device, that gives me the option of Google Maps, Google Earth, and a public transit app.

If that DOES send it off to the app you want, that shouldn't be too hard to make more prominent. Like, I could rename the menu option, make it so options like those show up in a popup when you tap the hash point itself, etc.

CaptainSpam avatar Aug 10 '23 21:08 CaptainSpam

Unfortunately, this is as far as I can get. [F-Droid 0.9.6.2]

GeohashDroid without GApps-2023-08-11

With the ability to run the calculation without Google Play services, I'd at least know where the point to go to is.

nyanmeister avatar Aug 11 '23 16:08 nyanmeister