Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use geoshape in gremlinpython

In JanusGraph,there is some function like

 g.E().has('place', geoWithin(Geoshape.circle(37.97, 23.72, 50)))

to search place data. Now I want to use gremlinpython to do that,but I can't find the suitable API from the document.

like image 601
Ds.Hale Avatar asked Apr 12 '26 06:04

Ds.Hale


1 Answers

Gremlin does not yet support Geo data types and predicates. The bits of syntax that you are referencing are specific to JanusGraph and are part of its libraries. At this point, I don't believe that JanusGraph has a Python specific library to give you direct access to those things. If you need to use Geo searches then, for now, you will need to submit a Gremlin script to JanusGraph Server with that syntax.

like image 115
stephen mallette Avatar answered Apr 15 '26 00:04

stephen mallette



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!