All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.targomo.client.api.pojo.EdgeStatisticsRequestOptions Maven / Gradle / Ivy

The newest version!
package com.targomo.client.api.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.targomo.client.api.enums.EdgeStatisticAggregationType;
import com.targomo.client.api.enums.EdgeStatisticDirection;
import com.targomo.client.api.enums.TravelType;
import com.targomo.client.api.geo.DefaultTargetCoordinate;
import lombok.*;

import java.util.*;

/**
 * Parameters for an edge statistics location request.
 */
@Getter @Setter
@EqualsAndHashCode
@AllArgsConstructor @NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonIgnoreProperties(ignoreUnknown = true)
public class EdgeStatisticsRequestOptions {

    private Set edgeStatisticIds = new HashSet<>();

    // Map of aggregations id to a list of statistics ids to aggregate
    private Map> aggregateEdgeStatisticIds = new HashMap<>();

    // Type of aggregation
    private EdgeStatisticAggregationType aggregationType = EdgeStatisticAggregationType.SUM;

    private Integer radius = 100;
    private TravelType travelType = TravelType.CAR;
    private EdgeStatisticDirection direction = EdgeStatisticDirection.ANY;
    private List ignoreRoadClasses = new ArrayList<>();

    @JsonIgnoreProperties({"travelType", "properties", "travelTypes"})
    private List locations = new ArrayList<>();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy