Class LocationFoundEvent

java.lang.Object
com.jbstrap.core.event.BaseEvent
com.jbstrap.jbmap.events.LocationFoundEvent

public class LocationFoundEvent extends com.jbstrap.core.event.BaseEvent
The LocationFoundEvent class contains the user�s location data. These are the following:
  • Longitude
  • Latitude
  • Location accuracy
  • Error/success message
Since:
4.0
  • Constructor Details

    • LocationFoundEvent

      public LocationFoundEvent()
  • Method Details

    • getLongitude

      public Double getLongitude()
      Gets the longitude coordinates.
      Returns:
      Longitude
    • getLatitude

      public Double getLatitude()
      Gets the latitude coordinates.
      Returns:
      Latitude
    • getAccuracy

      public Double getAccuracy()
      Gets the location accuracy. Location accuracy is represented in a circle with a given radius.
      Returns:
      Circle radius (meters)
    • getMessage

      public String getMessage()
      Gets the message returned when the user�s location was identified.
      Returns:
      Message Successful identification attempt: SUCCESS.
    • fireEvent

      public void fireEvent()
      Specified by:
      fireEvent in class com.jbstrap.core.event.BaseEvent