rotate google maps with respect to the direction of movement of device (android)
<p>i am working on app which use google maps to plot the route in which the user is moving and its showing live. so i want to rotate the map according to the direction of movement of user.</p>

<p>if he/she moves right then the map rotate in such a way that the route he is moving always shows in foreword direction. like google maps navigation.</p>

<p>i think i should take the bearing between two location and then calculate some bearing and apply it to the maps.</p>

<p>any suggestion will be appreciated .</p>

<p>thank you</p>

<p><strong>update</strong></p>

<p>let me clarify my question as it is not that much understandable (thats what i think).</p>

<p>i want the my location pointer to point forward or upward always and the map to rotate itself when i move in an direction.</p>

<p>i think this makes my question more clear.</p>