コード例 #1
0
 /// <summary>
 /// Use the name of the city and province to mark a city on the map. Takes CityInfo's LatLng object.
 /// </summary>
 /// <param name="city"></param>
 /// <returns>URL of the map location on Bing</returns>
 public string ShowCityOnMap(CityInfo city)
 {
     // First get lat and lng of the city
     return($"https://www.bing.com/maps?osid=1ef6d360-9e26-4037-a160-f8f8495a46db&cp={city.Latitude}~{city.Longitude}&lvl=11&style=h&v=2&sV=2&form=S00027");
 }