package com.mapbox.services.directions.v5.models;

import java.util.Arrays;

/**
 * Created by antonio on 4/5/16.
 */
public class StepManeuver {

    private double[] location;
    private double bearing_before;
    private double bearing_after;
    private String type;
    private String modifier;
    private int exit;

    public double[] getLocation() {
        return location;
    }

    public double getBearing_before() {
        return bearing_before;
    }

    public double getBearing_after() {
        return bearing_after;
    }

    public String getType() {
        return type;
    }

    public String getModifier() {
        return modifier;
    }

    public int getExit() {
        return exit;
    }

    @Override
    public String toString() {
        return "StepManeuver{" +
                "location=" + Arrays.toString(location) +
                ", bearing_before=" + bearing_before +
                ", bearing_after=" + bearing_after +
                ", type='" + type + '\'' +
                ", modifier='" + modifier + '\'' +
                ", exit=" + exit +
                '}';
    }
}

@@ -44,16 +44,68 @@
 odels;%0A%0A
+import com.google.gson.annotations.SerializedName;%0A%0A
 import j
@@ -222,24 +222,57 @@
 ocation;%0A   
+ @SerializedName(%22bearingBefore%22)
  private dou
@@ -274,34 +274,33 @@
 e double bearing
-_b
+B
 efore;%0A    priva
@@ -289,24 +289,56 @@
 gBefore;%0A   
+ @SerializedName(%22bearingAfter%22)
  private dou
@@ -340,34 +340,33 @@
 e double bearing
-_a
+A
 fter;%0A    privat
@@ -524,26 +524,25 @@
 e getBearing
-_b
+B
 efore() %7B%0A  
@@ -557,26 +557,25 @@
 turn bearing
-_b
+B
 efore;%0A    %7D
@@ -600,26 +600,25 @@
 e getBearing
-_a
+A
 fter() %7B%0A   
@@ -632,26 +632,25 @@
 turn bearing
-_a
+A
 fter;%0A    %7D%0A
@@ -987,26 +987,25 @@
   %22, bearing
-_b
+B
 efore=%22 + be
@@ -1013,10 +1013,9 @@
 ring
-_b
+B
 efor
@@ -1040,26 +1040,25 @@
   %22, bearing
-_a
+A
 fter=%22 + bea
@@ -1065,10 +1065,9 @@
 ring
-_a
+A
 fter

use SerializedName to make fields more java friendly