How do I link to Google Maps with a particular longitude and latitude?

前端 未结 15 2389
夕颜
夕颜 2020-12-02 04:49

I have a small application that gives the current location: longitude and latitude. Now I have to browse to google maps with the longitude and latitude. Please suggest how I

15条回答
  •  醉话见心
    2020-12-02 05:00

    As of today (2014/09/23), I've found that to get marker on exact place (not an approximation) you can use:

    http://www.google.com/maps/place/49.46800006494457,17.11514008755796
    

    Additionally, if you want to specify map center and zoom:

    http://www.google.com/maps/place/49.46800006494457,17.11514008755796/@49.46800006494457,17.11514008755796,17z
    

    If you want to use satellite map type, then append /data=!3m1!1e3

    http://www.google.com/maps/place/49.46800006494457,17.11514008755796/@49.46800006494457,17.11514008755796,17z/data=!3m1!1e3
    

    And If you want terrain view of the map, then append /data=!3m1!4b1

    https://www.google.com/maps/place/49.46800006494457,17.11514008755796/@49.46800006494457,17.11514008755796,17z/data=!3m1!4b1
    

提交回复
热议问题