HOW TO add random markers to a map BUT avoiding the sea?

前端 未结 3 1701
感动是毒
感动是毒 2020-12-29 16:54

The Google Ajax API playground (http://code.google.com/apis/ajax/playground/?exp=maps#map_markers) provides a nice exemple to add random markers to any map:

         


        
3条回答
  •  情歌与酒
    2020-12-29 17:41

    I'm creating a C# program that takes the users input as where they want to go and then based on that, it points them to a random location that matches their specifications.

    "http://maps.google.com/maps/geo?q=29,-55" is the webpage that i'll use to determine if it's on land or not.. take a look at the specific "Accuracy: 0" string of the results of a page. If it's accuracy 0 then it's in the ocean. If it's 1 or higher then it's on land.

提交回复
热议问题