Ejemplo n.º 1
0
  /** @return */
  public Coordinate[] getCoordinates() {

    /*
     * Get coordinates of the entire route
     */
    int len = mDestinations.size();
    int loop;
    if (0 == len) {
      return null;
    }
    Coordinate coords[] = new Coordinate[len];
    loop = 0;
    for (Destination d : mDestinations) {
      coords[loop] = new Coordinate(d.getLocation().getLongitude(), d.getLocation().getLatitude());
      ;
      loop++;
    }

    return coords;
  }