Detecting how many lanes-parks-sidewalks and junction

I need a python code using the mapillary api that can give such examples as string format, how many lanes are there between two randomly determined points with a distance of 50 meters between them, or if there are sidewalks, how many intersections are there, and if there are parks, how many parks are there. I couldn’t design it. I would be happy if anyone can guide me, thanks in advance.

What is your background in computer software engineering? What you are asking for is quite complex problem to solve.

I am kinda new at computer software engineering. Actually i am trying to understand api and as i mentioned i need to string output of for ex: how many lanes are there between two randomly determined points with a distance of 50 meters between them how can i do it?

I know that you can get information about lane markings. Maybe you can use that as a proxy for how many lanes the road segment have. I have not used the object recognition api myself.