Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## [Semediawiki-user] [Semantic Maps] Sort by Proximity?

 [Semediawiki-user] [Semantic Maps] Sort by Proximity? From: Thomas Fellows - 2010-10-25 13:57:59 ```With the distance query, is there any way to sort the results by the distance between the given point and the results? (so you get the closest results going outward until you hit your set limit?). Right now we seem to be getting an alphabetical list, which might give us results on our outer radius, where we want results that are closest to our point. -Tom ```

### Thread view

 [Semediawiki-user] [Semantic Maps] Sort by Proximity? From: Thomas Fellows - 2010-10-25 13:57:59 ```With the distance query, is there any way to sort the results by the distance between the given point and the results? (so you get the closest results going outward until you hit your set limit?). Right now we seem to be getting an alphabetical list, which might give us results on our outer radius, where we want results that are closest to our point. -Tom ```
 Re: [Semediawiki-user] [Semantic Maps] Sort by Proximity? From: Jeroen De Dauw - 2010-10-25 14:32:39 ```Hey, > With the distance query, is there any way to sort the results by the distance between the given point and the results? Currently Semantic Maps provides no special support here. The results are selected based on if they are within a bounding box or not, the actual distance is never calculated in the query. What you can do is use the geodistance parser hook [0] provided by the Maps extension to store a property in each location that holds the distance to the centre location, and then query on that. Of course, this forces you to have a property for each centre location. [0] http://mapping.referata.com/wiki/Geodistance Cheers -- Jeroen De Dauw * http://blog.bn2vs.com * http://wiki.bn2vs.com Don't panic. Don't be evil. 50 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65! -- On 25 October 2010 15:57, Thomas Fellows wrote: > With the distance query, is there any way to sort the results by the > distance between the given point and the results? (so you get the closest > results going outward until you hit your set limit?). Right now we seem to > be getting an alphabetical list, which might give us results on our outer > radius, where we want results that are closest to our point. > > -Tom > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > \$10 million total in prizes - \$4M cash, 500 devices, nearly \$6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Semediawiki-user mailing list > Semediawiki-user@... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > ```