Android Open Source - mycitybikes-android Station Location






From Project

Back to project page mycitybikes-android.

License

The source code is released under:

GNU General Public License

If you think the Android project mycitybikes-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.

Java Source Code

package com.mycitybikes.android.model;
/*ww  w.j  a  v a  2s .c om*/
import com.google.android.maps.GeoPoint;
import com.mycitybikes.android.util.AndroidUtils;

public class StationLocation {

  private final GeoPoint location;
  private final City city;
  private final String description;
  private final int id;
  private StationInfoBuilder stationInfoBuilder;

  public StationLocation(int id, City city,
      String description, double longitude, double latitude) {
      this(id, city, description, AndroidUtils.buildGeoPoint(latitude, longitude));
  }

    public StationLocation(int id, City city,
            String description, GeoPoint geoPoint) {
        this.id = id;
        this.city = city;
        this.location = geoPoint;
        this.description = description;
    }
  
  public void setStationInfoBuilder(StationInfoBuilder stationInfoBuilder) {
    this.stationInfoBuilder = stationInfoBuilder;
  }

  public String getCity() {
    return city.getName();
  }

  public String getCountry() {
    return city.getCountry();
  }

  public GeoPoint getLocation() {
    return location;
  }

  public String getDescription() {
    return description;
  }

  public String getStationInfo() {
    return stationInfoBuilder.buildStationInfo();
  }

  public int getId() {
    return id;
  }

  @Override
  public String toString() {
    return new String("[" + location + "] " + description
        + " [" + getCountry() + "," + getCity() + "-" + id + "]");
  }
}




Java Source Code List

com.mycitybikes.android.ClearChannel.java
com.mycitybikes.android.Constants.java
com.mycitybikes.android.JCDecaux.java
com.mycitybikes.android.MyCityBikesActivity.java
com.mycitybikes.android.model.City.java
com.mycitybikes.android.model.StationInfoBuilder.java
com.mycitybikes.android.model.StationLocation.java
com.mycitybikes.android.model.StationStatus.java
com.mycitybikes.android.util.AndroidUtils.java
com.mycitybikes.android.util.Utils.java
com.mycitybikes.android.view.MapLocationItemizedOverlay.java