How to convert an address into a Google Maps Link (NOT MAP)

前端 未结 14 1971
借酒劲吻你
借酒劲吻你 2020-12-02 03:38

After looking (Googling) on the web for a while, I can find nothing that takes an address like:

1200 Pennsylvania Ave SE, Washington, District of Columb

14条回答
  •  攒了一身酷
    2020-12-02 04:23

    The C# Replace method usually works for me:

    foo = "http://maps.google.com/?q=" + address.Text.Replace(" ","+");
    

提交回复
热议问题