-
Notifications
You must be signed in to change notification settings - Fork 19
Class Sublocation
Sublocation class is used for storing sublocation parameters: identifier, name, width, heigth, etc. The list of sublocations for the current location can be obtained from Location class using public method Location.getSublocations.
Referenced from: Location.
public int getId()Function returns the sublocation's identifier.
public int getLocation()Function returns the location's identifier.
public String getName()Function returns the sublocation's name.
public float getWidth()Function returns the sublocation's width (in meters).
public float getHeight()Function returns the sublocation's height (in meters).
public float getAzimuth()Function returns the sublocation's azimuth angle (in degrees, clockwise).
public String getImageId()Function returns the image id, which could be used for getting Image using ResourceManager.
public ArrayList<Beacon> getBeacons()Function returns the list of beacons, attached to this sublocation (see Beacon class).
public ArrayList<Eddystone> getEddystones()Function returns the list of eddystones, attached to this sublocation (see Eddystone class).
public ArrayList<Wifi> getWifis()Function returns the list of wifis, attached to this sublocation (see Wifi class).
public ArrayList<Venue> getVenues()Function returns the list of venues, attached to this sublocation (see Venue class).
public ArrayList<Zone> getZones()Function returns the list of zones from this sublocation (see Zone class).
public GlobalPoint localToGlobal(LocationPoint lp)Function is used for converting the local sublocation coordinates to the global geographic coordinates (latitude and longitude) using the geographic binding of the sublocation.
-
lp— the sublocation local point.
Global point — the geographical latitude and longitude, corresponding to the specified position within the sublocation.
public LocationPoint globalToLocal(GlobalPoint gp)Function is used for converting the global geographic coordinates (latitude and longitude) to the local sublocation coordinates (x and y) using the geographic binding of the sublocation.
-
gp— the global point.
The location point within the sublocation corresponding to the specified global point.
public Venue getVenueById(int id)-
id— the identifier of the venue.
Function returns the venue (within the current sublocation) with the specified identifier or null if no such venue exists.
public Zone getZoneById(int id)-
id— the identifier of the zone.
Function returns the zone (within the current sublocation) with the specified identifier or null if no such zone exists.
Tutorials
Classes
- NavigineSdk
- LocationListManager
- LocationManager
- NavigationManager
- RouteManager
- ZoneManager
- NotificationManager
- MeasurementManager
- LocationEditManager
- ResourceManager
- Location
- Sublocation
- Category
- Venue
- Zone
- Beacon
- Eddystone
- Wifi
- LocationView
- LocationViewController
- CircleMapObject
- PolylineMapObject
- IconMapObject
- TouchInput
- ScaleResponder
- PanResponder
- LongPressResponder
- DoubleTapResponder
- TapResponder
- LocationListListener
- LocationListener
- PositionListener
- RouteListener
- ZoneListener
- NotificationListener
- LocationEditListener
- MeasurementListener
- ResourceListener
- ResourceUploadListener
- Notification
- Position
- SignalMeasurement
- SensorMeasurement
- Image
- RoutePath
- RouteEvent
- LocationPoint
- LocationInfo
- BitmapRegionDecoder