Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- A map label has a place name, longitude and latitude
- */
- public class MapLabels
- {
- private String placeName;
- private double latitude;
- private double longitude;
- /**
- Constructs a map label with place name, logitude and latitude
- */
- public MapLabels (String name, double aLat, double aLong)
- {
- placeName = name;
- latitude = aLat;
- longitude = aLong;
- }
- /**
- Gets the string in XML form
- @return the string
- */
- public String toString()
- {
- String label = "<label name=\"" + placeName + "\" latitude=\"" + latitude + "\" longitude=\"" + longitude + "\"/>";
- return label;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement