/* * Copyright 2012 University of South Florida * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package edu.usf.cutr.opentripplanner.android.pois; /** * A container class for simple Point-of-interest information * * @author Khoa Tran */ public class POI { private String name, address; private double latitude, longitude; public POI(String name) { this.name = name; } public POI(String name, String address, double latitude, double longitude) { this.name = name; this.address = address; this.latitude = latitude; this.longitude = longitude; } public POI(String name, double latitude, double longitude) { this.name = name; this.latitude = latitude; this.longitude = longitude; } public POI(String name, String address) { this.name = name; this.address = address; } public POI(double latitude, double longitude) { this.latitude = latitude; this.longitude = longitude; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the address */ public String getAddress() { return address; } /** * @param address the address to set */ public void setAddress(String address) { this.address = address; } /** * @return the latitude */ public double getLatitude() { return latitude; } /** * @param latitude the latitude to set */ public void setLatitude(double latitude) { this.latitude = latitude; } /** * @return the longitude */ public double getLongitude() { return longitude; } /** * @param longitude the longitude to set */ public void setLongitude(double longitude) { this.longitude = longitude; } }