Commit 14e0e979 authored by Bruno Brito's avatar Bruno Brito

Issue 690 - Fixed the return of methods GetItemsAsGeoPosition and...

Issue 690 - Fixed the return of methods GetItemsAsGeoPosition and GetItemsAsGeoPositionArray on RawResult.cs, now these methods respect the constructor of GeoPosition obj.
parent 8831ddaa
......@@ -265,7 +265,7 @@ internal string[] GetItemsAsStrings()
{
return null;
}
return new GeoPosition((double)coords[0].AsRedisValue(), (double)coords[1].AsRedisValue());
return new GeoPosition((double)coords[1].AsRedisValue(), (double)coords[0].AsRedisValue());
}
internal GeoPosition?[] GetItemsAsGeoPositionArray()
{
......@@ -290,7 +290,7 @@ internal string[] GetItemsAsStrings()
}
else
{
arr[i] = new GeoPosition((double)item[0].AsRedisValue(), (double)item[1].AsRedisValue());
arr[i] = new GeoPosition((double)item[1].AsRedisValue(), (double)item[0].AsRedisValue());
}
}
return arr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment