If a man goes out of his way to interact with you, he is interested in you romantically or sexually - at least to some degree. A lot of women don’t realize this, because when they approach a man (for example, to ask directions in the street), they don’t do so with romantic or sexual intention. They wrongly project their own lack of intention onto the men who approach them. They think “When I approach a man, I don’t have romantic or sexual motives; so this guy asking me for directions has no ulterior motives.” But they are wrong.
If you are skeptical about this, consider that the same phenomenon is manifested in men. Men always “get the wrong idea” when a woman responds to their texts, or engages them in conversation in a bar, or doesn't spit on them and walk off when they ask her for directions. The truth may be that the girl is just being polite, or that she genuinely believes the guy just needs directions, but the man projects his own intentions onto her. He thinks “When I talk to a woman even for casual reasons, it is because I like her. This woman is talking to me, so she must like me.”
Yes, of course, there are exceptions to this rule. Sometimes a guy genuinely needs directions, or really is just talking to you to kill time at the bus station. But the point is that these exceptions are far rarer than you think. In fact, the exceptions are so rare that you are better off always assuming that men who approach you are interested than you are questioning it each time. In the rare instances that a man isn't interested, you have nothing to lose by assuming that he is; and the increased confidence you’ll have knowing that he is into you will help you to be your best self in his presence, which will attract him further.