Class is used for storing location parameters: identifier, version, name, a list of sublocations, etc.
More...
Class is used for storing location parameters: identifier, version, name, a list of sublocations, etc.
Location instance can be obtained from LocationManager using LocationListener callback, when the location is loaded.
Referenced from LocationManager LocationListener.
Definition at line 20 of file Location.java.
◆ getCategories()
| abstract ArrayList< Category > com.navigine.idl.java.Location.getCategories |
( |
| ) |
|
|
abstract |
List of venue categories defined for the location Category.
- Returns
Java code snippet:
java.util.ArrayList<Category> categories = location.getCategories();
System.out.println("Number of categories: " + categories.size());
Kotlin code snippet:
// Get all categories
val categories = location.categories
println("Number of categories: ${categories.size}")
◆ getCategoryById()
| abstract Category com.navigine.idl.java.Location.getCategoryById |
( |
int | id | ) |
|
|
abstract |
Method is used for obtaining a category with the specified identifier from the current location.
- Parameters
-
- Returns
- Category of the current location with the specified identifier, if it exists. If category with the specified identifier doesn't exist, function returns null.
Java code snippet:
if (!categories.isEmpty()) {
if (category != null) {
}
}
Kotlin code snippet:
// Get category by ID
categories.firstOrNull()?.let { category ->
val foundCategory = location.getCategoryById(category.id)
foundCategory?.let { demonstrateCategoryUsage(it) }
}
◆ getDescript()
| abstract String com.navigine.idl.java.Location.getDescript |
( |
| ) |
|
|
abstract |
location's description.
- Returns
Java code snippet:
String description = location.getDescript();
System.out.println("Location description: " + description);
Kotlin code snippet:
// Get location description
val description = location.descript
println("Location description: $description")
◆ getElevationGraph()
| abstract ElevationGraph com.navigine.idl.java.Location.getElevationGraph |
( |
String | tag | ) |
|
|
abstract |
Method returns location elevation graph ElevationGraph for specified tag.
- Parameters
-
- Returns
- Elevation graph instance or
null.
-
ElevationGraph of the current location with the specified tag, if it exists. If elevation graph with the specified tag doesn't exist, function returns null.
Java code snippet:
if (!graphTags.isEmpty()) {
if (elevationGraph != null) {
}
}
Kotlin code snippet:
// Get elevation graph by tag
graphTags.firstOrNull()?.let { tag ->
val elevationGraph = location.getElevationGraph(tag)
elevationGraph?.let { demonstrateElevationGraphUsage(it) }
}
◆ getGraphTags()
| abstract ArrayList< String > com.navigine.idl.java.Location.getGraphTags |
( |
| ) |
|
|
abstract |
Method returns list of available graph tags.
- Returns
- Array of existing tags
Java code snippet:
java.util.ArrayList<String> graphTags = location.
getGraphTags();
System.out.println("Available graph tags: " + graphTags);
Kotlin code snippet:
// Get available graph tags
val graphTags = location.graphTags
println("Available graph tags: $graphTags")
◆ getId()
| abstract int com.navigine.idl.java.Location.getId |
( |
| ) |
|
|
abstract |
location's identifier.
- Returns
Java code snippet:
int locationId = location.getId();
System.out.println("Location ID: " + locationId);
Kotlin code snippet:
// Get location ID
val locationId = location.id
println("Location ID: $locationId")
◆ getModified()
| abstract boolean com.navigine.idl.java.Location.getModified |
( |
| ) |
|
|
abstract |
Flag indicates if location has been modified by user or not.
- Returns
Java code snippet:
boolean isModified = location.getModified();
System.out.println("Location modified: " + isModified);
Kotlin code snippet:
// Check if location is modified
val isModified = location.modified
println("Location modified: $isModified")
◆ getName()
| abstract String com.navigine.idl.java.Location.getName |
( |
| ) |
|
|
abstract |
location name.
- Returns
Java code snippet:
String name = location.getName();
System.out.println("Location name: " + name);
Kotlin code snippet:
// Get location name
val name = location.name
println("Location name: $name")
◆ getSublocationById()
| abstract Sublocation com.navigine.idl.java.Location.getSublocationById |
( |
int | id | ) |
|
|
abstract |
Method is used for obtaining a sublocation with the specified identifier from the current location.
- Parameters
-
| id | sublocation identifier. |
- Returns
- The Sublocation of the current location with the specified identifier, if it exists. If sublocation with the specified identifier doesn't exist, function returns null.
Java code snippet:
if (!sublocations.isEmpty()) {
if (sublocation != null) {
}
}
Kotlin code snippet:
// Get sublocation by ID
sublocations.firstOrNull()?.let { sublocation ->
val foundSublocation = location.getSublocationById(sublocation.id)
foundSublocation?.let { demonstrateSublocationUsage(it) }
}
◆ getSublocations()
| abstract ArrayList< Sublocation > com.navigine.idl.java.Location.getSublocations |
( |
| ) |
|
|
abstract |
List of sublocations Sublocation.
- Returns
Java code snippet:
java.util.ArrayList<Sublocation> sublocations = location.getSublocations();
System.out.println("Number of sublocations: " + sublocations.size());
Kotlin code snippet:
// Get all sublocations
val sublocations = location.sublocations
println("Number of sublocations: ${sublocations.size}")
◆ getVersion()
| abstract int com.navigine.idl.java.Location.getVersion |
( |
| ) |
|
|
abstract |
location's version.
- Returns
Java code snippet:
int version = location.getVersion();
System.out.println("Location version: " + version);
Kotlin code snippet:
// Get location version
val version = location.version
println("Location version: $version")
The documentation for this class was generated from the following file: