Тёмный

Show Directions | Google Maps Tutorial (Android Tutorials) 

Tech Academy
Подписаться 32 тыс.
Просмотров 97 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 149   
@qaseemaslam3091
@qaseemaslam3091 7 лет назад
For the past five days I have been searching for the exact same tutorial and you uploaded this video just 4 days ago... You are absolutely God sent
@TechAcademy8
@TechAcademy8 7 лет назад
I am glad that you found my channel.
@dgrippo
@dgrippo 4 года назад
Thanks. It helps me a lot.
@symbally
@symbally 6 лет назад
Was not disappointed by this video, came to find out how to draw directions on a map and you delivered on that front, thank you kindly for sharing this video. My only real criticism (I'm not going to use your source code) I think it would be nicer for the general public if, you massively simplified what is being built (A very simple and basic app with none of the fanciness, just show how to use the directions API to draw on map) allowing a person to focus on what you are trying to deliver as opposed to getting confused around some of the stuff in the middle
@md.rayhanchowdhury8601
@md.rayhanchowdhury8601 6 лет назад
Awesome! Please do not stop
@abhishekvaze1685
@abhishekvaze1685 6 лет назад
Your code worked. We implemented it in "Xamarin.Forms". Thank You :)
@blackzero4703
@blackzero4703 4 года назад
Hello thanks for the tute, could you please help me in the following task How to get the estimated driving time from one place to another?
@masegomsomi2749
@masegomsomi2749 4 года назад
It's in her previous video before this. It works perfectly, but when this code is implemented, the duration and time goes away🙈
@financemadeeasy8475
@financemadeeasy8475 7 лет назад
hello, thank you for your tutorial! I also wanted to know how can we get the information such as "turn left" and "turn right". Kindly help.
@surendirani1009
@surendirani1009 4 года назад
HI could u pls post a video on maps directions only explained?
@danielnavarro2296
@danielnavarro2296 6 лет назад
very nice tutorial, keep doing more
@sabeehbangash8016
@sabeehbangash8016 6 лет назад
can i get the previous video of the this lecture in which u have defined the duration between current and destination position??
@kajalarya3796
@kajalarya3796 3 года назад
Hello Mam I got 3 null pointer (2 in GET DIRECTIONSDATA-postExecute(), 1 in DATA PARSER-parseDirections()) exception I don't want why plz help me
@titopartian561
@titopartian561 5 лет назад
excellent effort!
@Myers1341
@Myers1341 7 лет назад
I am trying to access the directionsList String[] of polylines back in my main MapsActivity. I have tried using static fields, but directionsList becomes null when I access it via static fields. do you have any ideas of how i do this?
@KamrujjamanJoy
@KamrujjamanJoy 5 лет назад
java.lang.NullPointerException: Attempt to invoke virtual method 'int org.json.JSONArray.length()' on a null object reference i have this error how can i solved this can you please help me
@danteezio4120
@danteezio4120 2 года назад
Wow tnx for the information cutie
@epsibaangel3926
@epsibaangel3926 5 лет назад
hi plz tel me how to save this location,distance and duration in firebase
@princedosi4587
@princedosi4587 7 лет назад
hello,Mam Can we set marker to go on some particular latlng co-ordinates on 'onMarkerClick'method and show us directions from our current location to that marker location,is that possible,please reply?
@faizanberiwala6088
@faizanberiwala6088 7 лет назад
great video ... i just wanted ask that is there any video tutorial for "live video streaming" in android studio.. from last 1 week i m trying to find out something like this.. if is there any video tutorial then plz let me know . thank you
@youginechriaa8463
@youginechriaa8463 7 лет назад
madam will you please add a new tutoriel about how to show the direction between the current location and one of the marker which notice the nearby places (hospitals , school or restaurent )!
@washingtonelvirafilho3625
@washingtonelvirafilho3625 6 лет назад
You start the video from the middle. I dont know if there is another video first. If there is, it should be named in parts (part 1, part 2...).
@kevingava9280
@kevingava9280 5 лет назад
Thank you very much,
@darvengloria7184
@darvengloria7184 7 лет назад
Hi I'am very thankful to your tutorials in terms of GoogleMap in android.. it is very helpful in to my project.. i have problem in term of autocomplete in google map and searching a location.. can you make a tutorial for it thank you.. so much..
@AjinkyaKalaskar
@AjinkyaKalaskar 6 лет назад
Can u make a video that use sensor like accelerometer to get data on whichever direction mobile is getting moved ....it shows map of that direction...Like current Google maps shows..
@mkttoonz6828
@mkttoonz6828 10 месяцев назад
Thanks😊
@heetshah5175
@heetshah5175 6 лет назад
i want to constantly update the users location on the map who is following the directions given by maps. please tell me how to do it
@educationalfun9141
@educationalfun9141 7 лет назад
Hello mam! can you please make a video that include turn by turn navigation along with polyline. I try to use "travel_mode" but I am unable to implement turn by turn navigation.
@DinGDonGvideoProduction
@DinGDonGvideoProduction 6 лет назад
PolyUtil.decode() is not working :( .. what to do? please help
@heshanthamal
@heshanthamal 7 лет назад
hello, there is a problem with "PolyUtil" word.(red color). why is this? i imported also
@karthikap5909
@karthikap5909 7 лет назад
Hello mam.. I have one doubt...When I run the code and search a place it is showing path perfectly but again If i searched for some other place..The path of previously searched place is also showing... Please tell me how to clear the previously searched path?!
@chihyuanye7467
@chihyuanye7467 7 лет назад
teacher , please you can teach me how to use android studio Filtering marker distance , and implementing navigation
@yatishjaryal3394
@yatishjaryal3394 4 года назад
Yes I want seperate tutorial please.
@sollekram
@sollekram 6 лет назад
how to fix the error if the user don't click marker, and click to button? i found a solution if statement with end_latitude and end_longitude
@wynsalvez5694
@wynsalvez5694 6 лет назад
nice but when I another get direction the polyline will remain thew same,so please fix it
@abhi301988
@abhi301988 5 лет назад
Hi can you provide tutorial for path using multiple waypoints
@cassandralee4398
@cassandralee4398 7 лет назад
Hi ! Your tutorials are great! May I request for you to do a tutorial on how to create reminders on android studio? Thanks :)
@mamanmaya249
@mamanmaya249 6 лет назад
It shows only toast when clic on button hospitals or restaurants.. please help me..
@Otommynorth
@Otommynorth 7 лет назад
is there a method to get the distance and duration using this polyline instead of using google directions ?
@TechAcademy8
@TechAcademy8 7 лет назад
Polyline just stores latitude longitude values. It can't give distance and duration values. You can check how the polyline is encoded so you'll get a better idea. If you need distance and duration then you'll need to fetch those values separately from the JSON reposnse.
@nawafmohammednadeem6162
@nawafmohammednadeem6162 4 года назад
Facing error of PolyUtil.It can't resolve
@dance3309
@dance3309 6 лет назад
Hi, the programme works for me but when i change the marker to a another location the older poly line still stays.... How do i code such that the older polyline is cleared
@mohamedkhamis8941
@mohamedkhamis8941 6 лет назад
Kshitij Shah i have a problem when i press to button the app close if you have a solution plz tell me
@jyoti6682
@jyoti6682 5 лет назад
i have done code but still my app not showing directions
@divewithshubham
@divewithshubham 7 лет назад
Its not showing me PolyUtil. :/ neither dependecy is working. I cannot import PolyUtil.. Please tell some alternatives
@edivaldoserafim9801
@edivaldoserafim9801 7 лет назад
Put this line into a build.gradle App: compile 'com.google.maps.android:android-maps-utils:0.5' Then... click on syn... PolyUtil will appears...
@divewithshubham
@divewithshubham 7 лет назад
that is what not working for me
@edivaldoserafim9801
@edivaldoserafim9801 7 лет назад
Check if your SDK have updates....especially in tools part
@divewithshubham
@divewithshubham 7 лет назад
lot of updates..
@divewithshubham
@divewithshubham 7 лет назад
nothing happened
@AkashG2020
@AkashG2020 6 лет назад
How we can set the path according to the multiple marker ?
@simplesolution1780
@simplesolution1780 5 лет назад
Please make video on encode polyline
@amhimeltech
@amhimeltech 6 лет назад
for my app it dont map on fragment and when i click on To button app crush .why?
@hamzaayech5966
@hamzaayech5966 7 лет назад
Hello! please can someone help me? in the terrain view of Google Map i can't see the height of mountain its too smaller anyone has solution please!
@simplesolution1780
@simplesolution1780 5 лет назад
Is code working for alternate route ??
@kingmoni1
@kingmoni1 6 лет назад
How to remove the polyline and redraw when any other marker is clicked?
@farhanakbar2815
@farhanakbar2815 6 лет назад
ty for sharing
@imopriday2829
@imopriday2829 7 лет назад
Thank you dear ma'am I did it.
@angeltemelko6544
@angeltemelko6544 6 лет назад
how to remove the polyline when i like?
@imopriday2829
@imopriday2829 6 лет назад
Angel I have the same problem in my project I have not solved yet. when I did then I will let you know. '
@MuhammadTayyab-xq5zt
@MuhammadTayyab-xq5zt 6 лет назад
can u plz semd me code .. ?
@sollekram
@sollekram 6 лет назад
hi, i got this error while doing excacly the same and also the same code when i press TO FATAL EXCEPTION: main Process: comb.example.marke.healthcenterapp, PID: 31897 java.lang.NullPointerException: Attempt to invoke virtual method 'int org.json.JSONArray.length()' on a null object reference at comb.example.marke.healthcenterapp.DataParser.getPaths(DataParser.java:146) at comb.example.marke.healthcenterapp.DataParser.parseDirections(DataParser.java:140) at comb.example.marke.healthcenterapp.GetDirectionsData.onPostExecute(GetDirectionsData.java:52) at comb.example.marke.healthcenterapp.GetDirectionsData.onPostExecute(GetDirectionsData.java:22) at android.os.AsyncTask.finish(AsyncTask.java:667) at android.os.AsyncTask.-wrap1(AsyncTask.java) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:241) at android.app.ActivityThread.main(ActivityThread.java:6274) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Application terminated.
@shafiqshukor1601
@shafiqshukor1601 7 лет назад
hello miss.. how to set the route just for pedestrian only.??
@TechAcademy8
@TechAcademy8 7 лет назад
You need to add one more parameter to it. You need to set the mode=walking. So, use the append function one more time and include this ("&mode=walking")
@shafiqshukor1601
@shafiqshukor1601 7 лет назад
thanks miss
@kadiyamrao37
@kadiyamrao37 5 лет назад
ok good but what is server key .is it need for routeing
@kshitijbansal3672
@kshitijbansal3672 7 лет назад
hello mam, nice tutorial but mam we cannot use this tutorial to navigate from one location to another as this is not showing the exact roads while showing the directions. Please do something for that mam. Make a video by which we can even navigate like navigation in google maps. Thank you
@TechAcademy8
@TechAcademy8 7 лет назад
It does show exact roads. But, you can't do turn by turn navigation just like google maps. But, the json response contains html_instructions field in the steps array for each path. So, it will tell you turn left from here and turn right from here. You can even fetch the start and end locations from them and change the html instructions accordingly. But, you can't implement navigation exactly like google maps.
@kshitijbansal3672
@kshitijbansal3672 7 лет назад
Tech Academy okay thanks
@nazarmanoflymax1515
@nazarmanoflymax1515 4 года назад
I need some help guys I get this error java.lang.NullPointerException: Attempt to invoke virtual method 'int org.json.JSONArray.length()' on a null object reference
@masegomsomi2749
@masegomsomi2749 4 года назад
It could be that your latitude and longitude is not being parsed. It was the case for me.
@nazarmanoflymax1515
@nazarmanoflymax1515 4 года назад
@@masegomsomi2749 Thank you worked for me
@nikeshsangale1765
@nikeshsangale1765 4 года назад
hello tech academy please provide code of this application so useful to my application
@Anilkumar-ec8sj
@Anilkumar-ec8sj 7 лет назад
Make a video in Encoded Polyline Algorithm Format
@dialloahmed9376
@dialloahmed9376 6 лет назад
nice tutorial.but in my ShowDirection method i can not use PolyUtil class i dont know why . some one to help me please.
@masegomsomi2749
@masegomsomi2749 4 года назад
I know this is probably solved, but for anyone else wondering, you need to add implementation to use it. Implement 'com.google.maps.android:android-maps-utils:0.5'
@isaquecrazy
@isaquecrazy 5 лет назад
it does not work ... please help me, I need it a lot !!!
@johnmarfollesol4296
@johnmarfollesol4296 7 лет назад
public void displayDirection(String[] directionsList) { int count = directionsList.length; for(int i = 0;i
@TechAcademy8
@TechAcademy8 7 лет назад
What is the error? Check if you have imported the PolyUtil class or not. Otherwise make sire that the string that you are passing to PolyUtil.decode() method is a valid encoded polyline or not. stackoverflow.com/questions/33433415/android-googlemaps-api-indexoutofboundsexception-in-polyutil-decode
@johnmarfollesol4296
@johnmarfollesol4296 7 лет назад
I think the error is the PolyUtil class is not imported.. how to import the PolyUtil class? Thank you
@johnmarfollesol4296
@johnmarfollesol4296 7 лет назад
I got it thank you so much :)
@mangogoman58
@mangogoman58 7 лет назад
please tell me how you import PolyUtil class
@johnmarfollesol4296
@johnmarfollesol4296 7 лет назад
paste this code to your build.gradle(module:app) compile 'com.google.maps.android:android-maps-utils:0.5+'
@lightingnation
@lightingnation 6 лет назад
please get us a tutorial about getting direction from one place to another. Separatly this tutorial is not complete
@mohamedkhamis8941
@mohamedkhamis8941 6 лет назад
why when i press to button the app close however i made directions api key? help me pleaase any one
@khaibui8216
@khaibui8216 5 лет назад
i have same solution. did you solve?
@anythingstuff8991
@anythingstuff8991 4 года назад
@@khaibui8216 did you slove??
@khaibui8216
@khaibui8216 4 года назад
@@anythingstuff8991 yes
@sonic26000
@sonic26000 7 лет назад
The folder where the java code should be is empty...
@TechAcademy8
@TechAcademy8 7 лет назад
I am adding the files right now. Sorry about that.
@snehadange4518
@snehadange4518 5 лет назад
how to display locations between from and two
@snehadange4518
@snehadange4518 5 лет назад
to*
@asharashfaque
@asharashfaque 5 лет назад
Use Waypoints in Url.
@amitkumarsolanki5643
@amitkumarsolanki5643 6 лет назад
i want to show polyline from current position to user's move
@mixknowledge6420
@mixknowledge6420 6 лет назад
please text me if your were found source code or tutorial of above problem. riabhitu@gmail.com
@masegomsomi2749
@masegomsomi2749 4 года назад
But now the time and duration is gone😞
@techtutorialsandmore6951
@techtutorialsandmore6951 7 лет назад
the application closes when i click the TO button please help tnx :((
@kirkdouglas8089
@kirkdouglas8089 7 лет назад
You need to create a google direction api key, its on the video before this one, not the normal api key or the one she have, make your own one.
@adamnoor6
@adamnoor6 5 лет назад
thanks
@ernest9673
@ernest9673 6 лет назад
code from last three tutorials doesn't work. You wasting your time doing it and out time trying to figured out whats wrong with it.
@dubidynakay9431
@dubidynakay9431 5 лет назад
not working :(
@komalganthade4962
@komalganthade4962 6 лет назад
i want previous video
@siddharthdhawan3397
@siddharthdhawan3397 5 лет назад
wonderful Code........ works and Github code helped me a lot , For "To" button error just add Try Catch block it will work only for 1 time as Direction API limit is 1 per day for free users. How can I increase this quota if anybody knows please reply me
@karthikap5909
@karthikap5909 7 лет назад
Java files are Empty. Please Include the Java files
@TechAcademy8
@TechAcademy8 7 лет назад
I am uploading them now. Sorry about that.
@karthikap5909
@karthikap5909 7 лет назад
Tanq mam for your consideration. Please include the source code for the Duration Tutorial.
@karthikap5909
@karthikap5909 7 лет назад
Tanq Mam..
@shrikantgaddapati5968
@shrikantgaddapati5968 6 лет назад
hey bro, do you have the code, which combines distance , timing aand the direction.pls help out bro
@romside1336
@romside1336 6 лет назад
mi gud frind it dosent work. thirs en err on JSONArry.Length();
@user-fi2db3lv7q
@user-fi2db3lv7q 6 лет назад
mine also
@galazim6362
@galazim6362 6 лет назад
me too
@Ekjyot07
@Ekjyot07 6 лет назад
Your source code and videos never match. :(
@Ekjyot07
@Ekjyot07 6 лет назад
yes, true!
@frazbakht4480
@frazbakht4480 6 лет назад
No video is good if i have to watch another video before it. Please make independent videos
@shivamgautam3115
@shivamgautam3115 6 лет назад
Errors Errors and Only errors
@dhairyabhatt3156
@dhairyabhatt3156 6 лет назад
copy paste copy paste and only copy paste teri life copy paste mai nikal jayegi dost
@YashNagayach
@YashNagayach 6 лет назад
Saho bola
@krithikas1794
@krithikas1794 7 лет назад
how to get dotted lines instead of straight line for the path?
@masbro1901
@masbro1901 6 лет назад
how to clear route from the android ?, i want if user click, it will clear the route and start again
@dance3309
@dance3309 6 лет назад
I have the same problem
@bengzhongliew9447
@bengzhongliew9447 7 лет назад
i have an error when place the marker and click on TO button it straight close my app.
@kirkdouglas8089
@kirkdouglas8089 7 лет назад
You need to create a google direction api key, its on the video before this one, not the normal api key or the one she have, make your own one.
@mohamedkhamis8941
@mohamedkhamis8941 6 лет назад
Sprite & Dreams its not working
@wannacry4064
@wannacry4064 6 лет назад
I have the same problem too! Did you found the solution ?
@growplus6315
@growplus6315 5 лет назад
But in my project console it is showing the same key for all Services
@Degenbrecher717
@Degenbrecher717 7 лет назад
How to remove the previous polyline then generate a new one?
@sollekram
@sollekram 6 лет назад
just clear the mMap
@angeltemelko6544
@angeltemelko6544 6 лет назад
how to remove the polyline when i like?
Далее
QR and Barcode Scanner  |  Android Tutorial
18:54
Просмотров 167 тыс.
Думайте сами блин
18:15
Просмотров 257 тыс.
Google Maps  |  Duration  (Android Tutorials)
19:51
Просмотров 50 тыс.
10 Best Travel Map Animation Templates
4:58
Просмотров 209 тыс.
Android app to Track your location using Google Map API
27:38
Espresso Testing Java
18:43
Просмотров 606
Android Maps: Part 1: Basic Maps
24:32
Просмотров 137 тыс.