public class SimParser
extends java.lang.Object
| Constructor and Description |
|---|
SimParser()
Creates a new parser for the simulations XML file to get the country and region data's lat longs
|
| Modifier and Type | Method and Description |
|---|---|
EnumRegion |
getRegion(double lat,
double lon)
Gets the region given a lat and long
|
EnumRegion |
getRegion(MapPoint center)
Gets the region given a lat long
|
java.lang.String |
parse(double lat,
double lon)
Gets the country name given a lat and long
|
public SimParser()
public EnumRegion getRegion(MapPoint center)
center - MapPoint containing the lat and longpublic EnumRegion getRegion(double lat, double lon)
lat - latitude to querylon - longitude to querypublic java.lang.String parse(double lat,
double lon)
lat - latitude to querylon - longtitude to query