Exemplo n.º 1
0
    protected void btnSubmit2_Click(object sender, EventArgs e)
    {
        BingMapsService.Service1Client fromService = new BingMapsService.Service1Client();

        Double.TryParse(txtLat.Text, out double lat);
        Double.TryParse(txtLong.Text, out double lon);

        lblAdd.Text = fromService.getAddress(lat, lon);
    }
Exemplo n.º 2
0
    protected void btnSubmit4_Click(object sender, EventArgs e)
    {
        BingMapsService.Service1Client fromService = new BingMapsService.Service1Client();

        IMGMap.ImageUrl = fromService.getMap(txtStartAdd2.Text, txtDestAdd2.Text);
    }
Exemplo n.º 3
0
    protected void btnSubmit3_Click(object sender, EventArgs e)
    {
        BingMapsService.Service1Client fromService = new BingMapsService.Service1Client();

        lblInstructions.Text = fromService.findRoute(txtStartAdd1.Text, txtDestAdd1.Text);
    }
Exemplo n.º 4
0
    protected void btnSubmit1_Click(object sender, EventArgs e)
    {
        BingMapsService.Service1Client fromService = new BingMapsService.Service1Client();

        lblCoord1.Text = fromService.getGeocode(txtAdd1.Text);
    }