locked
Elevation for 'short routes' RRS feed

  • Question

  • Hi,

    i use the Service at

    'https://dev.virtualearth.net/REST/v1/Elevation/'

    to get the Elevation data along a route and generate an Elevation Profile for this route. If the route is Long enough ( > 20 km), there is no Problem. But with 'shorter routes' i get no result!!

    I try this with 'List' and 'Polyline' like this:

            $.ajax({

                url: elevationServiceURL,

                data: {

                    //Encode the location array as required by the elevation service.

                    points: Microsoft.Maps.PointCompression.encode(locs),

                    heights:"ellipsoid",

    //samples:"50",

                    key: sessionKey,

                },

                dataType: "jsonp",

                jsonp: "jsonp",

                context: this,

                success: function(data) {

                    if(data != null&&data.resourceSets && data.resourceSets.length > 0 && data.resourceSets[0].resources &&

                            data.resourceSets[0].resources.length > 0) {

                                        varelevations = data.resourceSets[0].resources[0].elevations;

                                        //alert('Daten: ' + elevations.length);

                                       createElevationProfile(distances, elevations);

                    }

                else{

                       document.getElementById(

                        "d_Elevation").innerHTML = "<span style='color: #ffffff;'><p>&nbsp;</p><p>Fehler </p><p>&nbsp;</p></span>";

                    }

                },

    I get no error!

    Is this a known Problem? Only in Germany? Any solution?

    Thanks

    Patric


      

    Monday, February 5, 2018 5:31 PM

Answers

  • There is not work around for this issue and no timeline to fix this issue. The elevation service is not commonly used. 

    [Blog] [twitter] [LinkedIn]

    • Proposed as answer by Ricky_Brundritt Thursday, February 8, 2018 4:40 PM
    • Marked as answer by Pagehl Thursday, February 8, 2018 4:41 PM
    Thursday, February 8, 2018 4:40 PM

All replies