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

前端 未结 15 2357
夕颜
夕颜 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:16

    As of today (1st November, 2020), Google provided a provision of Universal URL which works quite efficiently on cross-platforms and thus, Google recommends this method.

    Syntax: https://www.google.com/maps/search/?api=1&query=,

    Example : https://www.google.com/maps/search/?api=1&query=28.6139,77.2090 (New Delhi, India)

    Documentation/Source.

提交回复
热议问题