Skip to content

Add some missing features #3

Description

@easbar
  • negative numbers in operator expressions like max_speed * -0.2
  • encoded value expressions like <ev>.ordinal() and edge.getDistance() (both numeric)
  • some math functions like Math.abs/sqrt
  • boolean encoded value-like expressions like edge.getName().contains("xyz")

See here what is allowed on the server side: https://github.com/graphhopper/graphhopper/blob/2140131ec079e21b7e7f05865a3b77913b0d9acc/core/src/main/java/com/graphhopper/routing/weighting/custom/ConditionalExpressionVisitor.java#L41-L42

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions