Files
philippe lhardy 8af19bdb59 first .osm format import
- import osm convert it to Drawing and use it as resolved path.
- Not ready , first test over lab/valbonne_oct_2020.osm
2020-10-31 15:44:23 +01:00

35 lines
599 B
Java

package org.artisanlogiciel.osm;
/**
* https://wiki.openstreetmap.org/wiki/Node
*/
public class Node {
NodeRef ref;
double lat;
double lon;
public NodeRef getRef() {
return ref;
}
public Node(NodeRef ref, double lat, double lon) {
this.ref = ref;
ref.setNode(this);
this.lat = lat;
this.lon = lon;
}
public double getLat() {
return lat;
}
public double getLon() {
return lon;
}
public String toString()
{
return "(id=" + ref.id + " lon=" + lon + " lat=" + lat + ")";
}
}