-
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 abstract int getId();Function returns the sublocation's identifier.
public abstract int getLocation();Function returns the location's identifier.
public abstract String getName();Function returns the sublocation's name.
public abstract float getWidth();Function returns the sublocation's width (in meters).
public abstract float getHeight();Function returns the sublocation's height (in meters).
public abstract float getAltitude();Function returns the sublocation's altitude (in meters).
public abstract float getAzimuth();Function returns the sublocation's azimuth angle (in degrees, clockwise).
public abstract GlobalPoint getOriginPoint();Function returns the sublocation's origin point (in lat, lon).
public abstract String getLevelId();Function returns the sublocation's level id.
public abstract String getExternalId();Function returns the sublocation's external id.
public abstract ArrayList<Beacon> getBeacons();Function returns the list of beacons, attached to this sublocation (see Beacon class).
public abstract ArrayList<Eddystone> getEddystones();Function returns the list of eddystones, attached to this sublocation (see Eddystone class).
public abstract ArrayList<Wifi> getWifis();Function returns the list of wifis, attached to this sublocation (see Wifi class).
public abstract ArrayList<Venue> getVenues();Function returns the list of venues, attached to this sublocation (see Venue class).
public abstract ArrayList<Zone> getZones();Function returns the list of zones from this sublocation (see Zone class).
public abstract android.graphics.Bitmap getImage(Integer maxTextureSize);Function returns the origin sublocation image with specified maxTextureSize.
-
maxTextureSize— scale parameter. Could be zero
android.graphics.Bitmap image — sublocation image.
public abstract GlobalPoint localToGlobal(LocationPoint localPoint);Function is used for converting the local sublocation coordinates to the global geographic coordinates (latitude and longitude) using the geographic binding of the sublocation.
-
localPoint— the sublocation's local point.
Global point — the geographical latitude and longitude, corresponding to the specified position within the sublocation.
public abstract LocationPoint globalToLocal(GlobalPoint globalPoint);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.
-
globalPoint— the sublocation's global point.
The location point within the sublocation corresponding to the specified global point.
public abstract 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 abstract 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.
public abstract Graph getGraph(String tag);-
tag— graph tag
Function returns graph (within the current sublocation) with the specified identifier or null if no such graph.
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