Back to project page android-google-places.
The source code is released under:
Copyright (c) 2012 Greg Marzouka Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
If you think the Android project android-google-places listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.gmarz.googleplaces.models; //from w ww. ja v a 2 s .c om import java.util.ArrayList; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; public class PlacesResult extends Result { private List<Place> mPlaces = new ArrayList<Place>(); public PlacesResult(JSONObject jsonResponse) throws JSONException { super(jsonResponse); if (jsonResponse.has("results")) { JSONArray results = jsonResponse.getJSONArray("results"); for(int i = 0; i < results.length(); i++) { Place place = new Place(results.getJSONObject(i)); mPlaces.add(place); } } } public List<Place> getPlaces() { return mPlaces; } }