2013-04-18 23:35:02 +02:00
|
|
|
package net.osmand.data;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
public class FavouritePoint implements Serializable {
|
|
|
|
private static final long serialVersionUID = 729654300829771466L;
|
|
|
|
private String name;
|
|
|
|
private String category = "";
|
|
|
|
private double latitude;
|
|
|
|
private double longitude;
|
2014-06-11 00:42:17 +02:00
|
|
|
private int color;
|
2013-04-18 23:35:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
public FavouritePoint(){
|
|
|
|
}
|
|
|
|
|
|
|
|
public FavouritePoint(double latitude, double longitude, String name, String category) {
|
|
|
|
this.latitude = latitude;
|
|
|
|
this.longitude = longitude;
|
|
|
|
this.category = category;
|
|
|
|
this.name = name;
|
|
|
|
}
|
2014-06-11 00:42:17 +02:00
|
|
|
|
|
|
|
public int getColor() {
|
|
|
|
return color;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setColor(int color) {
|
|
|
|
this.color = color;
|
|
|
|
}
|
2013-04-18 23:35:02 +02:00
|
|
|
|
|
|
|
public double getLatitude() {
|
|
|
|
return latitude;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLatitude(double latitude) {
|
|
|
|
this.latitude = latitude;
|
|
|
|
}
|
|
|
|
|
|
|
|
public double getLongitude() {
|
|
|
|
return longitude;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLongitude(double longitude) {
|
|
|
|
this.longitude = longitude;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getCategory() {
|
|
|
|
return category;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCategory(String category) {
|
|
|
|
this.category = category;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return "Favourite " + getName(); //$NON-NLS-1$
|
|
|
|
}
|
|
|
|
}
|