$latitude='维度 ';
$longitude=‘经度’;
d
a
t
a
=
s
e
l
f
:
:
w
h
e
r
e
(
data = self::where(
data=self::where(where)
->field(“id,hotel_cover,hotel_name,hotel_title,hotel_price,hotel_special_services,
hotel_restaurant_services,hotel_star,(
6371 * acos (
cos ( radians({KaTeX parse error: Expected 'EOF', got '}' at position 9: latitude}̲) ) …longitude}) )
+ sin ( radians({$latitude}) )
* sin( radians( hotel_latitude ) )
)
) AS distance , hotel_address,hotel_brand,hotel_category”)
->order(‘hotel_sort desc’)
->select();