public class MapPoint extends java.lang.Object implements JSON
JSON.Parser| Modifier and Type | Field and Description |
|---|---|
double |
latitude
Specifies the north-south position of a point on the Earth's surface.
|
double |
longitude
Specifies the east-west position of a point on the Earth's surface.
|
| Constructor and Description |
|---|
MapPoint(double latitude,
double longitude) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
void |
fromJSON(java.lang.Object doc)
Convert String into JSON
|
static void |
main(java.lang.String[] args)
Test example that starts the simulator then asks of lat, long points are within a region
|
JSONDocument |
toJSON()
Convert class into json
|
java.lang.String |
toString() |
public double latitude
public double longitude
public java.lang.String toString()
toString in class java.lang.Objectpublic JSONDocument toJSON()
JSONpublic void fromJSON(java.lang.Object doc)
JSONpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic static void main(java.lang.String[] args)