geolocationlocationcoordinatesnutiteq

Nutiteq getting coordinates of a location on map


I am trying to get the Co-ordinates of a location but i can find any way in nutiteq sdk please help me out.

Thanks.


Solution

  • Use the following class and you will be able to get the latitude and longitude.

    class CustomMarker extends Marker{

        private double latitude;
        private double longitude;
    
    
        public CustomMarker(MapPos markerLocation, Label markerLabel,
                MarkerStyle style, Object object) {
            super(markerLocation, markerLabel,
                    style,object);
        }
    
    
        public double getLatitude() {
            return latitude;
        }
    
    
        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }
    
    
        public double getLongitude() {
            return longitude;
        }
    
    
        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }
    
    }