use of de.westnordost.osmapi.map.data.OsmLatLon in project StreetComplete by westnordost.
the class CreateNoteUploadTest method createACreateNote.
private CreateNote createACreateNote() {
CreateNote n = new CreateNote();
n.id = 1;
n.text = "jo ho";
n.position = new OsmLatLon(1.0, 2.0);
return n;
}
use of de.westnordost.osmapi.map.data.OsmLatLon in project StreetComplete by westnordost.
the class OsmNoteQuestChangesUploadTest method createQuest.
private static OsmNoteQuest createQuest() {
Note note = new Note();
note.id = 1;
note.position = new OsmLatLon(1.0, 2.0);
OsmNoteQuest quest = new OsmNoteQuest(note, new OsmNoteQuestType());
quest.setId(3);
quest.setStatus(QuestStatus.NEW);
quest.setComment("blablub");
return quest;
}
use of de.westnordost.osmapi.map.data.OsmLatLon in project StreetComplete by westnordost.
the class OsmNotesDownloadTest method createANote.
private Note createANote() {
Note note = new Note();
note.id = 4;
note.position = new OsmLatLon(6.0, 7.0);
note.status = Note.Status.OPEN;
note.dateCreated = new Date();
NoteComment comment = new NoteComment();
comment.date = new Date();
comment.action = NoteComment.Action.OPENED;
comment.text = "hurp durp";
note.comments.add(comment);
return note;
}
use of de.westnordost.osmapi.map.data.OsmLatLon in project StreetComplete by westnordost.
the class TangramConstTest method testConvertSingle.
public void testConvertSingle() {
double lng = 10;
double lat = 5;
OsmLatLon pos = new OsmLatLon(lat, lng);
LatLon pos2 = TangramConst.toLatLon(TangramConst.toLngLat(pos));
assertEquals(pos, pos2);
}
use of de.westnordost.osmapi.map.data.OsmLatLon in project StreetComplete by westnordost.
the class TangramConstTest method testConvertLists.
public void testConvertLists() {
List<List<LatLon>> positionLists = new ArrayList<>();
List<LatLon> positions1 = new ArrayList<>();
positionLists.add(positions1);
List<LatLon> positions2 = new ArrayList<>();
positions2.add(new OsmLatLon(1, 2));
positions2.add(new OsmLatLon(3, 4));
positionLists.add(positions2);
List<LatLon> positions3 = new ArrayList<>();
positions3.add(new OsmLatLon(5, 6));
positionLists.add(positions3);
List<List<LatLon>> positionLists2 = TangramConst.toLatLon(TangramConst.toLngLat(positionLists));
assertEquals(positionLists, positionLists2);
}
Aggregations