Back to project page tehran_traffic_map.
The source code is released under:
MIT License
If you think the Android project tehran_traffic_map 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.tehran.traffic.models; /*from ww w.j a va2 s.c om*/ import android.content.Context; import com.tehran.traffic.R; /** * Created by Mohsen on 11/3/14. */ public class RoadData { String[] imageUrl; String[] state; public RoadData(Context context) { this.state = context.getResources().getStringArray(R.array.states); this.imageUrl = context.getResources().getStringArray(R.array.roads); } public String getImageUrl(int id) { return imageUrl[id]; } public String getState(int id) { return state[id]; } }