How to Calculate Distance Between Two Places in Android Studio | CalculateDistance | Android Coding

  Рет қаралды 24,155

Android Coding

Android Coding

Күн бұрын

Пікірлер: 76
@lglf77
@lglf77 4 жыл бұрын
I'm your fan. Channel on the simplest you tube and summarized in the presentation of the codes, which I have seen in my life. Thankful that you exist in my life.
@AndroidCoding
@AndroidCoding 4 жыл бұрын
I’m truly blessed to have fans like you.
@alzheimer4134
@alzheimer4134 2 жыл бұрын
Hello all, thanks for the video, 1. You must have enabled maps API, Places API and Billing (Just for google to know that you are not a robot, there is no cost) 2. close to line 118 the "lat/lng; " is from mistake with semicolon. The correct line is: sDestination = sDestination.replaceAll( "lat/lng: ",");
@carloliverkrueger5801
@carloliverkrueger5801 Жыл бұрын
very helpful thanks keep it up
@AndroidCoding
@AndroidCoding Жыл бұрын
Thank you
@amirulmustaffa4806
@amirulmustaffa4806 4 жыл бұрын
Hi sir, at 4:53 where can i get the google API key?
@hassanmujtaba9510
@hassanmujtaba9510 3 жыл бұрын
My intent loads up properly and I am able to type the address in and the list comes. But when I press on one of the options from the list the app closes! Please help!
@deena5895
@deena5895 3 жыл бұрын
how did u calculate the distance? are using haversine method?
@HarshGupta-nu6pu
@HarshGupta-nu6pu 2 жыл бұрын
is this disttance is throught road or is it like straight distance between two point
@bryanchristopher1453
@bryanchristopher1453 5 ай бұрын
when i started type the address, the focus of edittext lost and i cannot get any list places, please help me
@mitalij1703
@mitalij1703 10 ай бұрын
is it possible with pincodes if yes then how can i do that can you guide me or make any video on that
@samiullah9982
@samiullah9982 4 жыл бұрын
Sir this is only for two places, if one person or place find different places then what will be the method ? please Help.
@teaminnovatron1206
@teaminnovatron1206 4 жыл бұрын
is this air distance or land distance?
@jassranaeem445
@jassranaeem445 4 жыл бұрын
Hey!can u pls make tutorial on calculate distance and duration from current location to headcoded loxatuon(marker)
@tipscodes6335
@tipscodes6335 3 жыл бұрын
Hello sir why when i try to type my address in edittext it keep alway go back. It didn't show the address.
@AndroidCoding
@AndroidCoding 3 жыл бұрын
Kindly use paid api key(Billing Account).
@tipscodes6335
@tipscodes6335 3 жыл бұрын
@@AndroidCoding thanks
@AndroidCoding
@AndroidCoding 3 жыл бұрын
Welcome
@tipscodes6335
@tipscodes6335 2 жыл бұрын
Hello .. can you get an paid api.. Philippines is not applicable this. I chat google customer service.. and they said Philippines is not. Available.
@tipscodes6335
@tipscodes6335 Жыл бұрын
Hello sir I'm back. Can I ask how much will I pay in order to able this project?
@sitansusekharbehera7142
@sitansusekharbehera7142 4 жыл бұрын
Sir please suggest me how can I draw the route between these two locations from 2 edit text and showing it in map please suggest.
@abdullahiomar4398
@abdullahiomar4398 3 жыл бұрын
my startActivityForResult is deprecated can you show as another method to replace without much changing plz
@AndroidCoding
@AndroidCoding 3 жыл бұрын
Try this : kzbin.info/www/bejne/fqnPcp6qmsl8nq8
@shramanjain08
@shramanjain08 4 жыл бұрын
it is not working when i click on edit text it automatically open intent then before typing it automatically close ??????? please help
@pranavpatel7859
@pranavpatel7859 4 жыл бұрын
Did you found any solution??
@luizpaulo6169
@luizpaulo6169 4 жыл бұрын
same problem here..
@luizpaulo6169
@luizpaulo6169 4 жыл бұрын
solved.. u need to enable Place API. 1. Go to u API Panel on google cloud console 2. Select Libs (second option) 3. search for Places API, select it and set Enable Now go to Credetials and create u API Key, copy and paste the key to your Places.initialize(requireContext(), getString(R.string.api_google_key), Locale.getDefault()); It works for me. Hugs from Brazil.
@orito-hireminitrucksonline183
@orito-hireminitrucksonline183 3 жыл бұрын
Enable billing account and places api. It will run
@Z3rbir0us
@Z3rbir0us 3 жыл бұрын
@@luizpaulo6169 where is the API panel? and google cloud
@rahitulislam3042
@rahitulislam3042 4 жыл бұрын
Hello...how can i get the source code...please tell me...because my code is not working..please
@ishasaikumar868
@ishasaikumar868 4 жыл бұрын
Can you tell me what API u used to generate the key?
@prabashanasandaruwan
@prabashanasandaruwan 4 жыл бұрын
places API
@jpbatalla5001
@jpbatalla5001 4 жыл бұрын
what API should i enable ? Places, distance matrix api, and Maps ?
@AndroidCoding
@AndroidCoding 4 жыл бұрын
Enable both map and places.
@TheCodingChronicles254
@TheCodingChronicles254 2 жыл бұрын
I have done everything as you have shown but my code is not working
@shaunakchaudhary2178
@shaunakchaudhary2178 3 жыл бұрын
What is the cost for using the google maps API ?
@rahitulislam3042
@rahitulislam3042 4 жыл бұрын
Hi bro...there is a place searching problem..please help....
@lukecross5439
@lukecross5439 4 жыл бұрын
Work for all countries?
@Palifico18
@Palifico18 4 жыл бұрын
I downloaded the .apk in my smartphone, and when I try to search something, it says "Can´t connect" all time
@colenevargas1937
@colenevargas1937 3 жыл бұрын
Whenever I type location, it didn't search, keyboard will pop down, why is that? Can u help me?
@AndroidCoding
@AndroidCoding 3 жыл бұрын
It's happen when you're using unpaid api key. For this tutorial need a billing account.
@deependrabishwakarma4612
@deependrabishwakarma4612 3 жыл бұрын
@@AndroidCoding i have billing account although i am getting the same problem , plz make video on api key setup, manifest declaration and all .
@deependrabishwakarma4612
@deependrabishwakarma4612 3 жыл бұрын
@@AndroidCoding now its working, before i had a problem in key restriction, thanks a lot for this tutorial. hats off
@AndroidCoding
@AndroidCoding 3 жыл бұрын
You're welcome. Keep supporting.
@tomenamfon4446
@tomenamfon4446 4 жыл бұрын
Can you help, sort by distance ?
@vishalkumavat6755
@vishalkumavat6755 4 жыл бұрын
hey bro please make a tutorial video on realtime live streaming app just like instragram have this live stream feature on any place or function.
@sahilmehta5211
@sahilmehta5211 4 жыл бұрын
Android Coding you should make a video on real time application using any cloud service and Great Work🙌👍
@AndroidCoding
@AndroidCoding 4 жыл бұрын
Ok. I will try it later.
@prathameshchikane6783
@prathameshchikane6783 4 жыл бұрын
not working properly.....when i try to add source or destination place in EditText it automatically comes out....plz tell me solution.And how to get that google_api_key which was u used in code.
@davidkumar6290
@davidkumar6290 4 жыл бұрын
because you need to have a working PlacesAPI key , without that you wont be able to use placesautocomplete feature.
@zemera1382
@zemera1382 4 жыл бұрын
places" not found error how to add this library
@rahitulislam3042
@rahitulislam3042 4 жыл бұрын
Try places*
@Z3rbir0us
@Z3rbir0us 3 жыл бұрын
Same problem here, when i select the source or the destination and enter a word or letter it closes automatically, Help plzzz
@inesgarciasacristan3408
@inesgarciasacristan3408 3 жыл бұрын
Have you already solve the problem?? I have the same error.
@shreyajaiswal1081
@shreyajaiswal1081 4 жыл бұрын
Not working
@canopycode900
@canopycode900 4 жыл бұрын
it works for me but the result is not similar to google maps's result
@eliteteam562
@eliteteam562 4 жыл бұрын
hello
@eliteteam562
@eliteteam562 4 жыл бұрын
can you give me your source code
@EntrepDiaries
@EntrepDiaries 4 жыл бұрын
I think this program takes the radius. Google map is using directions.
@user-ib8hk1en4c
@user-ib8hk1en4c 3 жыл бұрын
demo app is not working (Android 11). Sorry.
@mohanbhatnagar6863
@mohanbhatnagar6863 3 жыл бұрын
brother how to get google api keys
@sayedurrahman474
@sayedurrahman474 4 жыл бұрын
creat a next video on how to add nearby places like hospitals and railway airport ATM etc
@AndroidCoding
@AndroidCoding 4 жыл бұрын
Ok. I will try it later.
@qingwenhoo6478
@qingwenhoo6478 3 жыл бұрын
Hi sir, the startActivityForResult was deprecated and I also try the to change to ActivityResultLauncher but I don't know how to change it. Can you show me how to change it. Thanks you so much!
@AndroidCoding
@AndroidCoding 3 жыл бұрын
You're welcome. Try this : kzbin.info/www/bejne/fqnPcp6qmsl8nq8
@TopChoc
@TopChoc 3 жыл бұрын
В этом видео прекрасно всё! Продолжай в том же духе
@umeshjagtap5709
@umeshjagtap5709 2 жыл бұрын
This app is not working waste of 22 mins
@foodiezz9788
@foodiezz9788 3 жыл бұрын
wrong calculation
@patelkriyank1081
@patelkriyank1081 2 жыл бұрын
Hello sir why when i try to type my address in edittext it keep alway go back. It didn't show the address. and i have also using billing account.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Humanoid Robot Trends to Watch in 2025
4:17
CNET
Рет қаралды 1,2 М.
Generate PDF file from your android app in minutes!
20:45
Technopoints
Рет қаралды 367
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН