I use OSMdroid and I want to get the count of lanes of the street i'm driving on.
Normal street have one lane in each direction. Highway have two lanes in each direction. Some streets have more. Is this information stored in OSM and how can I get this informations about my street?
I'm using an LocationListener
to get the users position.
Have look at OverpassAPI, it allows to dig deep and fast in the OpenStreetMap objects around a specific position.
To perform OverpassAPI requests in your Android context, you can either try OSMBonusPack OverpassAPIProvider with the KML flavour, or implement your own request/response parsing.
EDIT
You will need a clear understanding of OSM lanes tagging conventions. This said, I quickly made some trials using OverpassAPI interface integrated in OSMNavigator, just searching with "highway" key: it works.
When on an actual highway, I found "lanes=2" on each side. On usual roads, no "lanes" key defined.