@@ -0,0 +1,2051 @@
+/*%0A   Licensed under the Apache License, Version 2.0 (the %22License%22);%0A   you may not use this file except in compliance with the License.%0A   You may obtain a copy of the License at%0A%0A       http://www.apache.org/licenses/LICENSE-2.0%0A%0A   Unless required by applicable law or agreed to in writing, software%0A   distributed under the License is distributed on an %22AS IS%22 BASIS,%0A   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A   See the License for the specific language governing permissions and%0A   limitations under the License.%0A*/%0A%0Apackage edu.pdx.its.portal.routelandia;%0A%0Aimport com.google.android.gms.maps.model.LatLng;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Created by loc on 2/6/15.%0A */%0Apublic class Station %7B%0A    protected int stationid;%0A    protected int linkedListPosition;%0A    List%3CLatLng%3E latLngList = new ArrayList%3C%3E();%0A%0A    /**%0A     * * constructor with argument stationid%0A     * @param stationid: station number in the highway%0A     */%0A    public Station(int stationid) %7B%0A        this.stationid = stationid;%0A    %7D%0A%0A    public Station(int stationid, int linkedListPosition) %7B%0A        this.stationid = stationid;%0A        this.linkedListPosition = linkedListPosition;%0A    %7D%0A%0A    /**%0A     * * add new latlng location to the list of latlng in station%0A     * @param latLng: a new location%0A     */%0A    public void addLatLng(LatLng latLng) %7B%0A        latLngList.add(latLng);%0A    %7D%0A%0A    /**%0A     * * %0A     * @return the list of latlng in the station%0A     */%0A    public List%3CLatLng%3E getLatLngList() %7B%0A        return latLngList;%0A    %7D%0A    %0A    public String toString()%7B%0A        String temp = %22station: %22 + stationid + %22 has postion at  %22 + String.valueOf(linkedListPosition) + '%5Cn';%0A        %0A        if (latLngList.size() == 0)%7B%0A            temp += %22no geojson_raw%22 + '%5Cn';%0A        %7D%0A        else %7B%0A            for (int i = 0; i %3C latLngList.size(); i++) %7B%0A                temp += latLngList.get(i).latitude + %22 %22 + latLngList.get(i).longitude + '%5Cn';%0A            %7D%0A        %7D%0A        return temp;%0A    %7D%0A%7D%0A

create class station to hold station id and its list latlng