aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/geopoint
Commit message (Collapse)AuthorAgeFilesLines
* code cleanup: remove all unnecessary castsBananeweizen2011-10-151-7/+7
|
* Do not FC when the cache coordinates are unparsableSamuel Tardieu2011-10-091-3/+15
| | | | | | | This should fix #647. Also, add some documentation on possibly thrown exceptions from Geopoint constructors.
* fix #120: make settings static (no singleton)Bananeweizen2011-10-031-3/+2
| | | | | | | | | | * Settings can no longer be instantiated, everything is static instead. * Most option values are no longer cached in fields. This has been done for clarity during the refactoring. I will add some performance tests afterwards and may re-introduce those fields for caching the option values. Sorry, if anyone gets merge issues afterwards. There was no easier way to implement this...
* Add new Geopoint constructor with separate latitude and longitude textsSamuel Tardieu2011-09-271-2/+14
|
* Prefer a canonical longitude representationSamuel Tardieu2011-09-221-1/+2
| | | | | | | If -180 is given, use 180 instead. This is arbitrary, and could be changed to -180 without consequences. But it lets each Geopoint be uniquely defined if we except the North and South poles since the longitude has no meaning there.
* Only - ^ ] \ must be escaped in a character classSammysHP2011-09-172-4/+4
| | | See http://www.regular-expressions.info/charclass.html for reference.
* Correctly parse distance using commasSamuel Tardieu2011-09-161-2/+2
|
* Move sources into the main directorySamuel Tardieu2011-09-164-0/+715
This prepares the inclusion of tests into the same repository.