I would like to plot markers on Google Maps for iOS, and this by including JSON file that will includes longitude and latitude. I can do it manually in the code, by replacing the values. The problem is that I don't know how to show new markers on the map from JSON file.
Here is my code :
- (void)addDefaultMarkers { // Add a custom 'glow' marker around Sydney. GMSMarker *sydneyMarker = [[GMSMarker alloc] init]; sydneyMarker.title = @"Sydney!"; sydneyMarker.icon = [UIImage imageNamed:@"glow-marker"]; sydneyMarker.position = CLLocationCoordinate2DMake(25.062718, 55.130761); sydneyMarker.map = mapView_; GMSMarker *melbourneMarker = [[GMSMarker alloc] init]; melbourneMarker.title = @"Melbourne!"; melbourneMarker.icon = [UIImage imageNamed:@"arrow"]; melbourneMarker.position = CLLocationCoordinate2DMake(25.100822, 55.17467); melbourneMarker.map = mapView_; }
Any ideas on how to do it ?