Android Question Plot locations on an image map

sconlon

Active Member
Licensed User
Longtime User
I am writing an app that will show the user's current location on an image map and also show the distance from/to a starting or destination point. For example in one application, using an image of a golf hole (an aerial view drawn to scale) I want to show the player's position on the hole and their distance from the tee box and the green. I will have the coordinates of the tee box and green and I can get the distance and bearing from the current location but I can't figure out how to plot these on the image. The distance is easy enough but any ideas how I can using the bearing?

I don't want to use Google maps for a number of reasons,

Thanks.
 

eurojam

Well-Known Member
Licensed User
Longtime User
I don't want to use Google maps for a number of reasons,
but it would make it easier, if you would use it...
If not, then you have to convert the gps coordinates to a karthesian coordinate system (e.g. UTM). From that point you can use trigonometric calculations to solve all the bearing stuff, I would propose a canvas solution together with ABExtdrawing Lib which has a lot of possibilities.
 
Upvote 0
Top