MapKit route polyline in Uzbekistan

Hello everybody. I am creating an app that have to show route between two coordinates in a map. I am using MapKit. But it seems my codes are working in the USA very well. But in Uzbekistan I can not take directions.calculation response. The error is:

The error: Optional(Error Domain=MKErrorDomain Code=4 “Directions Not Available” UserInfo={NSLocalizedFailureReason=Directions are not available from this location., MKErrorGEOError=-8, MKErrorGEOErrorUserInfo={
}, MKDirectionsErrorCode=6, NSLocalizedDescription=Directions Not Available})

I don’t want to use from google map ios sdk. So what do i have to do to draw polyline in Uzbekistan.

Thanks :slight_smile:

The first thing you have to do is secure step-by-step directions - is there a third-party provider (not Google) that will help? Maybe Open Street Maps? If you can get JSON directions then drawing the poly line is fairly straightforward.

If you can’t, business opportunity…

Hello. Thank you very much for replying me. It was good idea for using third party for taking directions json. :slight_smile: