Update 'src/Location.java'

This commit is contained in:
Hesham 2019-01-29 18:41:32 +03:00
parent a26e9a9a9f
commit 59c0b1d3f9

View File

@ -1,4 +1,5 @@
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.net.URL;
@ -19,11 +20,13 @@ public class Location {
public Location(double lat, double lon) {
latitude = lat;
longitude = lon;
city = "Unknown";
//city = cityBasedOnIP(); //API intansive
}
public Location() {
city = cityBasedOnIP();
//city = cityBasedOnIP();
city = "Unknown";
}
public double getLatitude() {