com.eurotech.framework.position
Interface PositionService


public interface PositionService

This interface provides methods getting a geographic position. The OSGI Position class represents a geographic location, based on the WGS84 System (World Geodetic System 1984).

Position(Measurement lat, Measurement lon, Measurement alt, Measurement speed, Measurement track)

The interface also return a NmeaPosition, subclass of Position

See Also:
NmeaPosition, Position, Measurement

Method Summary
 String getLastSentence()
          Returns the last sentence received from the gps.
 String getNmeaDate()
          Returns the current NMEA date from ZDA sentence
 NmeaPosition getNmeaPosition()
          Returns the current NMEA geographic position.
 String getNmeaTime()
          Returns the current NMEA time from GGA or ZDA sentence
 org.osgi.util.position.Position getPosition()
          Returns the current geographic position.
The org.osgi.util.measurement.Measurement class is used to represent the values that make up a position :
getLongitude() : returns the longitude of this position in radians. getLatitude() : returns the latitude of this position in radians.
 boolean isLocked()
          Returns true if a valid geographic position has been received.
 

Method Detail

getPosition

org.osgi.util.position.Position getPosition()
Returns the current geographic position.
The org.osgi.util.measurement.Measurement class is used to represent the values that make up a position :
  • getLongitude() : returns the longitude of this position in radians.
  • getLatitude() : returns the latitude of this position in radians.
  • getSpeed() : returns the ground speed of this position in meters per second.
  • getTrack() : Returns the track of this position in radians as a compass heading. The track is the extrapolation of previous previously measured positions to a future position.

  • See Also:
    Position

    getNmeaPosition

    NmeaPosition getNmeaPosition()
    Returns the current NMEA geographic position.
  • getLongitude() : returns the longitude of this position in degrees.
  • getLatitude() : returns the latitude of this position in degrees.
  • getSpeedKmh() : returns the ground speed of this position in km/h.
  • getSpeedMph() : returns the ground speed of this position in mph.
  • getTrack() : Returns the track of this position in degrees as a compass heading.

    See Also:
    NmeaPosition

  • getNmeaTime

    String getNmeaTime()
    Returns the current NMEA time from GGA or ZDA sentence


    getNmeaDate

    String getNmeaDate()
    Returns the current NMEA date from ZDA sentence


    isLocked

    boolean isLocked()
    Returns true if a valid geographic position has been received.


    getLastSentence

    String getLastSentence()
    Returns the last sentence received from the gps.



    Copyright © 2013. All Rights Reserved.