source: josm/trunk/src/org/openstreetmap/josm/data/coor/conversion/ICoordinateFormat.java@ 12735

Last change on this file since 12735 was 12735, checked in by bastiK, 7 years ago

see #15229 - move CoordinateFormat code out of LatLon class

File size: 831 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.coor.conversion;
3
4import org.openstreetmap.josm.data.coor.ILatLon;
5
6/**
7 * A class that converts lat/lon coordinates to string.
8 *
9 * @since 12735
10 */
11public 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.