Add marker to google maps in ios using url scheme -


when tap on "open in google maps" button in application, want application navigate google maps application , open address specified , put marker it.

here code purpose:

uialertaction* googlemaps = [uialertaction actionwithtitle:nslocalizedstring(@"google_maps", @"google maps") style:uialertactionstyledefault handler:^(uialertaction * action) {     nsstring *customurl = @"comgooglemaps://?center=41.039400,28.994583&zoom=16&markers=size:mid%7ccolor:0xff0000%7clabel:1%7cvodafone+arena+stadyumu";     [[uiapplication sharedapplication] openurl:[nsurl urlwithstring:customurl]]; }]; 

when tap on button, correctly navigates specific location. however, not put marker it. there way achieve this?

thanks :)

as per google doc, format specified in code wrong:-

example:-

comgooglemaps://?q=vodafone+arena+stadyumu&center=41.039400,28.994583&zoom=15&views=transit 

this shows marker in center of map


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -