none
About Bing Maps Routes API RRS feed

  • 问题

  • Bing Maps Routes API, Local Insights.

    URL:

    http://dev.virtualearth.net/REST/v1/Routes/LocalInsights/Driving?waypoint=51.5131988525391,-0.0776999965310097&maxDistance=50&distanceUnit=mile&type=Hospitals&optimize=distance&key=Au7npRsrnWvyuLCZbnz-YfbhK6GVdhAWuCPHnwQehpPwbYC3otHkvOdgHuBAbjI1&o=xml

    Return error:

    <ErrorDetails>One or more parameters are not valid.</ErrorDetails>
    <ErrorDetails>
    waypoint: You must specify a position for each parameter value in any series that has multiple parameter values.

    </ErrorDetails>

    Help me, thanks!

    2019年2月15日 9:11

全部回复

  • Hi Wechua,

    This is forum is mainly talking about Chinese web develop question not English.

    If you want to ask for help, please convert the question to chinese or post this thread on the English forum.

    Besides, according to the error message, it seems you use the wrong parameter for the bing map's local insights api.

    The API format is as below:

    http://dev.virtualearth.net/REST/v1/Routes/LocalInsights?waypoint={coordinate_or_query}&maxTime={MaxTime}&timeUnit={second_or_minute}&type={type_string_ids}&key={BingMapsAPIKey}
    

    Not contains the driving behind the local insights. More details, you could refer to below article:

    https://docs.microsoft.com/en-us/bingmaps/rest-services/routes/local-insights 


    Best Regards,

    Brando


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年2月19日 2:50