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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -