Permalink
Switch branches/tags
Nothing to show
Find file Copy path
6fdc21f May 9, 2016
1 contributor

Users who have contributed to this file

19 lines (17 sloc) 540 Bytes
using ServiceStack;
using RedisGeo.ServiceModel;
using ServiceStack.Redis;
namespace RedisGeo.ServiceInterface
{
public class RedisGeoServices : Service
{
public object Any(FindGeoResults request)
{
var results = Redis.FindGeoResultsInRadius(request.State,
longitude: request.Lng, latitude: request.Lat,
radius: request.WithinKm.GetValueOrDefault(20), unit: RedisGeoUnit.Kilometers,
sortByNearest: true);
return results;
}
}
}