I need to create a route on the Windows Phone map. The place of departure is the location of the phone, which I capture through the Geolocator and Geoposition classes. The place of arrival is an address already premeditated, but will not be in coordinates (Example: "Avenida Recife, Pernambuco"). In order to insert it into the method for creating the route, the address must be in coordinates and I can not find a way to do this conversion.
Here's an example of how I'm doing this route:
async void ObterLocalizacaoAsync(double latitude, double longitude)
{
Geolocator localizacao = new Geolocator();
localizacao.DesiredAccuracy = PositionAccuracy.High;
Geoposition posicao = await localizacao.GetGeopositionAsync();
latitude = posicao.Coordinate.Latitude;
longitude = posicao.Coordinate.Longitude;
}
void appRotaButton_Click(object sender, EventArgs e)
{
ObterLocalizacaoAsync(latitude, longitude);
MapsDirectionsTask rota = new MapsDirectionsTask();
rota.Start = new LabeledMapLocation("Sua posição", new GeoCoordinate(latitude, longitude));
rota.End = new LabeledMapLocation("Posição final", <coordenada-do-endereco>);
rota.Show();
}