Can I get weather for my location?
Answer / Dileep Yadav
Yes, you can retrieve the current weather for your location using the Bing Maps SDK. The SDK provides a LocationService class that helps to determine the user's location and get related data like weather. Here's a simple example:
```csharp
var map = new MapControl();
var locationService = new LocationService(map);
locationService.GetLocationAsync().ContinueWith((task) =>
{
if (task.IsFaulted || task.IsCanceled)
{
// handle errors
}
else
{
var geoCoordinate = task.Result;
// use the geoCoordinate to make a request for weather data
}
});n
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain how to get the geolocation data on a picture?
Explain where is xmldocument class?
Explain how to dismiss the sip programmatically?
Suppose have a very simple application that uses the applicationbar. The app bar shows one menu item when in portrait. However as the second image shows theapp bar displays now items in landscape mode. Is that by design or a bug?
Can I open sockets in windows phone?
What is windows phone media support?
Explain Windows Phone Hardware?
The MarketPlace Launchers overloads for Show has parameters, what are these?
Is it possible to run two instances of emulator on the same machine. I am doing some networking app and need two emulators to test it?
Tell me can I get weather for my location?
How to edit locations for local?
Tell me can I write multi-player games using wi-fi or blue tooth in the device.?