Finding filtered closest edge to point

I am currently able to retrieve the closest edge to a given point via:

QueryResult qr = index.findClosest(location.getLatitude(), location.getLongitude(), EdgeFilter.ALL_EDGES);

However this will attach to a footway if it is the closest. Is there a way to limit it to streets? In particular, is there a way to get the way type (e.g. footway) from the EdgeIteratorState?

I have the similar question about the findClosest.It seems only influence by distance.
If a primary way is close than foot way,the closest way will choice the primary way. It is unreasonable for foot.