My team and I have previously used the ESRI map functionality for a prior application where the user of the application can get directions on the map and we also embedded some custom code on the ESRI app. The prior app was centered around the US and worked well. We now the map to work in Africa and ran into quite a few errors. The map loads properly but the issue arises when the user tries to get directions from one city in Africa to another. For example when the user tries to navigate from Totota, Liberia to Monrovia. Please see a copy of the code below. Thank you.