Android Open Source - BungalowAndroidApp Place






From Project

Back to project page BungalowAndroidApp.

License

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;

import com.google.android.gms.maps.model.LatLng;

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

se.aleros.bungalow.BungalowMapFragment.java
se.aleros.bungalow.Bungalow.java
se.aleros.bungalow.MainActivity.java
se.aleros.bungalow.NavigationDrawerFragment.java
se.aleros.bungalow.Place.java
se.aleros.bungalow.RSSAdapter.java
se.aleros.bungalow.RSSDownloadCompleteHandler.java
se.aleros.bungalow.RSSFeed.java
se.aleros.bungalow.RSSItemActivity.java
se.aleros.bungalow.RSSItem.java
se.aleros.bungalow.RSSListFragment.java
se.aleros.bungalow.RssMonitorService.java
se.aleros.bungalow.WebActivity.java