Really happy to know that it helps! Let me know more when you are done implementing it. And any comments on the next video ideas would be appreciated 😇
Really happy to know that it helps! Let me know more when you are done implementing it. And any comments on the next video ideas would be appreciated 😇
@@ABSatyaprakash hello, I tried running your code on an iOS emulator and it didn't work though it works on an android emulator. Is the flutter navigation package not suitable for iOS?
@@farihachoudhury2580 The flutter navigation package is suitable for iOS, but it won't run on an emulator when the Mac has the M1 silicon chip. It has some issues, that can be traced back to Mapbox itself, whose products are still being optimised on the M1 chip. Since I use a new MacBook, I can't run it on an iOS emulator and also did not add the initial configurations on the Info.plist file. Check out more about this here - github.com/eopeter/flutter_mapbox_navigation/issues/148 and other issues. If you are using an intel chip Mac or a apple device, you can try following the instructions on my GitHub repo, and you should be able to use it.
@@ABSatyaprakash Hi, is there a way to change the destination midway through a turn by turn navigation, and so have the turn by turn updated without the user having to cancel the route?
@@farihachoudhury2580 We can do 2 things here: If you know beforehand what stops you have to go through, you can add all the waypoints and set multipleStop to true. Otherwise you can just rebuild the widget with the new source and destination. This means suppose the cab is at point x when the customer changes his mind, you ca. Treat x as the new start and y as the new destination.
Hi thank you so much i really love your videos they are very helpful however my question would be how to add a turn by turn navigation in case you have a carousel of restaurants almost similar to your former video. I will be grateful
Really happy to know that it helps! Let me know more when you are done implementing it. And any comments on the next video ideas would be appreciated 😇
Thank you for the great video but I am getting an runtime exception below is the error Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Good explenation :) Also am curious if you have or want to explain about mapbox use and create gpx routes for turn by turn. I think that option is also possible with mapbox.
If you look at the Google Maps package the implementations for Flutter are very similar to that of Mapbox. It's SDKs and APIs are similar too. I'll make a video on it soon nevertheless.
Great Tutorial. Thanks. Sir, Is it possible to navigate the user to a specific location in a given Premise? Say, that location is on the 40th floor to the right -> left -> left -> 10 steps away, as soon as the user gets out of the elevator. Can we direct users like this?
Hello, thank you very much for the video!! Would you have any example of navigation using offline maps with MapBox, I'm developing a project and I would like to test this possibility.
Thanks for the tutorial. I tried to call showDialogbox method and it doesn't work, same with the showModalBottomSheet. Do you know the reason. Any help would be appreciated
Amazing video. Just want an insight by using turn by turn navigation how many api calls and direction api were consumed, provided the trip was completed fully. Any rough numbers would be highly appreciated. @ABSatyaprakash
Hello sir, It's really helpful video. But when navigate to navigation screen the then ride start auto and not according to driver. If driver stop the navigation started. I want when driver move then should the navigation move if stop then navigation should be stop.
Thanks a lot for the great implementation. I was wondering if there is a way to avoid Tolls or paid highways in the navigation? Even if it can be done by hard coding it will still be great.
Thank you for your kind words, it means a lot! Yes we can avoid obstacles on the map. Have a look at the documentation here - docs.mapbox.com/help/tutorials/route-avoidance-with-turf-mapbox-directions/ Stay tuned for more content! 😇
@@ABSatyaprakash appreciate the reply. How would it look like in the context of the current App you built here? Is it possible to show or write the snippet of code which will enable avoiding tolls in this project?
@@fatehullahnassery5534 For flutter currently the plugin is in a very nascent stage and I don't think it supports adding or avoiding tolls so far. But if you can take a look at the plugin code, and try implementing something similar using the APIs and Dio.
"Sorry for the inconvenience, but I have a question: Can I use Google Maps and the camera to navigate? I want to pinpoint a location on the map, then open the camera and guide someone to that location by telling them to turn left or right using voice commands. Is this feasible?"
Thanks man for great content. What's the name of emulator and is it free? I got a problem with mapbox that it crashes app whenever I navigate out of the mapbox screen.
Hi thanks for the video, can you advise ...when I clone the repo set all the keys as well as the .netrc etc...I can never get the project to run always something about PLATFORM_VERSION greater than 9 and if resolved ..then can not build objective c module etc ...I was successfullin folowing along with the previous video but this one just wont run ...what flutter channel of flutter are you on and what versions of xcode etc should we be running (im on M1 mac with latest xcode ) thanks again for your videos i hope to see more soon...oh and android works fine
Flutter 2.10.4 • channel stable • github.com/flutter/flutter.git Framework • revision c860cba910 (2 weeks ago) • 2022-03-25 00:23:12 -0500 Engine • revision 57d3bac3dd Tools • Dart 2.16.2 • DevTools 2.9.2 This is what I am using along with latest Xcode. Could you get back to me with a stacktrace of your error exactly, so that I can help you better.
hi, i have downloaded ur code and try to run the completed code 'mapbox_turn_by_turn' but after i update all the dependencies to latest version, there is an error occur at turn_by_turn.dart file under lib>screens folder. the error is 'The named parameter 'onRouteEvent' isn't defined.' i have no idea how to debug this problem, can anyone tell me why is this error occur and how to debug it?
Hi there, it is me again, may I ask whether or not I can use my custom style map in this code? If possible then could you please tell me how to use it?
_options = MapBoxOptions( initialLatitude: 36.1175275, ..... mapStyleUrlDay: "url_to_day_style", mapStyleUrlNight: "url_to_night_style", ..... ); Specify the urls here. You can get them from Mapbox studio. This should work for custom style maps
Hi hope you are all doing okay I want to add more cities to the autocomplete option of mapbox how do I do that I tried adding a tile but that does not work any help is greatly appreciated, thank you in advance
Hi Satyaprakash, awesome job in this project, I am facing an issue with the cloned repo, when I run the app I got this error message: Unhandled Exception: type 'Null' is not a subtype of type 'FutureOr' This occurs in the distanceRemaining and durationRemaining
@@ABSatyaprakash Yeah I make some changes and now is working well, but I have a question... How can I set the camera zoom when I open the navigation view in the actual position and not in a zoom like in the continent
Why is the navigation moving by itself, Is there a way to move only we move? I implemented mapbox using flutter everything is good but, I want the turn by turn navigation work when I actually move. Please help me!
Very good tutorial man, however I follow everything till the navigation and after I press "Start your premier ride now" the navigation crashes. Would you know why?
Yes. Look at the file where we make a request to the Mapbox Places API with Dio. The country code in there must be 'us' by default. Change it to anything you want to. You should also look at the results in the API playground before you write code, to see that the URL you are using is customised as per the requirement.
Hi I have been following your tutorial, however when I integrate map box, my map rotates even without touching my device, and the map covers up the floating action button and app bar, another issue is when I press the back button to go back to previous app closes and debug console says lost connection to device 😢😢😢
Please head over to the discussions here - github.com/Imperial-lord/mapbox-flutter/discussions and open a thread. Add your error stack trace, and I'll be able to help you. As an example have a look at this - github.com/github/feedback/discussions/12109.
Well that's pretty easy. Just go to additional settings in your android emulator (3 dots), and then go to location. Once there, you can specify any location - just search on Google Maps and save the coordinates and then select that as your custom location. Look at this link for a step by step process - stackoverflow.com/a/61573119/11610122
@@kurtjimenez1340 Look at the file where we make a request to the Mapbox Places API with Dio. The country code in there must be 'us' by default change it to Philippines which I guess is 'ph'?
Hello AB I am following your videos for mapbox integration in Flutter but my app is crashing each time after opening the mapbox portion of app will you help me to solve the crashing issue? Thank you
I am using Android Studio with the Dracula (default dark) colour scheme. I have also added a Material Theme to the entire android studio, along with material icons for a better appearance.
Hi, can you recommend to me someone that develop in flutter that talks in spanish or english. I need a developer that's have good knowledge in UI and flutter.
@@ABSatyaprakash i dont want to add traffic on turn by turn navigation page i just want to do is where on review page route we are drawing a polyline it should show traffic line it should be red where is more traffic like that ? can u help i will be very thankful your video is amzing can you update your code according to dart latest version?
Hey thanks for pointing that out! Wonder why no one else told me. I have updated it in the description, but still here you go - github.com/Imperial-lord/mapbox-flutter
Hey Satya I have problem regarding turn by turn navigation first my location is automatically progressing on navigation route can I navigate it by my device location just like google maps secondly I got an error: LateError (LateInitializationError: Field '_controller@886183575' has not been initialized.)
For your first question there are 2 options- 1. Install in a device. 2. Change the emulator location using realtime GPS. Look at this link - stackoverflow.com/a/45098850/11610122 In either case, make sure to switch off the simulate route flag, i.e set it to false. For your second question, I suggest you take a look at the Flutter null safety rules. The error is coming because, you have a late variable somewhere that is not being initialised before it has been used in the application
Thank you for the video, I was trying to change map style to outdoors since the one that I'm getting by the default is dark and not really convinient, but I was unable to do so. I've tried to change map style inside MapBoxOptions but the error that I'm getting is as follows: D/AndroidRuntime(14682): Shutting down VM E/AndroidRuntime(14682): FATAL EXCEPTION: main E/AndroidRuntime(14682): Process: com.example.evo_app_nav, PID: 14682 E/AndroidRuntime(14682): java.lang.IllegalStateException: Calling addImage when a newer style is loading/has loaded. Can you help me with this please?
hello I had downloaded your startup project and I had given both private key in Gradle.propertis an public key in strings.xml but I am facing following error can you please help me > _TypeError (type 'Null' is not a subtype of type 'String' in Mapbox_handler.dart
Thank you for the tutorial, but the app crashes the moment directions.startNavigation is called. I have set the secret and pubic keys as per the instructions. This is the error I am facing and I don't know how to solve it. I have been searching on the net for days now. Please assist. This is my error : Process: com.example.project_pozi, PID: 10988 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mapbox/navigation/core/fasterroute/FasterRouteObserver;