public static Location fromTimeZone(TimeZone timeZone){
  if (timeZone == null) {
    throw new IllegalArgumentException(Logger.logMessage(Logger.ERROR,"Location","fromTimeZone","The time zone is null"));
  }
  double millisPerHour=3.6e6;
  int offsetMillis=timeZone.getRawOffset();
  int offsetHours=(int)(offsetMillis / millisPerHour);
  double lat=timeZoneLatitudes.get(offsetHours,0);
  double lon=180 * offsetHours / 12;
  return new Location(lat,lon);
}

public static Location fromTimeZone ( TimeZone timeZone ) { if ( timeZone == null ) { throw new IllegalArgumentException ( Logger . logMessage ( Logger . ERROR , "Location" , "fromTimeZone" , "The time zone is null" ) ) ; } double millisPerHour = 3.6e6 ; int offsetMillis = timeZone . getRawOffset ( ) ; int offsetHours = ( int ) ( offsetMillis / millisPerHour ) ; double lat = timeZoneLatitudes . get ( offsetHours , 0 ) ; double lon = 180 * offsetHours / 12 ; return new Location ( lat , lon ) ; }
constructs an approximate location for a specified time zone . used when selecting an initial navigator position based on the device ' s current time zone .
