use of de.westnordost.osmapi.map.data.LatLon in project StreetComplete by westnordost.
the class SphericalEarthMathTest method checkTranslate.
private void checkTranslate(int distance, int angle) {
LatLon one = new OsmLatLon(53.5712482, 9.9782365);
checkTranslate(one, distance, angle);
}
use of de.westnordost.osmapi.map.data.LatLon in project StreetComplete by westnordost.
the class NodeDaoTest method testPutGetWithTags.
public void testPutGetWithTags() {
Map<String, String> tags = new HashMap<>();
tags.put("a key", "a value");
LatLon pos = new OsmLatLon(2, 2);
Node node = new OsmNode(5, 1, pos, tags);
dao.put(node);
Node dbNode = dao.get(5);
checkEqual(node, dbNode);
}
use of de.westnordost.osmapi.map.data.LatLon in project StreetComplete by westnordost.
the class NodeDaoTest method testPutGetNoTags.
public void testPutGetNoTags() {
LatLon pos = new OsmLatLon(2, 2);
Node node = new OsmNode(5, 1, pos, null);
dao.put(node);
Node dbNode = dao.get(5);
checkEqual(node, dbNode);
}
Aggregations