View Full Version : Best practice - fetching places for applications with maps

May 19, 2010, 05:42 AM

Let's say I want to code an app like the google maps one:
- When the user scrolls the screen I get information about the places in the screen bounds.
- For each place returned I creates a marker (annotation) on the map, that if the user taps on, an overlay with the place name and a ">" button is shown.
- When the user clicks the > button, he sees a page with full information about the place.

Question - what is the best approach in such cases - when I get the information about all the places in the screen bounds:
1) The server returns all the data about each place (id, coordinates, name, extra details).
2) Only return the id and coordinates of the place, and when the user taps the marker, I fetch its data from the server ?