Back to project page Google-Directions-Android.
The source code is released under:
Copyright (c) 2013 Joel Dean Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software...
If you think the Android project Google-Directions-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.directions.route; //by Haseem Saheed//from w w w .jav a 2 s . co m import com.google.android.gms.maps.model.LatLng; import java.util.ArrayList; import java.util.List; public class Route { private String name; private final List<LatLng> points; private List<Segment> segments; private String copyright; private String warning; private String country; private int length; private String polyline; private String durationText; private String distanceText; private String endAddressText; public String getEndAddressText() { return endAddressText; } public void setEndAddressText(String endAddressText) { this.endAddressText = endAddressText; } public String getDurationText() { return durationText; } public void setDurationText(String durationText) { this.durationText = durationText; } public String getDistanceText() { return distanceText; } public void setDistanceText(String distanceText) { this.distanceText = distanceText; } public void setSegments(List<Segment> segments) { this.segments = segments; } public Route() { points = new ArrayList<LatLng>(); segments = new ArrayList<Segment>(); } public void addPoint(final LatLng p) { points.add(p); } public void addPoints(final List<LatLng> points) { this.points.addAll(points); } public List<LatLng> getPoints() { return points; } public void addSegment(final Segment s) { segments.add(s); } public List<Segment> getSegments() { return segments; } /** * @param name the name to set */ public void setName(final String name) { this.name = name; } /** * @return the name */ public String getName() { return name; } /** * @param copyright the copyright to set */ public void setCopyright(String copyright) { this.copyright = copyright; } /** * @return the copyright */ public String getCopyright() { return copyright; } /** * @param warning the warning to set */ public void setWarning(String warning) { this.warning = warning; } /** * @return the warning */ public String getWarning() { return warning; } /** * @param country the country to set */ public void setCountry(String country) { this.country = country; } /** * @return the country */ public String getCountry() { return country; } /** * @param length the length to set */ public void setLength(int length) { this.length = length; } /** * @return the length */ public int getLength() { return length; } /** * @param polyline the polyline to set */ public void setPolyline(String polyline) { this.polyline = polyline; } /** * @return the polyline */ public String getPolyline() { return polyline; } }