Is your feature request related to a problem? Please describe.
We should have an easier way to express the DISTANCE function.
Describe the solution you'd like
Something we can initialize so we can use it in both where clause and order by. It should also support binds like other filters.
SOQL.Distance dist = SOQL.distance.of(SObjectField field)
.between(Location location)
.mi();
SOQL.Distance dist2 = SOQL.distance.of(String field)
.between(Decimal latitude, Decimal longitude)
.km();
SOQL.Distance dist3 = SOQL.distance.of(SObject field)
.between(SObject field)
.km();
Is your feature request related to a problem? Please describe.
We should have an easier way to express the
DISTANCEfunction.Describe the solution you'd like
Something we can initialize so we can use it in both where clause and order by. It should also support binds like other filters.