All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.venky.geo.DefaultGeoLocationBuilder Maven / Gradle / Ivy

There is a newer version: 1.15
Show newest version
package com.venky.geo;


public class DefaultGeoLocationBuilder implements GeoLocationBuilder{

	@Override
	public GeoLocation create(final float lat, final float lng) {
		return new GeoLocation() {
			private Float latitude = lat; 
			private Float longitude = lng;
			
			@Override
			public void setLongitude(Float longitude) {
				this.longitude = longitude;
			}
			
			@Override
			public void setLatitude(Float latitude) {
				this.latitude = latitude;
			}
			
			@Override
			public Float getLongitude() {
				return longitude;
			}
			
			@Override
			public Float getLatitude() {
				return latitude;
			}
			@Override
			public String toString(){
	        	return "(lat,lng):(" + lat + "," + lng + ")";
	        }
		};
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy