All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.osmtools.utils.GeoPoint Maven / Gradle / Ivy

package org.osmtools.utils;

import org.osm.schema.OsmNode;
import org.osmtools.api.LonLat;

public class GeoPoint {

	public double x;
	public double y;

	public GeoPoint(double x, double y) {
		this.x = x;
		this.y = y;
	}

	public GeoPoint(OsmNode osmNode) {
		this.x = osmNode.getLon();
		this.y = osmNode.getLat();
	}

	public GeoPoint(LonLat lonLat) {
		this.x = lonLat.getLon();
		this.y = lonLat.getLat();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy