Android Open Source - BungalowAndroidApp Place

From Project

Back to project page BungalowAndroidApp.


The source code is released under:

MIT License

If you think the Android project BungalowAndroidApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package se.aleros.bungalow;
// www .j a va  2s . c  o m
import org.json.JSONException;
import org.json.JSONObject;


public class Place {
  public Place() {
  private LatLng latLng;
  private String title;
  private JSONObject geometry;
  public LatLng getLatLng() {
    return latLng;
  public void setLatLng(LatLng latLng) {
    this.latLng = latLng;
  public String getTitle() {
    return title;
  public void setTitle(String title) {
    this.title = title;
  public Place(JSONObject object) throws JSONException {
    this.geometry = object.getJSONObject("geometry");
    this.latLng = new LatLng(geometry.getJSONObject("location").getDouble("lat"), geometry.getJSONObject("lng").getDouble("longitude"));
    this.title = object.getString("name");

Java Source Code List