Google Maps, No Option for Starting the Navigation, Only Preview is there












10















In my application, I am starting the Google Navigation with the help of following set of code.



String uri = "http://maps.google.com/maps?saddr="+ gpsLatitude
+ "," + gpsLongitude
+ "&daddr="
+ updateAcceptedOfferDetailsData.getDestinationLat()+","+updateAcceptedOfferDetailsData.getDestinationLon();
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse(uri));
intent.setClassName("com.google.android.apps.maps",
"com.google.android.maps.MapsActivity");
startActivity(intent);


I am passing the Source Lat/Lng and Destination Lat/Lng of the respective addresses.



Problem:- Here my problem is when the Navigation Screen opens there is no option to "Start" rather there is another option "Preview", This problem do not happens at all the places it works fine for some places but not for all. May I know what the whole mess is??



Thanks










share|improve this question



























    10















    In my application, I am starting the Google Navigation with the help of following set of code.



    String uri = "http://maps.google.com/maps?saddr="+ gpsLatitude
    + "," + gpsLongitude
    + "&daddr="
    + updateAcceptedOfferDetailsData.getDestinationLat()+","+updateAcceptedOfferDetailsData.getDestinationLon();
    Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
    Uri.parse(uri));
    intent.setClassName("com.google.android.apps.maps",
    "com.google.android.maps.MapsActivity");
    startActivity(intent);


    I am passing the Source Lat/Lng and Destination Lat/Lng of the respective addresses.



    Problem:- Here my problem is when the Navigation Screen opens there is no option to "Start" rather there is another option "Preview", This problem do not happens at all the places it works fine for some places but not for all. May I know what the whole mess is??



    Thanks










    share|improve this question

























      10












      10








      10


      1






      In my application, I am starting the Google Navigation with the help of following set of code.



      String uri = "http://maps.google.com/maps?saddr="+ gpsLatitude
      + "," + gpsLongitude
      + "&daddr="
      + updateAcceptedOfferDetailsData.getDestinationLat()+","+updateAcceptedOfferDetailsData.getDestinationLon();
      Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
      Uri.parse(uri));
      intent.setClassName("com.google.android.apps.maps",
      "com.google.android.maps.MapsActivity");
      startActivity(intent);


      I am passing the Source Lat/Lng and Destination Lat/Lng of the respective addresses.



      Problem:- Here my problem is when the Navigation Screen opens there is no option to "Start" rather there is another option "Preview", This problem do not happens at all the places it works fine for some places but not for all. May I know what the whole mess is??



      Thanks










      share|improve this question














      In my application, I am starting the Google Navigation with the help of following set of code.



      String uri = "http://maps.google.com/maps?saddr="+ gpsLatitude
      + "," + gpsLongitude
      + "&daddr="
      + updateAcceptedOfferDetailsData.getDestinationLat()+","+updateAcceptedOfferDetailsData.getDestinationLon();
      Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
      Uri.parse(uri));
      intent.setClassName("com.google.android.apps.maps",
      "com.google.android.maps.MapsActivity");
      startActivity(intent);


      I am passing the Source Lat/Lng and Destination Lat/Lng of the respective addresses.



      Problem:- Here my problem is when the Navigation Screen opens there is no option to "Start" rather there is another option "Preview", This problem do not happens at all the places it works fine for some places but not for all. May I know what the whole mess is??



      Thanks







      android google-maps






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 14 '14 at 11:01









      Gaurav AroraGaurav Arora

      4,4621674125




      4,4621674125
























          5 Answers
          5






          active

          oldest

          votes


















          5














          This worked for me:



          "To anyone who runs across this thread, I discovered the cause and solution to this issue in some cases.



          When you search for a location using google.com or the google app, then tap the directions button, the start and end points are passed to the google maps app. When you select the route and only see the preview option, it's because google.com/app passed a starting set of coordinates to the maps app, so your asking google maps to provide directions between two points, not your current location to a point. Thus no turn-by-turn. Simply tap into the start field and select current location, bam."






          share|improve this answer



















          • 2





            What is the source of the quotation?

            – Ellen Spertus
            Feb 27 '17 at 0:50



















          3














          I have done some research on this and it appears that there is no way around it. The preview button will appear wherever navigation is not available for the requested route, the only reliable source I could find (Google was not massively helpful on this) to prove this is here which states (under navigation):




          To launch turn-by-turn navigation, touch the Start navigation button represented by a chevron in the bottom right of the screen. When Navigation is not available, the icon will appear as a preview arrow , and you can view the directions step by step.




          The only suggestion that I have would be to somehow check whether or not navigation is in fact available for the given route prior to passing to the maps application, and if not then display a prompt to the user, but I do not know the android API's well enough to be of any help here.



          A list of supported countries and territories is available here.



          Hope this helps.






          share|improve this answer
























          • Okay, Thanks Let me check

            – Gaurav Arora
            Feb 21 '14 at 4:33



















          2





          +100









          Little late in the battle, I was having same problem while my application implementation where I was unable to view real time navigations with Google Map Client.



          At that time, Glympse come into my use and it is very much effective approach while dealing with these types of scenarios based upon real time locations. Here is some implementation code:



          GTicketLite ticket = LiteFactory.createTicket(3600000, "Going home!", null);
          // Set flags that adjust the presentation of the Glympse Send Wizard.
          // These can enable/disable fields in the wizard screen.
          final int WIZARD_FLAGS
          = LC.SEND_WIZARD_INVITES_EDITABLE
          | LC.SEND_WIZARD_MESSAGE_EDITABLE
          | LC.SEND_WIZARD_DESTINATION_EDITABLE
          | LC.SEND_WIZARD_TIME_EDITABLE;
          // Launches the wizard which will send the Glympse
          GGlympseLite glympse = GlympseLiteWrapper.instance().getGlympse();
          glympse.sendTicket(ticket, WIZARD_FLAGS);


          Whole Android SDK is given over the website and its step by step procedure is also given, Give it a try and let me know if it has helped you.



          Thanks






          share|improve this answer































            0














            You can only navigate from where you are. If you are looking for a route from a different starting point to where you are at that current point in time you can only see a preview. As soon as you are at the starting location it will navigate.



            Hope that makes sense.






            share|improve this answer































              0














              Maybe a bit off-topic, but that's the only topic coming up in search.
              If you're using Google Maps normally (as a user, i.e. from Android app) and see "preview" instead of navigation, it could be that you're in the country where Google does not support real-time navigation (sigh). In my case, it was Kosovo, there you cannot navigate in real-time, only manually in preview.



              Source: Google Maps Coverage






              share|improve this answer






















                protected by Mohammad Usman Jun 4 '18 at 15:08



                Thank you for your interest in this question.
                Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                Would you like to answer one of these unanswered questions instead?














                5 Answers
                5






                active

                oldest

                votes








                5 Answers
                5






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                5














                This worked for me:



                "To anyone who runs across this thread, I discovered the cause and solution to this issue in some cases.



                When you search for a location using google.com or the google app, then tap the directions button, the start and end points are passed to the google maps app. When you select the route and only see the preview option, it's because google.com/app passed a starting set of coordinates to the maps app, so your asking google maps to provide directions between two points, not your current location to a point. Thus no turn-by-turn. Simply tap into the start field and select current location, bam."






                share|improve this answer



















                • 2





                  What is the source of the quotation?

                  – Ellen Spertus
                  Feb 27 '17 at 0:50
















                5














                This worked for me:



                "To anyone who runs across this thread, I discovered the cause and solution to this issue in some cases.



                When you search for a location using google.com or the google app, then tap the directions button, the start and end points are passed to the google maps app. When you select the route and only see the preview option, it's because google.com/app passed a starting set of coordinates to the maps app, so your asking google maps to provide directions between two points, not your current location to a point. Thus no turn-by-turn. Simply tap into the start field and select current location, bam."






                share|improve this answer



















                • 2





                  What is the source of the quotation?

                  – Ellen Spertus
                  Feb 27 '17 at 0:50














                5












                5








                5







                This worked for me:



                "To anyone who runs across this thread, I discovered the cause and solution to this issue in some cases.



                When you search for a location using google.com or the google app, then tap the directions button, the start and end points are passed to the google maps app. When you select the route and only see the preview option, it's because google.com/app passed a starting set of coordinates to the maps app, so your asking google maps to provide directions between two points, not your current location to a point. Thus no turn-by-turn. Simply tap into the start field and select current location, bam."






                share|improve this answer













                This worked for me:



                "To anyone who runs across this thread, I discovered the cause and solution to this issue in some cases.



                When you search for a location using google.com or the google app, then tap the directions button, the start and end points are passed to the google maps app. When you select the route and only see the preview option, it's because google.com/app passed a starting set of coordinates to the maps app, so your asking google maps to provide directions between two points, not your current location to a point. Thus no turn-by-turn. Simply tap into the start field and select current location, bam."







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 27 '17 at 0:20









                Joshua LeeJoshua Lee

                5111




                5111








                • 2





                  What is the source of the quotation?

                  – Ellen Spertus
                  Feb 27 '17 at 0:50














                • 2





                  What is the source of the quotation?

                  – Ellen Spertus
                  Feb 27 '17 at 0:50








                2




                2





                What is the source of the quotation?

                – Ellen Spertus
                Feb 27 '17 at 0:50





                What is the source of the quotation?

                – Ellen Spertus
                Feb 27 '17 at 0:50













                3














                I have done some research on this and it appears that there is no way around it. The preview button will appear wherever navigation is not available for the requested route, the only reliable source I could find (Google was not massively helpful on this) to prove this is here which states (under navigation):




                To launch turn-by-turn navigation, touch the Start navigation button represented by a chevron in the bottom right of the screen. When Navigation is not available, the icon will appear as a preview arrow , and you can view the directions step by step.




                The only suggestion that I have would be to somehow check whether or not navigation is in fact available for the given route prior to passing to the maps application, and if not then display a prompt to the user, but I do not know the android API's well enough to be of any help here.



                A list of supported countries and territories is available here.



                Hope this helps.






                share|improve this answer
























                • Okay, Thanks Let me check

                  – Gaurav Arora
                  Feb 21 '14 at 4:33
















                3














                I have done some research on this and it appears that there is no way around it. The preview button will appear wherever navigation is not available for the requested route, the only reliable source I could find (Google was not massively helpful on this) to prove this is here which states (under navigation):




                To launch turn-by-turn navigation, touch the Start navigation button represented by a chevron in the bottom right of the screen. When Navigation is not available, the icon will appear as a preview arrow , and you can view the directions step by step.




                The only suggestion that I have would be to somehow check whether or not navigation is in fact available for the given route prior to passing to the maps application, and if not then display a prompt to the user, but I do not know the android API's well enough to be of any help here.



                A list of supported countries and territories is available here.



                Hope this helps.






                share|improve this answer
























                • Okay, Thanks Let me check

                  – Gaurav Arora
                  Feb 21 '14 at 4:33














                3












                3








                3







                I have done some research on this and it appears that there is no way around it. The preview button will appear wherever navigation is not available for the requested route, the only reliable source I could find (Google was not massively helpful on this) to prove this is here which states (under navigation):




                To launch turn-by-turn navigation, touch the Start navigation button represented by a chevron in the bottom right of the screen. When Navigation is not available, the icon will appear as a preview arrow , and you can view the directions step by step.




                The only suggestion that I have would be to somehow check whether or not navigation is in fact available for the given route prior to passing to the maps application, and if not then display a prompt to the user, but I do not know the android API's well enough to be of any help here.



                A list of supported countries and territories is available here.



                Hope this helps.






                share|improve this answer













                I have done some research on this and it appears that there is no way around it. The preview button will appear wherever navigation is not available for the requested route, the only reliable source I could find (Google was not massively helpful on this) to prove this is here which states (under navigation):




                To launch turn-by-turn navigation, touch the Start navigation button represented by a chevron in the bottom right of the screen. When Navigation is not available, the icon will appear as a preview arrow , and you can view the directions step by step.




                The only suggestion that I have would be to somehow check whether or not navigation is in fact available for the given route prior to passing to the maps application, and if not then display a prompt to the user, but I do not know the android API's well enough to be of any help here.



                A list of supported countries and territories is available here.



                Hope this helps.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 20 '14 at 12:17









                SwiresSwires

                2,39311125




                2,39311125













                • Okay, Thanks Let me check

                  – Gaurav Arora
                  Feb 21 '14 at 4:33



















                • Okay, Thanks Let me check

                  – Gaurav Arora
                  Feb 21 '14 at 4:33

















                Okay, Thanks Let me check

                – Gaurav Arora
                Feb 21 '14 at 4:33





                Okay, Thanks Let me check

                – Gaurav Arora
                Feb 21 '14 at 4:33











                2





                +100









                Little late in the battle, I was having same problem while my application implementation where I was unable to view real time navigations with Google Map Client.



                At that time, Glympse come into my use and it is very much effective approach while dealing with these types of scenarios based upon real time locations. Here is some implementation code:



                GTicketLite ticket = LiteFactory.createTicket(3600000, "Going home!", null);
                // Set flags that adjust the presentation of the Glympse Send Wizard.
                // These can enable/disable fields in the wizard screen.
                final int WIZARD_FLAGS
                = LC.SEND_WIZARD_INVITES_EDITABLE
                | LC.SEND_WIZARD_MESSAGE_EDITABLE
                | LC.SEND_WIZARD_DESTINATION_EDITABLE
                | LC.SEND_WIZARD_TIME_EDITABLE;
                // Launches the wizard which will send the Glympse
                GGlympseLite glympse = GlympseLiteWrapper.instance().getGlympse();
                glympse.sendTicket(ticket, WIZARD_FLAGS);


                Whole Android SDK is given over the website and its step by step procedure is also given, Give it a try and let me know if it has helped you.



                Thanks






                share|improve this answer




























                  2





                  +100









                  Little late in the battle, I was having same problem while my application implementation where I was unable to view real time navigations with Google Map Client.



                  At that time, Glympse come into my use and it is very much effective approach while dealing with these types of scenarios based upon real time locations. Here is some implementation code:



                  GTicketLite ticket = LiteFactory.createTicket(3600000, "Going home!", null);
                  // Set flags that adjust the presentation of the Glympse Send Wizard.
                  // These can enable/disable fields in the wizard screen.
                  final int WIZARD_FLAGS
                  = LC.SEND_WIZARD_INVITES_EDITABLE
                  | LC.SEND_WIZARD_MESSAGE_EDITABLE
                  | LC.SEND_WIZARD_DESTINATION_EDITABLE
                  | LC.SEND_WIZARD_TIME_EDITABLE;
                  // Launches the wizard which will send the Glympse
                  GGlympseLite glympse = GlympseLiteWrapper.instance().getGlympse();
                  glympse.sendTicket(ticket, WIZARD_FLAGS);


                  Whole Android SDK is given over the website and its step by step procedure is also given, Give it a try and let me know if it has helped you.



                  Thanks






                  share|improve this answer


























                    2





                    +100







                    2





                    +100



                    2




                    +100





                    Little late in the battle, I was having same problem while my application implementation where I was unable to view real time navigations with Google Map Client.



                    At that time, Glympse come into my use and it is very much effective approach while dealing with these types of scenarios based upon real time locations. Here is some implementation code:



                    GTicketLite ticket = LiteFactory.createTicket(3600000, "Going home!", null);
                    // Set flags that adjust the presentation of the Glympse Send Wizard.
                    // These can enable/disable fields in the wizard screen.
                    final int WIZARD_FLAGS
                    = LC.SEND_WIZARD_INVITES_EDITABLE
                    | LC.SEND_WIZARD_MESSAGE_EDITABLE
                    | LC.SEND_WIZARD_DESTINATION_EDITABLE
                    | LC.SEND_WIZARD_TIME_EDITABLE;
                    // Launches the wizard which will send the Glympse
                    GGlympseLite glympse = GlympseLiteWrapper.instance().getGlympse();
                    glympse.sendTicket(ticket, WIZARD_FLAGS);


                    Whole Android SDK is given over the website and its step by step procedure is also given, Give it a try and let me know if it has helped you.



                    Thanks






                    share|improve this answer













                    Little late in the battle, I was having same problem while my application implementation where I was unable to view real time navigations with Google Map Client.



                    At that time, Glympse come into my use and it is very much effective approach while dealing with these types of scenarios based upon real time locations. Here is some implementation code:



                    GTicketLite ticket = LiteFactory.createTicket(3600000, "Going home!", null);
                    // Set flags that adjust the presentation of the Glympse Send Wizard.
                    // These can enable/disable fields in the wizard screen.
                    final int WIZARD_FLAGS
                    = LC.SEND_WIZARD_INVITES_EDITABLE
                    | LC.SEND_WIZARD_MESSAGE_EDITABLE
                    | LC.SEND_WIZARD_DESTINATION_EDITABLE
                    | LC.SEND_WIZARD_TIME_EDITABLE;
                    // Launches the wizard which will send the Glympse
                    GGlympseLite glympse = GlympseLiteWrapper.instance().getGlympse();
                    glympse.sendTicket(ticket, WIZARD_FLAGS);


                    Whole Android SDK is given over the website and its step by step procedure is also given, Give it a try and let me know if it has helped you.



                    Thanks







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 25 '14 at 12:42









                    Akhilesh ManiAkhilesh Mani

                    2,25041950




                    2,25041950























                        0














                        You can only navigate from where you are. If you are looking for a route from a different starting point to where you are at that current point in time you can only see a preview. As soon as you are at the starting location it will navigate.



                        Hope that makes sense.






                        share|improve this answer




























                          0














                          You can only navigate from where you are. If you are looking for a route from a different starting point to where you are at that current point in time you can only see a preview. As soon as you are at the starting location it will navigate.



                          Hope that makes sense.






                          share|improve this answer


























                            0












                            0








                            0







                            You can only navigate from where you are. If you are looking for a route from a different starting point to where you are at that current point in time you can only see a preview. As soon as you are at the starting location it will navigate.



                            Hope that makes sense.






                            share|improve this answer













                            You can only navigate from where you are. If you are looking for a route from a different starting point to where you are at that current point in time you can only see a preview. As soon as you are at the starting location it will navigate.



                            Hope that makes sense.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 7 '14 at 9:59









                            DebiDebi

                            1




                            1























                                0














                                Maybe a bit off-topic, but that's the only topic coming up in search.
                                If you're using Google Maps normally (as a user, i.e. from Android app) and see "preview" instead of navigation, it could be that you're in the country where Google does not support real-time navigation (sigh). In my case, it was Kosovo, there you cannot navigate in real-time, only manually in preview.



                                Source: Google Maps Coverage






                                share|improve this answer




























                                  0














                                  Maybe a bit off-topic, but that's the only topic coming up in search.
                                  If you're using Google Maps normally (as a user, i.e. from Android app) and see "preview" instead of navigation, it could be that you're in the country where Google does not support real-time navigation (sigh). In my case, it was Kosovo, there you cannot navigate in real-time, only manually in preview.



                                  Source: Google Maps Coverage






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    Maybe a bit off-topic, but that's the only topic coming up in search.
                                    If you're using Google Maps normally (as a user, i.e. from Android app) and see "preview" instead of navigation, it could be that you're in the country where Google does not support real-time navigation (sigh). In my case, it was Kosovo, there you cannot navigate in real-time, only manually in preview.



                                    Source: Google Maps Coverage






                                    share|improve this answer













                                    Maybe a bit off-topic, but that's the only topic coming up in search.
                                    If you're using Google Maps normally (as a user, i.e. from Android app) and see "preview" instead of navigation, it could be that you're in the country where Google does not support real-time navigation (sigh). In my case, it was Kosovo, there you cannot navigate in real-time, only manually in preview.



                                    Source: Google Maps Coverage







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jan 1 at 14:07









                                    The GodfatherThe Godfather

                                    9071026




                                    9071026

















                                        protected by Mohammad Usman Jun 4 '18 at 15:08



                                        Thank you for your interest in this question.
                                        Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                        Would you like to answer one of these unanswered questions instead?



                                        Popular posts from this blog

                                        MongoDB - Not Authorized To Execute Command

                                        How to fix TextFormField cause rebuild widget in Flutter

                                        in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith