Navigation in Maps possible in XF?

Hi,
I want to create a mobile app using Xamarin.Forms, is it possible to set map navigation in it. Live example is UBER. Once we set pickup and destination it will navigate us to the destination. I want something like that , is it possible to achieve it in XF.

Answers

  • DarshanJSDarshanJS USMember ✭✭✭

    @sabarinathan.t said:
    Hi,
    I want to create a mobile app using Xamarin.Forms, is it possible to set map navigation in it. Live example is UBER. Once we set pickup and destination it will navigate us to the destination. I want something like that , is it possible to achieve it in XF.

    Try this
    http://www.c-sharpcorner.com/article/google-maps-integration-in-xamarin-forms/

    or this

                    var address = "Redmond, Washington, United States";
                    switch (Device.RuntimePlatform)
                    {
                        case Device.iOS:
                            Device.OpenUri(
                            new Uri(string.Format("http://maps.apple.com/?q={0}", WebUtility.UrlEncode(address))));
                            break;
                        case Device.Android:
                            Device.OpenUri(
                            new Uri(string.Format("geo:0,0?q={0}",
                           WebUtility.UrlEncode(address))));
                            break;
                        case Device.Windows:
                        case Device.WinPhone:
                            Device.OpenUri(
                            new Uri(string.Format("bingmaps:?where={0}",
                           Uri.EscapeDataString(address))));
                            break;
        }
    
  • NicolasKrierNicolasKrier FRMember ✭✭✭
    edited October 2018

    Hello @DarshanJS

    The project I did that was created years ago and back in that time, I did not use git a lot.
    I don't remember where my project folder is located.

    I didn't waste time thanks to you.
    Here is the like you didn't have and deserve ;)

  • DarshanJSDarshanJS USMember ✭✭✭

    @NicolasKrier said:
    Hello @DarshanJS

    The project I did that was created years ago and back in that time, I did not use git a lot.
    I don't remember where my project folder is located.

    I didn't waste time thanks to you.
    Here is the like you didn't have and deserve ;)

    Haha Thanks

Sign In or Register to comment.