Destination

Destination

Methods

(static) getAreasPageRank(sessions, params, arrayopt) → {Object}

Finds page rank score for areas in France

Source:
Parameters:
Name Type Attributes Description
sessions Object

Neo4j context session

params Object

Query's parameters

array Array.<Object> <optional>

Found object array to concatenate different year stat

Returns:
Type:
Object

Object with each year and its value page rank

(static) getGoingValues(sessions, params, totReviews, prevArrayopt) → {Object}

Finds ingoing and outgoing trips made between two areas for a given year

Source:
Parameters:
Name Type Attributes Description
sessions Object

Neo4j context session

params Object

Query's parameters

totReviews Number

Total number of reviews for the given year

prevArray Array.<Object> <optional>

Found object array to concatenate different year stat

Returns:
Type:
Object

Object with the year and percent of users found for a given year

(static) getMonths(sessions, params) → {Object}

Finds the number of ingoing and outgoing trips made between areas by month for a given year

Source:
Parameters:
Name Type Description
sessions Object

Neo4j context session

params Object

Query's parameters

Returns:
Type:
Object

Object with each region and number of reviews by month

(static) getTotalByYear(sessions, params) → {Object}

Finds the number of ingoing and outgoing trips made between two areas for a given year

Source:
Parameters:
Name Type Description
sessions Object

Neo4j context session

params Object

Query's parameters

Returns:
Type:
Object

Object with the year and number of trips found