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

前端 未结 14 2002
借酒劲吻你
借酒劲吻你 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:10

    How about this?

    https://maps.google.com/?q=1200 Pennsylvania Ave SE, Washington, District of Columbia, 20003

    https://maps.google.com/?q=term
    

    If you have lat-long then use below URL

    https://maps.google.com/?ll=latitude,longitude
    

    Example: maps.google.com/?ll=38.882147,-76.99017

    UPDATE

    As of year 2017, Google now has an official way to create cross-platform Google Maps URLs:

    https://developers.google.com/maps/documentation/urls/guide

    You can use links like

    https://www.google.com/maps/search/?api=1&query=1200%20Pennsylvania%20Ave%20SE%2C%20Washington%2C%20District%20of%20Columbia%2C%2020003 
    

提交回复
热议问题