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

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

    To open the google maps app in android:-

    geo:,?z=
    

    open app with marker for give location:-

    geo:,?q=,(Label,Name)
    

    open google map in ios:-

    comgooglemaps://?q=,
    

    open google maps in browser with following parameters:-

    http://maps.google.com/maps?z=12&t=m&q=,
    
    • z is the zoom level (1-21)
    • t is the map type ("m" map, "k" satellite, "h" hybrid, "p" terrain, "e" GoogleEarth)
    • q is the search query

提交回复
热议问题