Answered Bing search api request parametr location

  • Saturday, February 23, 2013 5:45 PM
     
     

     Have request

     var newsQuery = bingContainer.News(query, null, market, null, double.Parse("50,447797"), double.Parse("30,644"), null, null, null);

    var newsResult = newsQuery.Execute();

    Than send Exception  

    innerMessage = "Parameter: Latitude is out of range: [-90, 90]"

    Why?

All Replies

  • Monday, February 25, 2013 3:27 AM
    Moderator
     
     Answered

    Hi,

    Can you try to change the comma mark to full stop in the parsing method:

    double.Parse(50.447797)

    Can you check what is the actual value in the query url? A similar thread has the same issue, so I need your confirmation here for my further reporting.

    Thanks,


    QinDian Tang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.