Eric Rohlfs
Eric Rohlfs

Reputation: 1830

Distance Value from RavenDB Spatial query

Is there a way to get the distance calculation value from RavenDB when doing a spatial search. I tried converting the suggested
_ = SpatialIndex.Generate(r.Latitude, r.Longitude) to distance = SpatialIndex.Generate(r.Latitude, r.Longitude)

Did not get a value back.

Our goal is to show the distance in miles on our web page.

Upvotes: 2

Views: 310

Answers (1)

Ayende Rahien
Ayende Rahien

Reputation: 22956

Eric, You have the long & lat, you can just do the math in memory.

Upvotes: 4

Related Questions