@@ -0,0 +1,1395 @@
+package edu.pdx.its.portal.routelandia;%0A%0Aimport com.google.android.gms.maps.model.LatLng;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0A%0A/**%0A * Created by loc on 1/17/15.%0A */%0Apublic class JSONParser %7B%0A    public List%3CHashMap%3CInteger, List%3CLatLng%3E%3E%3E parse (JSONObject jsonObject)%7B%0A        List%3CHashMap%3CInteger, List%3CLatLng%3E%3E%3E segment = new ArrayList%3C%3E();%0A        try%7B%0A            int stationId = (int) jsonObject.get(%22stationid%22);%0A            JSONObject segmentRaw = jsonObject.getJSONObject(%22segment_raw%22);%0A            List%3CList%3E coordinates = (List%3CList%3E) segmentRaw.get(%22coordinates%22);%0A            List%3CLatLng%3E listLatLong = new ArrayList%3C%3E();%0A            for (int i = 0; i %3Ccoordinates.size() ; i++) %7B%0A                double latitute = (double) coordinates.get(i).get(1);%0A                double longtitute = (double) coordinates.get(i).get(0);%0A                LatLng latlng = new LatLng(latitute, longtitute);%0A                listLatLong.add(latlng);%0A            %7D%0A            HashMap%3CInteger, List%3CLatLng%3E%3E highway =  new HashMap%3C%3E();%0A            highway.put(stationId, listLatLong);%0A            segment.add(highway);%0A        %7D%0A        catch (JSONException e)%7B%0A            e.printStackTrace();%0A        %7Dcatch (Exception e)%7B%0A            e.printStackTrace();%0A        %7D%0A        return segment;%0A    %7D%0A%7D%0A

add json parser class