} else if (resultToken.equals("vicinity")) {
token = parser.nextToken();
p.setAddr(parser.getText());
}
if (p.getTypes() != null && token == JsonToken.END_OBJECT) {
PlacesDao d = new PlacesDao(_url);
p.setCategory(category);
d.completeRecord(p);
if(p.getId() == null)
d.insertPlaces(p);
Place b = new Place();
b.setAddr(p.getAddr());
b.setCategory(p.getCategory());
b.setId(p.getId());
b.setIcon(p.getIcon());
b.setLat(p.getLat());
b.setLng(p.getLng());
b.setName(p.getName());
b.setTypes(p.getTypes());
listOfPlaces.add(b);
p = new Place();
d.close();
}
}
}
if ("status".equals(fieldname)) {
parser.nextToken();