mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-03-30 12:41:01 +02:00
added audio support
This commit is contained in:
committed by
praktimarc
parent
4549314446
commit
7f48698278
@@ -1,5 +1,10 @@
|
||||
package kst4contest.locatorUtils;
|
||||
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.NumberFormat;
|
||||
import java.text.ParseException;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Location class with methods allowing conversion to and from Maidenhead
|
||||
* locator (grid squares) based off of
|
||||
@@ -203,6 +208,28 @@ public class Location {
|
||||
return getDistanceKm(this, loc2);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param locator1 6 letter location string
|
||||
* @param locator2 6 letter location string
|
||||
* @return great circle distance in kilometers
|
||||
*/
|
||||
public double getDistanceKmByTwoLocatorStrings(String locator1,String locator2 ) {
|
||||
Location loc1 = new Location(locator1);
|
||||
Location loc2 = new Location(locator2);
|
||||
|
||||
Locale locale = new Locale("en", "UK");
|
||||
String pattern = "###.##";
|
||||
|
||||
DecimalFormat decimalFormat = (DecimalFormat)
|
||||
NumberFormat.getNumberInstance(locale);
|
||||
decimalFormat.applyPattern(pattern);
|
||||
|
||||
String format = decimalFormat.format(loc1.getDistanceKm(loc2));
|
||||
|
||||
// return df.format(number);
|
||||
return Double.parseDouble(format);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param loc2
|
||||
* second location
|
||||
@@ -278,6 +305,19 @@ public class Location {
|
||||
return getBearing(this, loc2);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @return bearing in degrees
|
||||
*/
|
||||
public double getBearingOfTwoLocatorStrings(String locator1, String locator2) {
|
||||
|
||||
Location loc1 = new Location(locator1);
|
||||
Location loc2 = new Location(locator2);
|
||||
|
||||
return getBearing(loc1, loc2);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param loc1
|
||||
* source location
|
||||
|
||||
BIN
src/main/resources/LTTR0.mp3
Normal file
BIN
src/main/resources/LTTR0.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTR1.mp3
Normal file
BIN
src/main/resources/LTTR1.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTR2.mp3
Normal file
BIN
src/main/resources/LTTR2.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTR3.mp3
Normal file
BIN
src/main/resources/LTTR3.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTR4.mp3
Normal file
BIN
src/main/resources/LTTR4.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTR5.mp3
Normal file
BIN
src/main/resources/LTTR5.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTR6.mp3
Normal file
BIN
src/main/resources/LTTR6.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTR7.mp3
Normal file
BIN
src/main/resources/LTTR7.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTR8.mp3
Normal file
BIN
src/main/resources/LTTR8.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTR9.mp3
Normal file
BIN
src/main/resources/LTTR9.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRA.mp3
Normal file
BIN
src/main/resources/LTTRA.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRB.mp3
Normal file
BIN
src/main/resources/LTTRB.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRC.mp3
Normal file
BIN
src/main/resources/LTTRC.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRD.mp3
Normal file
BIN
src/main/resources/LTTRD.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRE.mp3
Normal file
BIN
src/main/resources/LTTRE.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRF.mp3
Normal file
BIN
src/main/resources/LTTRF.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRG.mp3
Normal file
BIN
src/main/resources/LTTRG.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRH.mp3
Normal file
BIN
src/main/resources/LTTRH.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRI.mp3
Normal file
BIN
src/main/resources/LTTRI.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRJ.mp3
Normal file
BIN
src/main/resources/LTTRJ.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRK.mp3
Normal file
BIN
src/main/resources/LTTRK.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRL.mp3
Normal file
BIN
src/main/resources/LTTRL.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRM.mp3
Normal file
BIN
src/main/resources/LTTRM.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRMINUS.mp3
Normal file
BIN
src/main/resources/LTTRMINUS.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRN.mp3
Normal file
BIN
src/main/resources/LTTRN.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRO.mp3
Normal file
BIN
src/main/resources/LTTRO.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRP.mp3
Normal file
BIN
src/main/resources/LTTRP.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRPOINT.mp3
Normal file
BIN
src/main/resources/LTTRPOINT.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRQ.mp3
Normal file
BIN
src/main/resources/LTTRQ.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRQUESTMARK.mp3
Normal file
BIN
src/main/resources/LTTRQUESTMARK.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRR.mp3
Normal file
BIN
src/main/resources/LTTRR.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRS.mp3
Normal file
BIN
src/main/resources/LTTRS.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRSPACE.mp3
Normal file
BIN
src/main/resources/LTTRSPACE.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRSTROKE.mp3
Normal file
BIN
src/main/resources/LTTRSTROKE.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRT.mp3
Normal file
BIN
src/main/resources/LTTRT.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRU.mp3
Normal file
BIN
src/main/resources/LTTRU.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRV.mp3
Normal file
BIN
src/main/resources/LTTRV.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRW.mp3
Normal file
BIN
src/main/resources/LTTRW.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRX.mp3
Normal file
BIN
src/main/resources/LTTRX.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRY.mp3
Normal file
BIN
src/main/resources/LTTRY.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/LTTRZ.mp3
Normal file
BIN
src/main/resources/LTTRZ.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/NOISECQWINDOW.mp3
Normal file
BIN
src/main/resources/NOISECQWINDOW.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/NOISEERROR.mp3
Normal file
BIN
src/main/resources/NOISEERROR.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/NOISENOTIFY.mp3
Normal file
BIN
src/main/resources/NOISENOTIFY.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/NOISEPMWINDOW.mp3
Normal file
BIN
src/main/resources/NOISEPMWINDOW.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/NOISESTARTUP.mp3
Normal file
BIN
src/main/resources/NOISESTARTUP.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE0.mp3
Normal file
BIN
src/main/resources/VOICE0.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE1.mp3
Normal file
BIN
src/main/resources/VOICE1.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE2.mp3
Normal file
BIN
src/main/resources/VOICE2.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE3.mp3
Normal file
BIN
src/main/resources/VOICE3.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE4.mp3
Normal file
BIN
src/main/resources/VOICE4.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE5.mp3
Normal file
BIN
src/main/resources/VOICE5.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE6.mp3
Normal file
BIN
src/main/resources/VOICE6.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE7.mp3
Normal file
BIN
src/main/resources/VOICE7.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE73.mp3
Normal file
BIN
src/main/resources/VOICE73.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE8.mp3
Normal file
BIN
src/main/resources/VOICE8.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICE9.mp3
Normal file
BIN
src/main/resources/VOICE9.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEA.mp3
Normal file
BIN
src/main/resources/VOICEA.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEB.mp3
Normal file
BIN
src/main/resources/VOICEB.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEBELL.mp3
Normal file
BIN
src/main/resources/VOICEBELL.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEC.mp3
Normal file
BIN
src/main/resources/VOICEC.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICED.mp3
Normal file
BIN
src/main/resources/VOICED.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEE.mp3
Normal file
BIN
src/main/resources/VOICEE.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEF.mp3
Normal file
BIN
src/main/resources/VOICEF.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEG.mp3
Normal file
BIN
src/main/resources/VOICEG.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEH.mp3
Normal file
BIN
src/main/resources/VOICEH.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEHELLO.mp3
Normal file
BIN
src/main/resources/VOICEHELLO.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEI.mp3
Normal file
BIN
src/main/resources/VOICEI.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEJ.mp3
Normal file
BIN
src/main/resources/VOICEJ.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEK.mp3
Normal file
BIN
src/main/resources/VOICEK.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEL.mp3
Normal file
BIN
src/main/resources/VOICEL.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEM.mp3
Normal file
BIN
src/main/resources/VOICEM.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEMEEPMEEP.mp3
Normal file
BIN
src/main/resources/VOICEMEEPMEEP.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEN.mp3
Normal file
BIN
src/main/resources/VOICEN.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEO.mp3
Normal file
BIN
src/main/resources/VOICEO.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEP.mp3
Normal file
BIN
src/main/resources/VOICEP.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEQ.mp3
Normal file
BIN
src/main/resources/VOICEQ.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICER.mp3
Normal file
BIN
src/main/resources/VOICER.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICES.mp3
Normal file
BIN
src/main/resources/VOICES.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICESTROKE.mp3
Normal file
BIN
src/main/resources/VOICESTROKE.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICESTROKEPORTABLE.mp3
Normal file
BIN
src/main/resources/VOICESTROKEPORTABLE.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICET.mp3
Normal file
BIN
src/main/resources/VOICET.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEU.mp3
Normal file
BIN
src/main/resources/VOICEU.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEV.mp3
Normal file
BIN
src/main/resources/VOICEV.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEW.mp3
Normal file
BIN
src/main/resources/VOICEW.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEX.mp3
Normal file
BIN
src/main/resources/VOICEX.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEY.mp3
Normal file
BIN
src/main/resources/VOICEY.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEYOUGOTMAIL.mp3
Normal file
BIN
src/main/resources/VOICEYOUGOTMAIL.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/VOICEZ.mp3
Normal file
BIN
src/main/resources/VOICEZ.mp3
Normal file
Binary file not shown.
BIN
src/main/resources/sk.mp3
Normal file
BIN
src/main/resources/sk.mp3
Normal file
Binary file not shown.
Reference in New Issue
Block a user