-4

How can I code into my app so that I can see a map view of all the users who have downloaded the app in my area?

rmaddy
  • 307,833
  • 40
  • 508
  • 550
jwestley
  • 11
  • 4

1 Answers1

0

This is kind of a complex question for being only one sentence. But I'll give it a go:

You need to have an app itself. When a user downloads the app, you need to get the user's location.

You then need to upload the user's location to a server. Likely, you'd do something like a POST request.

But, to be able to upload the user's location, you'd have to have somewhere to receive, store, and process the information. You'd need a backend server for this.

Then, you'd want to be able to send a GET request to get a list of the locations that are the closest to the user's location. You'd get back a JSON object.

Here, you'd want to parse through the result and populate an array with MKAnnotations. Then you'd add those annotations to a map view.

It's all very doable, but requires multiple steps inside and outside of your app.

Community
  • 1
  • 1
Fennelouski
  • 2,391
  • 1
  • 18
  • 25