Update 'src/Location.java'
This commit is contained in:
parent
a26e9a9a9f
commit
59c0b1d3f9
@ -1,4 +1,5 @@
|
||||
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.ProtocolException;
|
||||
import java.net.URL;
|
||||
@ -19,12 +20,14 @@ 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() {
|
||||
return latitude;
|
||||
|
Loading…
Reference in New Issue
Block a user