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).


    $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


  • You should take a look at the documentation: Gg585129.note(en-us,MSDN.10).gif


    • 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): Twitter:
    Friday, June 3, 2011 1:17 PM