I want to put objects in a map and discover which is the closest object from me, supposing that I'm in a moving car with my cell phone. Thus, to define the closest object I need to take the orientation of the movement and the street into account. The following figure illustrate the situation:
So, object 2 is the closest object, but it is not in the same street as I'm (the car). The object 1 is the closest object in the street that I'm , but I'm going to the opposite side. Finnaly, the object 3 is the one I want, since it is the closest object in the same street I'm and also following the orientation of my movement.
Does anybody know how I can obtain the closest object to me (considering that I'm moving) according to the rule I just mentioned?
If you don't know an API, but know what kind of concepts and stuff I need to study would be helpful, because I'm new in android and geographic systems development.