Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I get clazz of a segment in Java? For example,

RoutingResultSegment rrs = graph.lookupSegment(path[j])

How can I get rrs's clazz?

share|improve this question
up vote 0 down vote accepted

returns a user defined 32 Bit Integer which contains the configured road type by default. You can override this beavior if needed. In order to save memory it always returns 0. To activate it open the graph with e.g.

Graph graph = new Graph(graphFile, new Log(), Graph.SUPPORT_EDGEFLAGS);
share|improve this answer
Thanks! To use findClosestVertexId, I also needed Graph.SUPPORT_LATLON. Are javadocs available? – user19858 Jul 9 '13 at 7:43
Not online and not in english (only in german ;-( Nevertheless I've already sent the java-docs (routing part only) to some people via mail. So if you need it, please contact me via email. – Carsten Jul 10 '13 at 12:22
Unfortunately I don't know German. I have one more problem… Variable names are generic in findCloseEdges so I am not sure what the third argument is. – user19858 Jul 10 '13 at 14:36
I just answered it ;-) – Carsten Jul 10 '13 at 19:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.