Finding Edge names

When I snap a GPS point to an Edge as in the following link, sometimes the Edge name is empty. It doesn’t have a name even when it is part of a long street and the next edges in that street do have the street name.
https://discuss.graphhopper.com/t/how-to-get-the-speed-of-a-specific-edge-with-graphhopper-6-0/7516/4?u=juan_barandiaran

Starting with one Edge, how can I move from one Edge to the next Edge that belongs to the same road/street until I find the road name in some Edge?