Document doc = parser.getDocument(from, to);
ArrayList<GeoStep> steps = parser.getDirection(doc);
String duration = parser.getDurationText(doc);
String distance = parser.getDistanceText(doc);
GeoRoute route = new GeoRoute(from,to,steps,distance,duration);
boolean res = db.insert(route,routes.size());
if(res)
routes.add(route);
else throw new ExistingRouteException();