Skip to main content

Constants for the fields of the /visualize/isochrone request.

Option fields

contour_options

Constants for contour_options.

pub const ADD_LABELS: &str = “add_labels”;

If set to true, add labels to the isolines.

pub const COLOR_ISOLINES: &str = “color_isolines”;

Color each isoline according to the colormap; otherwise, use the foreground color.

pub const EPSG_3857: &str = “EPSG:3857”;
pub const EPSG_4326: &str = “EPSG:4326”;
pub const EPSG_102100: &str = “EPSG:102100”;
pub const EPSG_900913: &str = “EPSG:900913”;
pub const FALSE: &str = “false”;
pub const GRID_SIZE: &str = “grid_size”;

When interpolating the graph solution to generate the isochrone, number of subdivisions along the x axis when building the grid (the y is computed using the aspect ratio of the output image).

pub const HEIGHT: &str = “height”;

When generate_image is set to true, height of the generated image. If the default value is used, the height is set to the value resulting from multiplying the aspect ratio by the width.

pub const LABELS_FONT_FAMILY: &str = “labels_font_family”;

When add_labels is set to true, font name to be used when adding labels.

pub const LABELS_FONT_SIZE: &str = “labels_font_size”;

When add_labels is set to true, size of the font (in pixels) to use for labels.

pub const LABELS_INTERLEVEL_SEPARATION: &str = “labels_interlevel_separation”;

When add_labels is set to true, this value determines the distance (in percent of the total window size) to use when separating labels of the same value.

pub const LABELS_INTRALEVEL_SEPARATION: &str = “labels_intralevel_separation”;

When add_labels is set to true, this value determines the distance (in multiples of the labels_font_size) to use when separating labels of different values.

pub const LABELS_MAX_ANGLE: &str = “labels_max_angle”;

When add_labels is set to true, maximum angle (in degrees) from the vertical to use when adding labels.

pub const LABELS_SEARCH_WINDOW: &str = “labels_search_window”;

When add_labels is set to true, a search window is used to rate the local quality of each isoline. Smooth, continuous, long stretches with relatively flat angles are favored. The provided value is multiplied by the labels_font_size to calculate the final window size.

pub const PLATE_CARREE: &str = “PLATE_CARREE”;
pub const PROJECTION: &str = “projection”;

Spatial Reference System (i.e. EPSG Code).

pub const SEARCH_RADIUS: &str = “search_radius”;

When interpolating the graph solution to generate the isochrone, neighborhood of influence of sample data (in percent of the image/grid).

pub const TRUE: &str = “true”;
pub const WEB_MERCATOR: &str = “WEB_MERCATOR”;
pub const WIDTH: &str = “width”;

When generate_image is set to true, width of the generated image.

pub const _3857: &str = “3857”;
pub const _102100: &str = “102100”;
pub const _900913: &str = “900913”;

generate_image

Constants for generate_image.

pub const FALSE: &str = “false”;
pub const TRUE: &str = “true”;

options

Constants for options.

pub const CONCAVITY_LEVEL: &str = “concavity_level”;

Factor to qualify the concavity of the isochrone curves. The lower the value, the more convex (with ‘0’ being completely convex and ‘1’ being the most concave).

pub const DATA_MAX_X: &str = “data_max_x”;

Upper bound for the x values. If not provided, it will be computed from the bounds of the input data.

pub const DATA_MAX_Y: &str = “data_max_y”;

Upper bound for the y values. If not provided, it will be computed from the bounds of the input data.

pub const DATA_MIN_X: &str = “data_min_x”;

Lower bound for the x values. If not provided, it will be computed from the bounds of the input data.

pub const DATA_MIN_Y: &str = “data_min_y”;

Lower bound for the y values. If not provided, it will be computed from the bounds of the input data.

pub const FALSE: &str = “false”;

Uses the solvers ‘priority_queue’ and ‘inverse_priority_queue’ based on solve_direction.

pub const FROM_SOURCE: &str = “from_source”;

Shortest path to get to the source (inverse Dijkstra).

pub const IS_REPLICATED: &str = “is_replicated”;

If set to true, replicate the solve_table.

pub const SOLVE_DIRECTION: &str = “solve_direction”;

Specify whether we are going to the source node, or starting from it.

pub const SOLVE_TABLE: &str = “solve_table”;

Name of the table to host intermediate solve results, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria. This table will contain the position and cost for each vertex in the graph. If the default value is used, a temporary table is created and deleted once the solution is calculated.

pub const TO_SOURCE: &str = “to_source”;

Shortest path to source (Dijkstra).

pub const TRUE: &str = “true”;

Uses the solvers scheduled for ‘shortest_path’ and ‘inverse_shortest_path’ based on solve_direction.

pub const USE_PRIORITY_QUEUE_SOLVERS: &str = “use_priority_queue_solvers”;

Sets the solver methods explicitly if true.

solve_options

Constants for solve_options.

pub const FALSE: &str = “false”;
pub const REMOVE_PREVIOUS_RESTRICTIONS: &str = “remove_previous_restrictions”;

Ignore the restrictions applied to the graph during the creation stage and only use the restrictions specified in this request if set to true.

pub const RESTRICTION_THRESHOLD_VALUE: &str = “restriction_threshold_value”;

Value-based restriction comparison. Any node or edge with a ‘RESTRICTIONS_VALUECOMPARED’ value greater than the restriction_threshold_value will not be included in the solution.

pub const TRUE: &str = “true”;
pub const UNIFORM_WEIGHTS: &str = “uniform_weights”;

When specified, assigns the given value to all the edges in the graph. Note that weights provided in weights_on_edges will override this value.

style_options

Constants for style_options.

pub const ACCENT: &str = “accent”;
pub const AFMHOT: &str = “afmhot”;
pub const AUTUMN: &str = “autumn”;
pub const BG_COLOR: &str = “bg_color”;

When generate_image is set to true, background color of the generated image. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value).

pub const BINARY: &str = “binary”;
pub const BLUES: &str = “blues”;
pub const BONE: &str = “bone”;
pub const BRBG: &str = “brbg”;
pub const BRG: &str = “brg”;
pub const BUGN: &str = “bugn”;
pub const BUPU: &str = “bupu”;
pub const BWR: &str = “bwr”;
pub const CMRMAP: &str = “cmrmap”;
pub const COLOR: &str = “color”;

Color of generated isolines. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). If alpha is specified and flooded contours are enabled, it will be used for as the transparency of the latter.

pub const COLORMAP: &str = “colormap”;

Colormap for contours or fill-in regions when applicable. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value).

pub const COOL: &str = “cool”;
pub const COOLWARM: &str = “coolwarm”;
pub const COPPER: &str = “copper”;
pub const CUBEHELIX: &str = “cubehelix”;
pub const DARK2: &str = “dark2”;
pub const FLAG: &str = “flag”;
pub const GIST_EARTH: &str = “gist_earth”;
pub const GIST_GRAY: &str = “gist_gray”;
pub const GIST_HEAT: &str = “gist_heat”;
pub const GIST_NCAR: &str = “gist_ncar”;
pub const GIST_RAINBOW: &str = “gist_rainbow”;
pub const GIST_STERN: &str = “gist_stern”;
pub const GIST_YARG: &str = “gist_yarg”;
pub const GNBU: &str = “gnbu”;
pub const GNUPLOT: &str = “gnuplot”;
pub const GNUPLOT2: &str = “gnuplot2”;
pub const GRAY: &str = “gray”;
pub const GREENS: &str = “greens”;
pub const GREYS: &str = “greys”;
pub const HOT: &str = “hot”;
pub const HSV: &str = “hsv”;
pub const INFERNO: &str = “inferno”;
pub const JET: &str = “jet”;
pub const LINE_SIZE: &str = “line_size”;

The width of the contour lines in pixels.

pub const MAGMA: &str = “magma”;
pub const NIPY_SPECTRAL: &str = “nipy_spectral”;
pub const OCEAN: &str = “ocean”;
pub const ORANGES: &str = “oranges”;
pub const ORRD: &str = “orrd”;
pub const PAIRED: &str = “paired”;
pub const PASTEL1: &str = “pastel1”;
pub const PASTEL2: &str = “pastel2”;
pub const PINK: &str = “pink”;
pub const PIYG: &str = “piyg”;
pub const PLASMA: &str = “plasma”;
pub const PRGN: &str = “prgn”;
pub const PRISM: &str = “prism”;
pub const PUBU: &str = “pubu”;
pub const PUBUGN: &str = “pubugn”;
pub const PUOR: &str = “puor”;
pub const PURD: &str = “purd”;
pub const PURPLES: &str = “purples”;
pub const RAINBOW: &str = “rainbow”;
pub const RDBU: &str = “rdbu”;
pub const RDGY: &str = “rdgy”;
pub const RDPU: &str = “rdpu”;
pub const RDYLBU: &str = “rdylbu”;
pub const RDYLGN: &str = “rdylgn”;
pub const REDS: &str = “reds”;
pub const SEISMIC: &str = “seismic”;
pub const SET1: &str = “set1”;
pub const SET2: &str = “set2”;
pub const SET3: &str = “set3”;
pub const SPECTRAL: &str = “spectral”;
pub const SPRING: &str = “spring”;
pub const SUMMER: &str = “summer”;
pub const TERRAIN: &str = “terrain”;
pub const TEXT_COLOR: &str = “text_color”;

When add_labels is set to true, color for the labels. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value).

pub const VIRIDIS: &str = “viridis”;
pub const WINTER: &str = “winter”;
pub const WISTIA: &str = “wistia”;
pub const YLGN: &str = “ylgn”;
pub const YLGNBU: &str = “ylgnbu”;
pub const YLORBR: &str = “ylorbr”;
pub const YLORRD: &str = “ylorrd”;