package com.conveyal.taui.models;

import com.conveyal.geojson.GeometryDeserializer;
import com.conveyal.geojson.GeometrySerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.vividsolutions.jts.geom.LineString;

/**
 * Created by matthewc on 3/28/16.
 */
public class AddStops extends Modification {
    public String name;

    public String feed;
    public String[] routes;
    public String[] trips;

    public String fromStop;
    public String toStop;

    @JsonSerialize(using = GeometrySerializer.class)
    @JsonDeserialize(using = GeometryDeserializer.class)
    public LineString geometry;

    public boolean[] stops;
    public boolean[] controlPoints;
    public String[] stopIds;

    @Override
    public String getType() {
        return "add-stops";
    }
}

@@ -785,24 +785,169 @@
 %5D stopIds;%0A%0A
+    /** speed of the adjusted segment, km/h */%0A    public double speed;%0A%0A    /** dwell time at adjusted stops, seconds */%0A    public int dwell;%0A%0A
     @Overrid

add speed, dwell time to add stops modification.