How can get filesystem path of composer package?

composer.json example:

{

    "require" : {
        "codeception/codeception" : "@stable",
        "willdurand/geocoder": "*"
    }
}

example: $composer->getPath("\Geocoder\HttpAdapter\HttpAdapterInterface");

and return it as: "/home/me/public_html/vendor/willdurand/geocoder/src/Geocoder/HttpAdapter"

Edit
Report