How to open google maps app with a dropped pin ? - Swift

前端 未结 9 1791
无人共我
无人共我 2020-12-31 09:26

I have this code to open Google Maps App with specific location and it\'s working but what I need is to drop a pin on that location, is it possible ?

if (UIA         


        
9条回答
  •  一整个雨季
    2020-12-31 09:56

    This simple URL scheme works for me

    URL(string: "comgooglemaps://?q=\(lat),\(lng)")
    

    P.S. But don't forget to add comgooglemaps URL scheme to Info.plist

提交回复
热议问题