使用Gremlin进行地理位置搜索 [英] Geolocation search with Gremlin

查看:85
本文介绍了使用Gremlin进行地理位置搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Gremlin中进行位置搜索?在文档中,我看不到该如何完成.我特别想在Cosmos Gremlin中进行位置搜索.

Is it possible to do a location search in Gremlin? I can't see how it can be done in the documentation. I specifically want to do the location search in Cosmos Gremlin.

推荐答案

地理位置目前是后端图形系统提供的.例如,JanusGraph具有可与Gremlin一起使用的GeoSpatial API.当然,如果将纬度/经度坐标存储在图形中,则可以很容易地编写一个Gremlin查询,以使用这些查询基于坐标查找事物.

Geo location currently is something that is provided by the back end graph system. For example JanusGraph has a GeoSpatial API that can be used with Gremlin. Of course if you store lat/lon coordinates in your graph you can pretty easily write a Gremlin query to use those to look for things based on coordinates.

在我正在编写的Gremlin教程的5.3.8节中,有一些手动执行此操作的示例.在这里可用: https://github.com/krlawrence/graph

I have a few examples of doing it manually in section 5.3.8 of the Gremlin tutorial I am writing. Available here: https://github.com/krlawrence/graph

这篇关于使用Gremlin进行地理位置搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆