How to draw a line in maps between two points but in walking mode?

Now I have a app that draw a line between two points, the route is marked as if I was in a "CAR" but I want that route is marker as if I was "WALKING"
help me please

Best Answer

  • areli0908areli0908 MX
    edited July 2017 Accepted Answer

    alejandro something like this

    var Info = new NSDictionary();
    var OrigenDestino = new MKDirectionsRequest()
    {
    Source = new MKMapItem(new MKPlacemark(Starting point, Info)),
    Destination = new MKMapItem(new MKPlacemark(Ending pont, Info)),
    TransportType= MKDirectionsTransportType.Walking,// This is the line that you need
    };

Answers

  • areli0908areli0908 MXMember
    edited July 2017 Accepted Answer

    alejandro something like this

    var Info = new NSDictionary();
    var OrigenDestino = new MKDirectionsRequest()
    {
    Source = new MKMapItem(new MKPlacemark(Starting point, Info)),
    Destination = new MKMapItem(new MKPlacemark(Ending pont, Info)),
    TransportType= MKDirectionsTransportType.Walking,// This is the line that you need
    };

  • UriworshopUriworshop ✭✭ USMember ✭✭

    did you solve your problem yet?

Sign In or Register to comment.