0
I already use mapkit for development on iOS, but I wonder if anyone knows how in the code to add friends, show on the map other people nearby.
PS. or even an example code for this function, thank you.
0
I already use mapkit for development on iOS, but I wonder if anyone knows how in the code to add friends, show on the map other people nearby.
PS. or even an example code for this function, thank you.
1
There is no native resource of MapKit
that you can do this.
A good practice for this would be to set up a database that collects the location information of other users. From this basis you make requests for this information. For example, the application service collects the location and sends it to the server. Other users for such information make the request.
A second option is still a kind of communication peer-to-peer between the devices (which I do not give you full assurance that it is functional on such occasion), exchanging information with the locations, which in my opinion I believe to be fully unviable in this situation.
I hope I’ve helped.
Browser other questions tagged ios objective-c xcode
You are not signed in. Login or sign up in order to post.
I believe there is no mechanism within the
MapKit
already doing so. You would need to implement a server/backend that knows all people’s locations and return them for you to display on the map.– Douglas Ferreira
I understand, the Findmyfrieds app would be an example of this.
– Welington Gomes