Skip to content

Conversation

@0xTim
Copy link
Member

@0xTim 0xTim commented Sep 17, 2019

You can now do:

let searchArea = GeographicPoint2D(longitude: long, latitude: lat)
return try Event.filterGeographyDistanceWithin(\.location, searchArea, distance).sortByDistance(between: \.location, searchArea).all()

@0xTim 0xTim merged commit 93f82df into master Sep 17, 2019
@0xTim 0xTim deleted the distance-sort branch September 17, 2019 15:37
PoshAlpaca pushed a commit to PoshAlpaca/fluent-postgis that referenced this pull request Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants