a8m / a8m/entspatial

Implementing `st_distance_sphere` to get distance

オープン
#3 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
8
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

From what I gathered from the internet, it seems we need the function `st_distance_sphere` in order to filter by the distance

For example if we need a distance of under 10 meters, we would do something like

```
SELECT *
FROM geotable
WHERE st_distance_sphere(POINT(-82.337036, 29.645095 ), POINT(myLon, myLat))/1000 < 10
```

where `myLat` and `myLon` is a float value

Is there any chance we could ge this feature implemented in entgo?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。