Saving User GPS Coordinates in a Database

  Рет қаралды 59,726

CodingWithMitch

CodingWithMitch

Күн бұрын

Link to the playlist: goo.gl/pfGNnw
How to save the GPS coordinates of a user in a database.
➤Google Maps and Directions Playlist:
↻ goo.gl/v8Eu1m
➤Source Code:
↻ goo.gl/vqgTw5
➤Website
↻ codingwithmitc...
↻ store.codingwi...
➤Instagram:
↻ / mitch.tabian

Пікірлер: 27
@theai2020
@theai2020 2 жыл бұрын
how to achieve the same method in koltin as declaring the userloctaion globally and then inserting the data from different function
@fabrizioalmeida8435
@fabrizioalmeida8435 5 жыл бұрын
you are Fantastic, tks for all video that you made, it´s a nice to see all things that is going further, sorry mi inglish i just Brasilian guy with no mutch skills on languages. :)
@vrowmuria
@vrowmuria 4 жыл бұрын
In this example you are using Firebase - Cloud Firestore. What is the difference between above and Firebase - Realtime Database? Do you have any example on how to store current map location in Realtime Database?
@Christopher-pe6zj
@Christopher-pe6zj 4 жыл бұрын
Lol your tutorials my dude are spot on!
@debarghyamaity9808
@debarghyamaity9808 3 жыл бұрын
Hey! Great Video! Could you suggest a way of actually storing the user's location throughout a day(for example). So that later we can keep a track.
@MosesHashim3
@MosesHashim3 4 жыл бұрын
Hey man, thanks for the video, but you made it kind of confusing! it would be better to start from the beginning step by step! Thanks
@ashishucheniya8691
@ashishucheniya8691 5 жыл бұрын
sir why this user field automatically added to your user Locations collection? you did not do that thing.
@natures_photography09
@natures_photography09 4 жыл бұрын
Sir, How to create custom id (like with username or phoneno.) for document in firebase firestore instead of autogenerated Firestore unique Id??
@snsteck
@snsteck 4 жыл бұрын
how can we store location coordinates in firebase ,,,,,please explain ******
@kowshigansenthilrajah3760
@kowshigansenthilrajah3760 5 жыл бұрын
Hi Mitch. I tried running after following the exact steps. I get an error at line 207 (mUserLocation.setGeoPoint(geoPoint);) saying "Attempt to invoke virtual method on a null object reference". I checked the code several times. Its just as what you showed. Please help me.
@jyotsnakc8123
@jyotsnakc8123 4 жыл бұрын
Getting user coordinates using GeoPoint is not available in android studio anymore, Geocoder is used currently mFusedLocationClient.getLastLocation().addOnCompleteListener(new OnCompleteListener() { @Override public void onComplete(@NonNull Task task) { double lat,lng; List user = null; if (task.isSuccessful()) { Location location = task.getResult(); Geocoder geocoder = new Geocoder(MainActivity.this); try { if(location!=null) { user = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1); mUserLocation.setGeo_point(geocoder); mUserLocation.setTimestamp(null); saveUserLocation(); } } catch (Exception e) { e.printStackTrace(); } } } }); use this and make appropriate change in pojo of user Locations to use GeoCoder instead of GeoPoint
@didac7667
@didac7667 4 жыл бұрын
I know this is end but, i want to save a route (a list or ArrayList of coordinates), can you give me some hints or advice of how to do it? Thanks😊😊
@ilhamsyahmin4435
@ilhamsyahmin4435 2 жыл бұрын
Hi.. im humbly request you to make tutorial to get timestamp when user enter or exit geofence. Please notice
@ArunSriramula1
@ArunSriramula1 5 жыл бұрын
Sir can't checkout the branch giving an error: unable to unlink old 'app/google-services.json': Invalid argument Could not reset index file to revision 'HEAD'.
@codingwithmitch
@codingwithmitch 5 жыл бұрын
You need your own google services JSON file. Did you watch the first videos?
@ArunSriramula1
@ArunSriramula1 5 жыл бұрын
Yeah I did but it still gave me that error so I deleted it and reinserted at the same place so that worked for me
@devsang
@devsang 5 жыл бұрын
Have for ios?
@einarsdandens8961
@einarsdandens8961 4 жыл бұрын
Hello vhat open wrong internet adress
@freshfast6197
@freshfast6197 6 жыл бұрын
5:15 UserLocation pojo class
@codingwithmitch
@codingwithmitch 6 жыл бұрын
Yes I made a pojo
@freshfast6197
@freshfast6197 6 жыл бұрын
@@codingwithmitch You are so innocent
@devarshbhatt5612
@devarshbhatt5612 6 жыл бұрын
sir can you please explain this topic but with php i mean how to save user's co-ordinates on database using php
@AkbaraliQ
@AkbaraliQ 4 жыл бұрын
Please Speak Clear and Complete in proper way.
Creating a Singleton User Object
4:45
CodingWithMitch
Рет қаралды 10 М.
Building a Service for GPS Updates
16:34
CodingWithMitch
Рет қаралды 15 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Getting GPS Coordinates of Other Users
10:42
CodingWithMitch
Рет қаралды 11 М.
How to Structure Your Data | Get to know Cloud Firestore #5
13:57
Displaying a Google Map using a MapView
9:55
CodingWithMitch
Рет қаралды 75 М.
Get users location with Javascript geolocation
13:54
iEatWebsites
Рет қаралды 60 М.
OAuth 2.0 explained with examples
10:03
ByteMonk
Рет қаралды 185 М.
Real-Time GPS User Tracking Geolocation API JavaScript Programming
13:38
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 100 М.
Retrieving the Device Location
6:12
CodingWithMitch
Рет қаралды 21 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН