package com.directions.route;
//by Haseem Saheed

import com.google.android.gms.maps.model.LatLng;

public class Segment {
    /**
     * Points in this segment. *
     */
    private LatLng start;
    /**
     * Turn instruction to reach next segment. *
     */
    private String instruction;
    /**
     * Length of segment. *
     */
    private int length;
    /**
     * Distance covered. *
     */
    private double distance;

    /**
     * Create an empty segment.
     */

    public Segment() {
    }


    /**
     * Set the turn instruction.
     *
     * @param turn Turn instruction string.
     */

    public void setInstruction(final String turn) {
        this.instruction = turn;
    }

    /**
     * Get the turn instruction to reach next segment.
     *
     * @return a String of the turn instruction.
     */

    public String getInstruction() {
        return instruction;
    }

    /**
     * Add a point to this segment.
     *
     * @param point GeoPoint to add.
     */

    public void setPoint(final LatLng point) {
        start = point;
    }

    /**
     * Get the starting point of this
     * segment.
     *
     * @return a GeoPoint
     */

    public LatLng startPoint() {
        return start;
    }

    /**
     * Creates a segment which is a copy of this one.
     *
     * @return a Segment that is a copy of this one.
     */

    public Segment copy() {
        final Segment copy = new Segment();
        copy.start = start;
        copy.instruction = instruction;
        copy.length = length;
        copy.distance = distance;
        return copy;
    }

    /**
     * @param length the length to set
     */
    public void setLength(final int length) {
        this.length = length;
    }

    /**
     * @return the length
     */
    public int getLength() {
        return length;
    }

    /**
     * @param distance the distance to set
     */
    public void setDistance(double distance) {
        this.distance = distance;
    }

    /**
     * @return the distance
     */
    public double getDistance() {
        return distance;
    }

}
@@ -427,16 +427,82 @@
 istance;
+%0A    %0A    /* Maneuver instructions */%0A    private String maneuver;
 %0A%0A    /*
@@ -1639,24 +1639,58 @@
 = distance;%0A
+        copy.maneuver = maneuver;%0A
         retu
@@ -2201,9 +2201,152 @@
 %0A    %7D%0A%0A
-%7D
+    public void setManeuver(String man) %7B%0A        maneuver = man;%0A    %7D%0A    %0A    public String getManeuver() %7B%0A        return maneuver;%0A    %7D%0A%7D%0A

update Segment.java