public abstract class MapDataStore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
preferredLanguage
the preferred language when extracting labels from this data store.
|
Constructor and Description |
---|
MapDataStore()
Ctor for MapDataStore that will use default language.
|
MapDataStore(java.lang.String language)
Ctor for MapDataStore setting preferred language.
|
Modifier and Type | Method and Description |
---|---|
abstract org.mapsforge.core.model.BoundingBox |
boundingBox()
Returns the area for which data is supplied.
|
abstract void |
close() |
static java.lang.String |
extract(java.lang.String s,
java.lang.String language)
Extracts substring of preferred language from multilingual string.
Example multilingual string: "Base\ren\bEnglish\rjp\bJapan\rzh_py\bPin-yin". |
protected java.lang.String |
extractLocalized(java.lang.String s)
Extracts substring of preferred language from multilingual string using
the preferredLanguage setting.
|
abstract long |
getDataTimestamp(org.mapsforge.core.model.Tile tile)
Returns the timestamp of the data used to render a specific tile.
|
MapReadResult |
readLabels(org.mapsforge.core.model.Tile tile)
Reads only labels for tile.
|
MapReadResult |
readLabels(org.mapsforge.core.model.Tile upperLeft,
org.mapsforge.core.model.Tile lowerRight)
Reads data for an area defined by the tile in the upper left and the tile in
the lower right corner.
|
abstract MapReadResult |
readMapData(org.mapsforge.core.model.Tile tile)
Reads data for tile.
|
MapReadResult |
readMapData(org.mapsforge.core.model.Tile upperLeft,
org.mapsforge.core.model.Tile lowerRight)
Reads data for an area defined by the tile in the upper left and the tile in
the lower right corner.
|
abstract MapReadResult |
readPoiData(org.mapsforge.core.model.Tile tile)
Reads only POI data for tile.
|
MapReadResult |
readPoiData(org.mapsforge.core.model.Tile upperLeft,
org.mapsforge.core.model.Tile lowerRight)
Reads POI data for an area defined by the tile in the upper left and the tile in
the lower right corner.
|
abstract org.mapsforge.core.model.LatLong |
startPosition()
Gets the initial map position.
|
abstract java.lang.Byte |
startZoomLevel()
Gets the initial zoom level.
|
abstract boolean |
supportsTile(org.mapsforge.core.model.Tile tile)
Returns true if MapDatabase contains tile.
|
boolean |
wayAsLabelTagFilter(java.util.List<org.mapsforge.core.model.Tag> tags)
Returns true if a way should be included in the result set for readLabels()
By default only ways with names, house numbers or a ref are included in the result set
of readLabels().
|
protected java.lang.String preferredLanguage
public MapDataStore()
public MapDataStore(java.lang.String language)
language
- the preferred language or null if default language is used.public static java.lang.String extract(java.lang.String s, java.lang.String language)
public abstract org.mapsforge.core.model.BoundingBox boundingBox()
public abstract void close()
protected java.lang.String extractLocalized(java.lang.String s)
public abstract long getDataTimestamp(org.mapsforge.core.model.Tile tile)
tile
- A tile.public MapReadResult readLabels(org.mapsforge.core.model.Tile tile)
tile
- tile for which data is requested.public MapReadResult readLabels(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
upperLeft
- tile that defines the upper left corner of the requested area.lowerRight
- tile that defines the lower right corner of the requested area.public abstract MapReadResult readMapData(org.mapsforge.core.model.Tile tile)
tile
- tile for which data is requested.public MapReadResult readMapData(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
upperLeft
- tile that defines the upper left corner of the requested area.lowerRight
- tile that defines the lower right corner of the requested area.public abstract MapReadResult readPoiData(org.mapsforge.core.model.Tile tile)
tile
- tile for which data is requested.public MapReadResult readPoiData(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
upperLeft
- tile that defines the upper left corner of the requested area.lowerRight
- tile that defines the lower right corner of the requested area.public abstract org.mapsforge.core.model.LatLong startPosition()
public abstract java.lang.Byte startZoomLevel()
public abstract boolean supportsTile(org.mapsforge.core.model.Tile tile)
tile
- tile to be rendered.public boolean wayAsLabelTagFilter(java.util.List<org.mapsforge.core.model.Tag> tags)
tags
- the tags associated with the way