pgRouting
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
trsp.c File Reference
#include "postgres.h"
#include "executor/spi.h"
#include "funcapi.h"
#include "catalog/pg_type.h"
#include "fmgr.h"
#include "trsp_driver.h"
#include "../../common/src/debug_macro.h"
#include "../../common/src/pgr_types.h"
#include "../../common/src/postgres_connection.h"
#include "../../common/src/edges_input.h"
#include "../../common/src/restrictions_input.h"

Go to the source code of this file.

Functions

static int compute_trsp (char *edges_sql, int dovertex, int start_id, double start_pos, int end_id, double end_pos, bool directed, bool has_reverse_cost, char *restrict_sql, path_element_t **path, size_t *path_count)
 
 PG_FUNCTION_INFO_V1 (turn_restrict_shortest_path_vertex)
 
 PG_FUNCTION_INFO_V1 (turn_restrict_shortest_path_edge)
 
PGDLLEXPORT Datum turn_restrict_shortest_path_edge (PG_FUNCTION_ARGS)
 
PGDLLEXPORT Datum turn_restrict_shortest_path_vertex (PG_FUNCTION_ARGS)
 

Function Documentation

static int compute_trsp ( char *  edges_sql,
int  dovertex,
int  start_id,
double  start_pos,
int  end_id,
double  end_pos,
bool  directed,
bool  has_reverse_cost,
char *  restrict_sql,
path_element_t **  path,
size_t *  path_count 
)
static
PG_FUNCTION_INFO_V1 ( turn_restrict_shortest_path_vertex  )
PG_FUNCTION_INFO_V1 ( turn_restrict_shortest_path_edge  )
PGDLLEXPORT Datum turn_restrict_shortest_path_edge ( PG_FUNCTION_ARGS  )

Definition at line 348 of file trsp.c.

References compute_trsp(), path_element_t::cost, path, path_count, PGR_DBG, and pgr_text2char().

PGDLLEXPORT Datum turn_restrict_shortest_path_vertex ( PG_FUNCTION_ARGS  )

Definition at line 217 of file trsp.c.

References compute_trsp(), path_element_t::cost, path, path_count, PGR_DBG, and pgr_text2char().