Best practice - fetching places for applications with maps

Discussion in 'iOS Programming' started by dorong, May 19, 2010.

  1. dorong macrumors newbie

    May 19, 2010

    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 ?


Share This Page