Update 'src/Location.java'
This commit is contained in:
parent
a26e9a9a9f
commit
59c0b1d3f9
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.ProtocolException;
|
import java.net.ProtocolException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@ -19,11 +20,13 @@ public class Location {
|
|||||||
public Location(double lat, double lon) {
|
public Location(double lat, double lon) {
|
||||||
latitude = lat;
|
latitude = lat;
|
||||||
longitude = lon;
|
longitude = lon;
|
||||||
|
city = "Unknown";
|
||||||
//city = cityBasedOnIP(); //API intansive
|
//city = cityBasedOnIP(); //API intansive
|
||||||
}
|
}
|
||||||
|
|
||||||
public Location() {
|
public Location() {
|
||||||
city = cityBasedOnIP();
|
//city = cityBasedOnIP();
|
||||||
|
city = "Unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getLatitude() {
|
public double getLatitude() {
|
||||||
|
Loading…
Reference in New Issue
Block a user