taxisrus.publicinterface
Interface MapperInterface

All Known Implementing Classes:
Mapper

public interface MapperInterface


Method Summary
 GPS address2gps(String convaddress)
          Convert address to GPS coordinate
 int address2zone(String convaddress)
          Convert address to zone
 ArrayList getNeighboringZones(int zoneID)
          Return a list of neighboring zone indices for a given zone index
 int getNumZones()
          Return the number of zones.
 ArrayList getZones()
          Return zone list.
 int gps2zone(GPS g)
          Convert GPS to zone
 

Method Detail

address2gps

public GPS address2gps(String convaddress)
Convert address to GPS coordinate
Parameters:
address - to be converted
Returns:
gps coordinate

gps2zone

public int gps2zone(GPS g)
Convert GPS to zone
Parameters:
GPS - to be converted
Returns:
zone

address2zone

public int address2zone(String convaddress)
Convert address to zone
Parameters:
address - to be converted
Returns:
zone

getZones

public ArrayList getZones()
Return zone list.
Returns:
zone as an int

getNumZones

public int getNumZones()
Return the number of zones.
Returns:
int Number of zones

getNeighboringZones

public ArrayList getNeighboringZones(int zoneID)
Return a list of neighboring zone indices for a given zone index
Parameters:
int - zoneID
Returns:
ArrayList a list of neighboring zones - integer indices, not Zone objects


API documentation for build 958