相关疑难解决方法(0)

无法提取地理位置键,经度/纬度超出范围

使用MongoDB 2dsphere存储GEOJSON并在lat/lng的某些商店中我不断收到以下错误:

{
  "code": 16755,
  "index": 0,
  "errmsg": "Can't extract geo keys: { _id: ObjectId('586ff135b79aa00b84181bfb'), name: \"Austin\", slug: \"Austin\", description: \"\", twitter: \"\", facebook: \"\", instagram: \"\", author: ObjectId('57b60fed8620b56af460d5c5'), tags: [], created: new Date(1483731253640), location: { address: \"Austin, TX, United States\", coordinates: [ 30.267153, -97.74306079999997 ], type: \"Point\" }, __v: 0 }  longitude/latitude is out of bounds, lng: 30.2672 lat: -97.7431",
  "op": {
    "name": "Austin",
    "slug": "Austin",
    "description": "",
    "twitter": "",
    "facebook": "",
    "instagram": "",
    "author": "57b60fed8620b56af460d5c5",
    "_id": "586ff135b79aa00b84181bfb",
    "tags": …
Run Code Online (Sandbox Code Playgroud)

google-maps mongoose mongodb

11
推荐指数
2
解决办法
3949
查看次数

标签 统计

google-maps ×1

mongodb ×1

mongoose ×1