URL for multiple markers in Google Maps

前端 未结 4 967
鱼传尺愫
鱼传尺愫 2020-12-01 04:34

In a desktop Qt application, I have some GPS coordinates that I\'d like to show on a map. My plan is to construct an URL with the coordinates and let a web browser and Googl

4条回答
  •  余生分开走
    2020-12-01 05:17

    for google maps static there is this URL:

    http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap
    &markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318
    &markers=color:red|label:C|40.718217,-73.998284&sensor=false&key=MAPS_API_KEY
    

    Detailed version:

    http://maps.google.com/maps/api/staticmap?
    center=Brooklyn+Bridge,New+York,NY
    &zoom=14
    &size=512x512
    &maptype=roadmap
    &markers=color:blue|label:S|40.702147,-74.015794
    &markers=color:green|label:G|40.711614,-74.012318
    &markers=color:red|label:C|40.718217,-73.998284
    &sensor=false
    &key=MAPS_API_KEY
    

    i am not sure if this syntax is also good for standard maps

提交回复
热议问题