Callback runs on MainThread, and there is creation of json from response.
In case when the path is long (ex. walk path across whole country) the conversion may take a while and cause application to hang (path of 700km converts on slow phone for 2 seconds)
https://github.com/akexorcist/Android-GoogleDirectionLibrary/blob/c13996e1a89cf484b8b9781ac3610313bcb2052a/googleDirectionLibrary/src/main/java/com/akexorcist/googledirection/request/DirectionRequest.java#L116
Callback runs on MainThread, and there is creation of json from response. In case when the path is long (ex. walk path across whole country) the conversion may take a while and cause application to hang (path of 700km converts on slow phone for 2 seconds)