Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.coor.conversion;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.coor.ILatLon;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * A class that converts lat/lon coordinates to string.
|
---|
8 | *
|
---|
9 | * @since 12735
|
---|
10 | */
|
---|
11 | public interface ICoordinateFormat {
|
---|
12 | /**
|
---|
13 | * Get unique id for this coordinate format.
|
---|
14 | * @return unique id
|
---|
15 | */
|
---|
16 | String getId();
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Get display name for this coordinate format
|
---|
20 | * @return display name (localized)
|
---|
21 | */
|
---|
22 | String getDisplayName();
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * Convert latitude to string.
|
---|
26 | * @param ll the coordinate
|
---|
27 | * @return formatted latitude
|
---|
28 | */
|
---|
29 | String latToString(ILatLon ll);
|
---|
30 |
|
---|
31 | /**
|
---|
32 | * Convert longitude to string.
|
---|
33 | * @param ll the coordinate
|
---|
34 | * @return formatted longitude
|
---|
35 | */
|
---|
36 | String lonToString(ILatLon ll);
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.