forked from edward/owl-map
Switch from Geography to Geometry meant distances were wrong.
This commit is contained in:
parent
238fbeef05
commit
f76ace2a98
|
@ -266,7 +266,7 @@ def get_nearby(bbox, item, max_distance=300):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
tag_filter = get_tag_filter(cls, tag_list)
|
tag_filter = get_tag_filter(cls, tag_list)
|
||||||
dist = func.ST_Distance(point, cls.way)
|
dist = func.ST_DistanceSphere(point, cls.way)
|
||||||
|
|
||||||
q = (cls.query.add_columns(dist.label('distance'))
|
q = (cls.query.add_columns(dist.label('distance'))
|
||||||
.filter(
|
.filter(
|
||||||
|
|
Loading…
Reference in a new issue