1

我正在尝试在 Kibana 3 中使用 bettermap 来查看纬度/经度数据。我的地理位置显示在非洲的地图中,因为我指定的纬度/经度是针对美国的。

任何相同的帮助将不胜感激?

我的映射文件是

{"mappings" : { "livestats" : { "_source" : { "enabled" : true }, "_timestamp" : { "enabled" : true }, "_all" : { "enabled" : false }, "properties" : { "state" : { "type" : "string", "index" : "not_analyzed", "store" : "yes" }, "LatLng" : { "type" : "geo_point" , "index" : "analyzed", "store" : "yes"} } } } } 和虚拟数据是

{"create":{"_index":"livestats","_type":"livestats"}}
{"state":"CA","LatLng":[-118.252,34.0433]}

谢谢

4

2 回答 2

0

尝试使用 lonlat 作为虚拟数据。更好地图上的工具提示说:“geoJSON 数组!Long,Lat NOT Lat,Long”

于 2014-03-22T19:39:26.210 回答
0

问题是您必须在 Bettermaps (Kibana 3.0.0) 中指定完整的字段名。当您预加载索引的字段名时,自动建议的字段名具有误导性。

这是我的建议:将 LatLon 的映射替换为:“LatLng”:{“type”:“geo_point”}

确保您遵守 GeoJSON 规范:[lon,lat] 而不是 [lat,lon]

在 Kibana 中,使用以下字段:“livestats.LatLng”

这应该够了吧!

于 2014-03-27T14:29:22.627 回答