tags:

views:

34

answers:

2

Generally speaking, how does an app like "Around Me" acquire the information it displays? For example: the restaurants that show up in a list that are near me with the address and distance (I think I get the distance piece) where is this information extracted from? Is it Google or something?

I'm not asking how to implement this (that's over my head!) just get an idea of how it occurs. Thanks StackOverFlow people.

A: 

I haven't seen that specific app, but most such apps either have an embedded database of locations or they dynamically query a server back-end (e.g. using HTTP) to fetch a set of locations near you. They know where you are because the app has access to location services to find out your geographic location.

Shaggy Frog
A: 

The iPhone has a GPS unit which gives you your latitude and longitude, which it then sends to a backend server (Say Google Maps) and queries it for, in your case a restaurant. The server responds with a set of locations around you.

Tejaswi Yerukalapudi