Map<String, Object> tags = new HashMap<String, Object>();
tags.put("class", vertex.getClass().getName());
if (vertex instanceof StreetVertex) {
StreetVertex sv = (StreetVertex) vertex;
StreetTraversalPermission perms = sv.getPermission();
if (perms != null)
tags.put("access", perms.toString().toLowerCase());
} else if (vertex instanceof AbstractStopVertex) {
AbstractStopVertex stopVertex = (AbstractStopVertex) vertex;
StopEntry stop = stopVertex.getStop();