Back to project page android-nextbus.
The source code is released under:
MIT License
If you think the Android project android-nextbus 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.andrei.nextbus.library.objects; // w w w .j a va2s .c o m import java.util.Map; public class Stop implements BaseInformationProvider,MapInitializable { private String mTag, mTitle, mStopId; private Point mStopLocation; public Stop (){ } public void init (Map<String, String> map){ mTag = map.get("tag"); mTitle = map.get("title"); mStopLocation = new Point (map.get("lat"),map.get("lon")); mStopId = map.get("stopId"); } @Override public String getTag() { return mTag; } public void setTag(String newTag) { this.mTag = newTag; } public String getTitle() { return mTitle; } public void setTitle(String newTitle) { this.mTitle = newTitle; } public String getStopId() { return mStopId; } public void setStopId(String newStopId) { this.mStopId = newStopId; } public Point getLocation() { return mStopLocation; } public void setLocation (Point newLoc){ mStopLocation = newLoc; } }