Note that there are some explanatory texts on larger screens.

plurals
  1. POjson vs xml annotations for mapkit
    text
    copied!<p>I have been working on a maps application (iphone) originally I had my annotations set up to pull XML from google using their Places API. I'm having <strong>3 issues</strong>.</p> <ol> <li><p>For my annotation info, I was going off of an example from Zen (http://www.zen-sign.com/finding-business-listings-and-displaying-with-mapkit-part-1/ ) and he has it set up to do it by keyword, which wasn't really necessary for me ( but I used it anyway just to get a feel for getting the annotations) in the parser header he has:</p> <pre><code>-(void) getBusinessListingsByKeyword:(NSString*)keyword atLat:(float)lat atLng:(float)lng; </code></pre> <p>and in the the viewdidload of his view controller</p> <pre><code>[locationsMap findLocationsByKeyword:@"Apple" ]; </code></pre> <p>I'm not sure how to move from the keyword parse version used in zen to something that just does it automatically (in the parser object- without the viewdidload in a different view controller if possible).</p> <p>Any advice on what to read/watch or sample code much appreciated</p></li> <li><p>For places information Google isn't the only kid on the block and XML I hear comes in second to JSON. So I wanted to know what the best practice was for map annotations made from business information: JSON or XML?</p></li> <li><p>The other issue I was having was only getting 10 annotations (I want to get 50 or more). So on top of your advice on using XML or JSON. How to I increase the amount of annotations I'm getting.</p></li> </ol> <p>Sorry for making this 3 parts but again any tutorials (text of video) would be very helpful. (So far I've watched hegarty from Stanford, Larson from MATC)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload