samedi 23 juillet 2016

Marker title on google map

Current Scenario I need a solution regarding google map ,Currently i am able to open google maps via both url and sdk i want to populate title on the marker of google map while i open it via browser .

NSString *url = [[NSString alloc]initWithFormat:@"http://maps.googleapis.com/maps/api/geocode/xml?address=%@+%@+%@",road_Str,pin_Str,city_Str];
    NSLog(@"str%@",url);
        CLLocationCoordinate2D rdOfficeLocation = CLLocationCoordinate2DMake([[latArr objectAtIndex:0] doubleValue], [[lngArr objectAtIndex:0] doubleValue]);
        NSString *str = [NSString stringWithFormat:@"comgooglemaps://?q=%@,%@,%@&center=%f,%f",road_Str,city_Str,pin_Str,rdOfficeLocation.latitude,rdOfficeLocation.longitude];
        NSURL *url = [NSURL URLWithString:str];

Aucun commentaire:

Enregistrer un commentaire