2013-04-18 23:35:02 +02:00
|
|
|
package net.osmand.data;
|
|
|
|
|
2018-08-03 12:50:51 +02:00
|
|
|
import net.osmand.util.MapUtils;
|
|
|
|
|
2013-04-18 23:35:02 +02:00
|
|
|
public class TransportStop extends MapObject {
|
2018-05-23 09:29:13 +02:00
|
|
|
private int[] referencesToRoutes = null;
|
2018-06-08 16:13:24 +02:00
|
|
|
private Amenity amenity;
|
2018-05-23 09:29:13 +02:00
|
|
|
public int distance;
|
2018-08-03 12:50:51 +02:00
|
|
|
public int x31;
|
|
|
|
public int y31;
|
|
|
|
|
2018-05-23 09:29:13 +02:00
|
|
|
|
2013-04-18 23:35:02 +02:00
|
|
|
public TransportStop(){
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[] getReferencesToRoutes() {
|
|
|
|
return referencesToRoutes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setReferencesToRoutes(int[] referencesToRoutes) {
|
|
|
|
this.referencesToRoutes = referencesToRoutes;
|
|
|
|
}
|
|
|
|
|
2018-06-08 16:13:24 +02:00
|
|
|
public Amenity getAmenity() {
|
|
|
|
return amenity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAmenity(Amenity amenity) {
|
|
|
|
this.amenity = amenity;
|
|
|
|
}
|
2018-08-03 12:50:51 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setLocation(double latitude, double longitude) {
|
|
|
|
super.setLocation(latitude, longitude);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLocation(int zoom, int dx, int dy) {
|
|
|
|
x31 = dx << (31 - zoom);
|
|
|
|
y31 = dy << (31 - zoom);
|
|
|
|
setLocation(MapUtils.getLatitudeFromTile(zoom, dy), MapUtils.getLongitudeFromTile(zoom, dx));
|
|
|
|
}
|
2013-04-18 23:35:02 +02:00
|
|
|
}
|