none
Spatial Data Service's Query by Area order by query option RRS feed

  • Question

  • This service seems to be ignoring the $orderby query option. It is always using the default sort order (by __Distance in ascending order).

    Examples:

    $orderby=SiteName desc - no affect, returns the default sort order.

    $orderby=__Distance, SiteName desc - error, no result.

    $orderby=__Distance desc - error, no result.

    Does anyone know how to do a non-default sort order?

     

    • Moved by Ricky_Brundritt Friday, March 9, 2012 5:48 PM (From:Bing Maps: Map Control and Web services Development)
    Thursday, June 2, 2011 8:01 PM

Answers

  • You should take a look at the documentation: Gg585129.note(en-us,MSDN.10).gifhttp://msdn.microsoft.com/en-us/library/gg585129.aspx

    Gg585129.note(en-us,MSDN.10).gifNote:

    • When you specify the $orderby query option, you must also specify a spatial filter or a $filter query option. For information about spatial filters, see Query by Area.

     

    Do you specify this filter query option?


    MVP - Bing Maps - My blog (FR): http://blogs.developpeur.org/nicoboo/ Twitter: http://twitter.com/nicolasboonaert/
    Friday, June 3, 2011 1:17 PM
    Moderator