Routify Documentation
Loading...
Searching...
No Matches
ch.routify.Routify Class Reference
Collaboration diagram for ch.routify.Routify:
[legend]

Static Public Member Functions

static void main (String[] args) throws Exception
 
static boolean devMode ()
 

Static Public Attributes

static final String url_api = "http://localhost:8080"
 
static final String url_geocoder = "photon:2322"
 
static final String url_airquality = "http://airqualityservice:8000/get_pm10"
 
static final Logger logger = LoggerFactory.getLogger(Routify.class)
 
static boolean developmentMode = false
 
static RoutifySystem sys
 
static CustomVertexFactory vertexFactory = new CustomVertexFactory()
 

Detailed Description

The Routify class configures and starts the Routify application in local Docker mode. This application provides routing services with air quality, noise, and green space considerations for the Zurich area. All services run locally using Docker containers.

The application uses the following local services:

  • Photon geocoding service for address resolution
  • Nominatim database for geocoding data
  • Air quality service for PM10 data
  • Local backend API for routing calculations
Author
aegge.nosp@m.rth@.nosp@m.ethz..nosp@m.ch

Member Function Documentation

◆ devMode()

static boolean ch.routify.Routify.devMode ( )
inlinestatic

Checks if the application is running in development mode.

Returns
true if the application is in development mode, false otherwise.

◆ main()

static void ch.routify.Routify.main ( String[] args) throws Exception
inlinestatic

Main method to start the Routify application in local Docker mode. Initializes the system components and starts the Spring Boot application. All services are configured to use local Docker containers.

Parameters
argsCommand-line arguments. Use –devmode for development mode.
Exceptions
Exceptionif there is an issue initializing the application or its components.

Member Data Documentation

◆ developmentMode

boolean ch.routify.Routify.developmentMode = false
static

Indicates whether the application is running in development mode. This mode can affect various runtime behaviors, such as logging and data preloading.

◆ logger

final Logger ch.routify.Routify.logger = LoggerFactory.getLogger(Routify.class)
static

The logger used for logging information and development mode status.

◆ sys

RoutifySystem ch.routify.Routify.sys
static

The main system component responsible for application initialization and functionality.

◆ url_airquality

final String ch.routify.Routify.url_airquality = "http://airqualityservice:8000/get_pm10"
static

URL of the air quality service. Using local air quality service in Docker.

◆ url_api

final String ch.routify.Routify.url_api = "http://localhost:8080"
static

Local API configuration - no external domains needed for local Docker setup

◆ url_geocoder

final String ch.routify.Routify.url_geocoder = "photon:2322"
static

URL of the geocoder service. Using local Photon service in Docker.

◆ vertexFactory

CustomVertexFactory ch.routify.Routify.vertexFactory = new CustomVertexFactory()
static

Factory for creating custom vertexes as part of the application's data processing.


The documentation for this class was generated from the following file: