Firebase Firestore 地理点范围问题:必须介于 -180 和 180 之间

Firebase Firestore geopoint range issue: Must be between -180 and 180

我正在使用 firebase firestore 数据库并尝试插入印度任何地方的地理点 问题是插入经度控制台时会发出红色警告:必须介于 -180 和 180 之间

根据文档,GeoPoint 要求:

Latitude values in the range of [-90, 90]. Longitude values in the range of [-180, 180].

根据 Wikipedia 条目匹配以下值:

Longitude is given as an angular measurement ranging from 0° at the Prime Meridian to +180° eastward and −180° westward.

也就是说 documentation actually suggests to avoid this type and go for separate numeric fields due to limitations on queries, and suggests Geo queries 用于简单的基于距离的应用程序。