How would I proceed to program which side of the road I'm travelling on in Android(LEFT SIDE OR RIGHT SIDE). I got the street name and the compass direction, But don't i need to know how to road is placed whether north to south or east to west to determine which side I'm going on? Basically, how should i find the orientation of the road
Example : Say the road is placed on the EAST-WEST axis and i were to move towards EAST, then the device should tell me I'm on the left side of the road.
The location info has a heading a.k.a. bearing a.k.a course attribute. It is an angle 0 - 360 on the compass rose. Just take this and you know the direction. It is not neccessary to enable the compass.
Further the compass shows the heading of the device. not the direction of walking / driving.
further as MasterAweSome explained, dpeending on the country you will be usually on the right or left side. GPS and digital road maps, are not acurate enough, to determine wheter you drive / walk on the left or right border of street. The differecne is about 6m (2 lanes), which is also near the avg GPS accuacy.
Although special GPS /GNSS hardware used in land survey have a precision of sub centimeter or even mmilimete range, you will not achieve that accuray on a smart phone.