Exclude some areas in Android

Hi

Is possible to exclude some areas dynamically in Android routing?

For example: give the user the posibility to draw and area and exclude all roads inside them

This is currently not possible but relative easy to implement as the main stuff already exists. See this issue

I’m trying to create my own Weighting last days. But when I do:

request.setWeighting(MyWeighting.NAME);

I got:

java.lang.RuntimeException: Cannot fetch best response if list is empty

Even if in MyOwnGraphHopper I return a standard Weighting with:

            return super.createWeighting(hintsMap, encoder);

Am I missing something?

Without a small code snippet this is hard to judge.