My goal is let say if user A toggle the switch
When it is on, On User B's screen will show the current location of User's A
and whenever User A is moving to another coordinates, User B could see he is moving something like Uber.
Im using node.js to run the backend and socket.io for real-time communication.
The questions are
How do i show current user's location to another user on Google Maps IOS sdk?
Do i need any real-time communication to keep updating the position of User A on User B's screen?
Related
I would like to simulate a car trip in my real IOS device connected on my MAC-OS computer.
I tried with libimobildedevice set location that can virtualize your device GPS location as you want but it is not exactly my goal.
e.g.
idevicesetlocation -- LAT LONG
I mean my attempt is not able to consider the speed/velocity of the trip and in my case is really important. It consists only in set location, set location, set location... and so on so far.
I have to reproduce the same trip that you have manually, please consider the following scenario:
MANUALLY
you bring you mobile phone
you have your gps location enabled
you bring your car
you make a trip
you open google maps
google maps show you the transition
google maps show you the speed/velocity of your transition between locations while travelling
AUTOMATICALLY
I can reach everything except for the last point "google maps show you the speed/velocity of your transition between locations while travelling" because google maps UI feedback does not show the speed. The UI feedback remains --/-- km/h. I would remark MANUALLY works.
Is it possible to share user's location to other user (of the same app)? I want to build a geolocation sharing app that pings/notifies user A once user B has crossed a certain radius. Doable with firebase or a similar third party? thank you in advance
Let me see if I understand, what you want to do is:
1 - If user A passes near user B (on the street), notify both users that they are nearby?
2 - Do you want to share the user's location through an application and send it to another user, either through a social network or email?
If it is option 1, you will have to obtain the latitude, longitude and accuracy of the users and keep sending and obtaining it from Firebase every so often (or through a socket connection like socket.io) and make a match and calculate the radius or distance between both points.
I've recently started to learn how to develop with Xcode and I have a question about the map and gps services.
Does anyone know what kind of resources I would have to use if I wanted to have a map in my app that shows the location of other people who use the app?
I have a general idea that each person would need an account for my app,
But would I have to put everyone's gps coordinates onto a server (SQLite?) and then constantly make the app fetch this information?
I am aiming for a similar concept that the app Called "Uber" uses where you can see taxi drivers around you and they are moving.
Yeah, you will probably need to store each user's GPS coordinates somewhere in a database. Then you can draw annotations on Apple's map view or on a map view that Google provides in their iOS helper once you fetch information from the database. I would not constantly update the user's map though. You should update it every 5 minutes, or when the user asks for it to be refreshed either through a button or some other form. Also if you plan to find the nearest user to them from the database I recommend using the Haversine Forumula (http://rosettacode.org/wiki/Haversine_formula).
In my app, I am using CLLocationManager to get user's current location.
The problem is, most of the time, user would be indoor, or not very far from the building entrance when they launch my app for the very first time. As a result the location I get is not very accurate(more than 1km off).
Yet, at the same time, if I open either Google Map or Apple Map, they are able to display location with little discrepency(a few hundred meters). How they manage to do that ?
I am trying to build an app where the user's current location will be displayed. I have done this by using reverse geocoding and I am getting the right address of the user current location. But now I want to get all the possible location that will match against the location entered by the user in the search box. Also I just want to show the location name in the table view but not on the map. Thanks.