Android Question How to get pluscodes from Google map

Theera

Well-Known Member
Licensed User
Longtime User
Hi all,
I have study Erel's GPS project . If I need the pluscodes instead of GpsLat and GpsLon ,how do I do?

Thank you in advance
 

drgottjr

Expert
Licensed User
Longtime User
my understanding (minimal) is that: without latitude & longitude,
you can't derive an area's pluscode.

if this is not correct, plus do not read any of the following. thank
you, and i apologize for wasting your time.

----------------------------------------------------------------------------------------------------------
there is a pluscodes library available here:

i tried it after seeing your question.
i could not understand it. perhaps you will have better luck.

i found the original project on github, so i decided to compile it to a "library"
of sorts.

attached plus find my "library" and an example of how it works. i am also
attaching a screen capture of its output. all you do is provide a latitude
and longitude and some kind of area parameter, and the method returns
the area's pluscode. i have no idea what any of that means. you say you
need pluscodes. my example will give you that. it will also give you a lot
more, but you asked only for the pluscode.

take the attached .jar and .xml files and copy them to your additional libraries
folder (just like any other library). then build and run the example. i hope it
makes sense to you.
 

Attachments

  • pluscode.png
    pluscode.png
    22.7 KB · Views: 78
  • pluscodes.zip
    8.3 KB · Views: 73
  • pluscodes.jar
    5 KB · Views: 76
  • pluscodes.xml
    9.6 KB · Views: 66
Upvote 0
Top