ClearLatitudeAsAddress Removes any latitude associated with this address.
ClearLongitudeAsAddress Removes any longitude associated with this address.
GetAddressLine (Index AsInt) AsString Returns a line of the address numbered by the given index (starting at 0), or null if no such line is present.
GetAdminAreaAsString Returns the administrative area name of the address, for example, "CA", or null if it is unknown.
GetCountryCodeAsString Returns the country code of the address, for example "US", or null if it is unknown.
GetCountryNameAsString Returns the localized country name of the address, for example "Iceland", or null if it is unknown.
GetFeatureNameAsString Returns the feature name of the address, for example, "Golden Gate Bridge", or null if it is unknown.
GetLatitudeAsDouble Returns the latitude of the address if known.
GetLocalityAsString Returns the locality of the address, for example "Mountain View", or null if it is unknown.
GetLongitudeAsDouble Returns the longitude of the address if known.
GetPhoneAsString Returns the phone number of the address if known, or null if it is unknown.
GetPostalCodeAsString Returns the postal code of the address, for example "94110", or null if it is unknown.
GetPremisesAsString Returns the premises of the address, or null if it is unknown.
GetSubAdminAreaAsString Returns the sub-administrative area name of the address, for example, "Santa Clara County", or null if it is unknown.
GetSubLocalityAsString Returns the sub-locality of the address, or null if it is unknown. For example, this may correspond to the neighborhood of the locality.
GetSubThoroughfareAsString Returns the sub-thoroughfare name of the address, which may be null. This may correspond to the street number of the address.
GetThoroughfareAsString Returns the thoroughfare name of the address, for example, "1600 Ampitheater Parkway", which may be null.
GetUrlAsString Returns the public URL for the address if known, or null if it is unknown.
InitializeAsAddress Initialize with system default locale settings.
Initialize2 (Language AsString) AsAddress
Initialize3 (Language AsString, Country AsString) AsAddress
Initialize4 (Language AsString, Country AsString, Variant AsString) AsAddress
IsInitializedAsBoolean
SetAddressLine (Index AsInt, Line AsString) AsAddress Sets the line of the address numbered by index (starting at 0) to the given String, which may be null.
SetAdminArea (AdminArea AsString) AsAddress Sets the administrative area name of the address to the given String, which may be null.
SetCountryCode (CountryCode AsString) AsAddress Sets the country code of the address to the given String, which may be null.
SetCountryName (CountryName AsString) AsAddress Sets the country name of the address to the given String, which may be null.
SetFeatureName (FeatureName AsString) AsAddress Sets the feature name of the address to the given String, which may be null.
SetLatitude (Latitude AsDouble) AsAddress Sets the latitude associated with this address.
SetLocality (Locality AsString) AsAddress Sets the locality of the address to the given String, which may be null.
SetLongitude (Longitude AsDouble) AsAddress Sets the longitude associated with this address.
SetPhone (Phone AsString) AsAddress Sets the phone number associated with this address.
SetPostalCode (PostalCode AsString) AsAddress Sets the postal code of the address to the given String, which may be null.
SetPremises (Premises AsString) AsAddress Sets the premises of the address to the given String, which may be null.
SetSubAdminArea (SubAdminArea AsString) AsAddress Sets the sub-administrative area name of the address to the given String, which may be null.
SetSubLocality (Sublocality AsString) AsAddress Sets the sub-locality of the address to the given String, which may be null.
SetSubThoroughfare (Subthoroughfare AsString) AsAddress Sets the sub-thoroughfare name of the address, which may be null.
SetThoroughfare (Thoroughfare AsString) AsAddress
SetUrl (Url AsString) AsAddress
Properties:
ExtrasAsMap [read only]
Returns additional provider-specific information about the address as a B4X Map. The keys and values are determined by the provider. If no additional information is available, empty B4X Map is returned.
HasLatitudeAsBoolean [read only]
Returns true if a latitude has been assigned to this Address, false otherwise.
HasLongitudeAsBoolean [read only]
Returns true if a longitude has been assigned to this Address, false otherwise.
MaxAddressLineIndexAsInt [read only]
Returns the largest index currently in use to specify an address line. If no address lines are specified, -1 is returned.
SetBoundingBox (Item Asigolub.osmdroid6.b4a.views.overlays.OverlayWrapper, mBoundingBox Asigolub.osmdroid6.b4a.util.BoundingBoxWrapper) AsFolderZOverlay Define the bounding box of this overlay.
This may dramatically increase drawing performance when the overlay is completely outside the current view.
GetPOICloseTo (Position Asigolub.osmdroid6.b4a.util.GeoPointWrapper, MaxResults AsInt, MaxDistance AsDouble) AsListOfPOI MaxDistance - in km. 20 km max for the free service.
Return list of POI, Wikipedia entries close to the position. Null if technical issue.
GetPOIInside (mBoundingBox Asigolub.osmdroid6.b4a.util.BoundingBoxWrapper, MaxResults AsInt) AsListOfPOI Return list of POI, Wikipedia entries close to the position. Null if technical issue.
Initialize (AccountUserName AsString) AsGeoNamesPOIProvider AccountUserName - the registered "username" to give to GeoNames service.
IsInitializedAsBoolean
GeocoderGraphHopper
Functions:
GetFromLocation (Latitude AsDouble, Longitude AsDouble, MaxResults AsInt) AsListOfAddress Equivalent to Geocoder::getFromLocation(double latitude, double longitude, int maxResults).
GetFromLocationName (LocationName AsString, MaxResults AsInt) AsListOfAddress Equivalent to Geocoder::getFromLocation(String locationName, int maxResults).
GetFromLocationName3 (LocationName AsString, MaxResults AsInt, LowerLeftLatitude AsDouble, LowerLeftLongitude AsDouble, UpperRightLatitude AsDouble, UpperRightLongitude AsDouble, Bounded AsBoolean) AsListOfAddress Equivalent to Geocoder::getFromLocation(String locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude) but adding bounded parameter.
Bounded - true return only results which are inside the view box; false = view box is used as a preferred area to find search results.
GetFromLocationName3 (LocationName AsString, MaxResults AsInt, LowerLeftLatitude AsDouble, LowerLeftLongitude AsDouble, UpperRightLatitude AsDouble, UpperRightLongitude AsDouble, Bounded AsBoolean) AsListOfAddress Equivalent to Geocoder::getFromLocation(String locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude) but adding bounded parameter.
Bounded - true return only results which are inside the view box; false = view box is used as a preferred area to find search results.
InitializeAsGeocoderNominatim
Initialize2 (UserAgent AsString) AsGeocoderNominatim UserAgent - Set UserAgent String. It is recommended to use 'Application.PackageName' as UserAgent.
Initialize3 (UserAgent AsString, Language AsString) AsGeocoderNominatim UserAgent - Set UserAgent String. It is recommended to use 'Application.PackageName' as UserAgent.
Initialize4 (UserAgent AsString, Language AsString, Country AsString) AsGeocoderNominatim UserAgent - Set UserAgent String. It is recommended to use 'Application.PackageName' as UserAgent.
Initialize5 (UserAgent AsString, Language AsString, Country AsString, Variant AsString) AsGeocoderNominatim UserAgent - Set UserAgent String. It is recommended to use 'Application.PackageName' as UserAgent.
IsInitializedAsBoolean
SetKey (AppKey AsString) AsGeocoderNominatim Set ApiKey if it is necessary for Nominatim service.
SetOptions (Polygon AsBoolean) AsGeocoderNominatim Polygon - True to get the polygon enclosing the location.
SetService (ServiceUrl AsString) AsGeocoderNominatim Specify the url of the Nominatim service provider to use.
GraphHopperRoadManager
Functions:
AddRequestOption (RequestOption AsString) AsRoadManager Add an option that will be used in the route request.
Note that some options are set in the request in all cases.
RequestOption - See provider documentation.
Just one example: "routeType=bicycle" for MapQuest; "mode=bicycling" for Google.
GetRoad (Waypoints Asigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper) AsRoad In case of error, road status is set to error, and the shape has just straight lines between waypoints.
GetRoads (Waypoints Asigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper) AsRoad() Road at index 0 is the shortest (in time).
The array may contain more entries, for alternate routes - assuming the routing service used supports alternate routes.
In case of error, return 1 road with its status set to error, and its shape with just straight lines between waypoints.
Initialize (ApiKey AsString, AlternativesAvailable AsBoolean) AsGraphHopperRoadManager ApiKey - GraphHopper API key, mandatory to use the public GraphHopper service.
IsInitializedAsBoolean
SetAlternativeMaxRoutes (MaxAlternativesRoutes AsInt) AsGraphHopperRoadManager Default: 2
If AlternateAvailable is true, this parameter sets the number of maximum routes which should be calculated. Increasing can lead to worse alternatives.
SetAlternativeShareFactor (ShareFactor AsDouble) AsGraphHopperRoadManager Default: 0.6
If AlternateAvailable is true, this parameter specifies how similar an alternative route can be to the optimal route. Increasing can lead to worse alternatives.
SetAlternativeWeightFactor (WeightFactor AsDouble) AsGraphHopperRoadManager Default: 1.4
If AlternateAvailable is true, this parameter sets the factor by which the alternatives routes can be longer than the optimal route. Increasing can lead to worse alternatives.
SetElevation (WithElevation AsBoolean) AsGraphHopperRoadManager Set if altitude of every route point should be requested or not. Default is false.
SetLocale (Locale AsString) AsGraphHopperRoadManager Default: "en".
The locale of the resulting turn instructions. E.g. pt_PT for Portuguese or de for German.
SetOptimize (Optimize AsBoolean) AsGraphHopperRoadManager Default: "false".
Normally, the calculated route will visit the points in the order you specified them. If you have more than two points, you can set this parameter to "true" and the points may be re-ordered to minimize the total travel time. Keep in mind that the limits on the number of locations of the Route Optimization API applies, and the request costs more credits.
SetPreventions (Preventions AsString()) AsGraphHopperRoadManager Optional parameter to avoid snapping to a certain road class or road environment. Currently supported values are motorway, trunk, ferry, tunnel, bridge and ford. Value or values must be placed in array of Strings.
You can use 'GraphHopperRoadManager_Constants' static class module to choose a preventions.
SetProfile (Profile AsString) AsGraphHopperRoadManager Default: "car".
Specifies the vehicle profile of this type. The profile is used to determine the network, speed and other physical attributes to use for routing the vehicle or pedestrian.
You can use 'GraphHopperRoadManager_Constants' static class module to choose a profile.
SetService (ServiceUrl AsString) AsGraphHopperRoadManager Allows to request on an other site than GraphHopper demo site
GraphHopperRoadManager_Constants
Fields:
PREVENT_BRIDGEAsString
PREVENT_FERRYAsString
PREVENT_FORDAsString
PREVENT_MOTORWAYAsString
PREVENT_TRUNKAsString
PREVENT_TUNNELAsString
PROFILE_BIKEAsString Trekking bike avoiding hills.
PROFILE_CARAsString Car mode: car access, weight=2500kg, width=2m, height=2m.
PROFILE_CAR_AVOID_FERRYAsString Car mode: car that heavily penalizes ferries.
PROFILE_CAR_AVOID_MOTORWAYAsString Car mode: car that heavily penalizes motorways.
PROFILE_CAR_AVOID_TOOLAsString Car mode: car that heavily penalizes tolls.
PROFILE_CAR_DELIVERYAsString Car mode: car access including delivery and private roads. Use only in case your drivers are allowed to access these roads.
PROFILE_FOOTAsString Pedestrian or walking without dangerous SAC-scales.
PROFILE_HIKEAsString Pedestrian or walking with priority for more beautiful hiking tours and potentially a bit longer than foot. Walking duration is influenced by elevation differences.
PROFILE_MOUNTAINBIKEAsString Mountainbike.
PROFILE_RACINGBIKEAsString Bike preferring roads.
PROFILE_SCOOTERAsString Moped mode: Fast inner city, often used for food delivery, is able to ignore certain bollards, maximum speed of roughly 50km/h. weight=300kg, width=1m, height=2m.
PROFILE_SCOOTER_DELIVERYAsString Moped mode: Like scooter but including delivery and private roads. Use only in case your drivers are allowed to access these roads.
PROFILE_SMALL_TRUCKAsString Small truck like a Mercedes Sprinter, Ford Transit or Iveco Daily: height=2.7m, width=2+0.34m, length=5.5m, weight=2080+1400 kg.
PROFILE_SMALL_TRUCK_DELIVERYAsString Small truck: Like small_truck but including delivery and private roads. Use only in case your drivers are allowed to access these roads.
PROFILE_TRUCKAsString Truck like a MAN or Mercedes-Benz Actros: height=3.7m, width=2.6+0.34m, length=12m, weight=13000+13000 kg, hgv=yes, 3 Axes.
AddRequestOption (RequestOption AsString) AsRoadManager Add an option that will be used in the route request.
Note that some options are set in the request in all cases.
RequestOption - See provider documentation.
Just one example: "routeType=bicycle" for MapQuest; "mode=bicycling" for Google.
GetRoad (Waypoints Asigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper) AsRoad In case of error, road status is set to error, and the shape has just straight lines between waypoints.
GetRoads (Waypoints Asigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper) AsRoad() Road at index 0 is the shortest (in time).
The array may contain more entries, for alternate routes - assuming the routing service used supports alternate routes.
In case of error, return 1 road with its status set to error, and its shape with just straight lines between waypoints.
Initialize (ApiKey AsString) AsMapQuestRoadManager ApiKey - MapQuest API key, mandatory to use the MapQuest Open service.
IsInitializedAsBoolean
SetAvoids (Avoids AsString()) AsMapQuestRoadManager Attribute flags of roads to try to avoid. The available attribute flags depend on the data set. This does not guarantee roads with these attributes will be avoided if alternate route paths are too lengthy, or not possible, or roads that contain these attributes are very short.
Available choices:
Limited Access (highways)
Toll Road
Ferry
Unpaved
Approximate Seasonal Closure (Seasonal roads may not be selected with 100% accuracy)
Country Border Crossing
Bridge
Tunnel
You can use 'MapQuestRoadManager_Constants' static class module to choose Avoids constants.
SetDisallows (Disallows AsString()) AsMapQuestRoadManager Attribute flags of roads to disallow. The available attribute flags depend on the data set. This guarantees roads with these attributes will not be allowed as part of the route.
Available choices:
Limited Access (highways)
Toll Road
Ferry
Unpaved
Approximate Seasonal Closure (Seasonal roads may not be selected with 100% accuracy)
Country Border Crossing
Bridge
Tunnel
You can use 'MapQuestRoadManager_Constants' static class module to choose Disallows constants.
SetLocale (Locale AsString) AsMapQuestRoadManager Input can be any supported ISO 639-1 code.
Supported:
en_US = English (US)
en_GB = English (Great Britain)
fr_CA = French (Canada)
fr_FR = French (France)
de_DE = German (Germany)
es_ES = Spanish (Spain)
es_MX = Spanish (Mexico)
ru_RU = Russian (Russia)
Default: en_US
If entered locale is not supported, the route will not be created.
SetRouteType (RouteType AsString) AsMapQuestRoadManager Specifies the type of route wanted. Acceptable values are:
fastest - Quickest drive time route.
shortest - Shortest driving distance route.
pedestrian - Walking route; Avoids limited access roads; Ignores turn restrictions.
bicycle - Will only use roads on which bicycling is appropriate.
Note: There is a distance limit (approximately 200 miles / 320 kilometers) for pedestrian routing. Requests to find a pedestrian route beyond the maximum distance will result in an error.
Default: fastest
You can use 'MapQuestRoadManager_Constants' static class module to choose RouteType constant.
MapQuestRoadManager_Constants
Fields:
AWOID_OR_DISALLOW_APPROXIMATE_SEASONAL_CLOSUREAsString Seasonal roads may not be selected with 100% accuracy.
AWOID_OR_DISALLOW_BRIDGEAsString
AWOID_OR_DISALLOW_COUNTRY_BORDER_CROSSINGAsString
AWOID_OR_DISALLOW_FERRYAsString
AWOID_OR_DISALLOW_LIMITED_ACCESSAsString highways
AWOID_OR_DISALLOW_TOLL_ROADAsString
AWOID_OR_DISALLOW_TUNNELAsString
AWOID_OR_DISALLOW_UNPAVEDAsString
ROUTE_TYPE_BICYCLEAsString Will only use roads on which bicycling is appropriate.
ROUTE_TYPE_FASTESTAsString Quickest drive time route.
GetPOIAlongRoute (Path Asigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper, Facility AsString, MaxResults AsInt, MaxWidth AsDouble) AsListOfPOI Warning: a very long path may cause a failure due to the url to be too long.
Using a simplified route may help.
Note that Nominatim facility search uses Special Phrases instead of OSM tags.
See Facilities|http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases
and Facilities|http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN
or Facilities|http://code.google.com/p/osmbonuspack/source/browse/trunk/OSMNavigator/res/values/poi_tags.xml
MaxResults - the maximum number of POI returned. Note that in any case, Nominatim will have an absolute maximum of 50.
MaxWidth - max width to the path. Certainly not in degrees. Probably in km.
Returns the list of POI close to position, null if technical issue.
GetPOICloseTo (Position Asigolub.osmdroid6.b4a.util.GeoPointWrapper, Facility AsString, MaxResults AsInt, MaxDistance AsDouble) AsListOfPOI Note that Nominatim facility search uses Special Phrases instead of OSM tags.
See Facilities|http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases
and Facilities|http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN
or Facilities|http://code.google.com/p/osmbonuspack/source/browse/trunk/OSMNavigator/res/values/poi_tags.xml
MaxResults - the maximum number of POI returned. Note that in any case, Nominatim will have an absolute maximum of 50.
MaxDistance - max distance to the position, in degrees.
Note that it is used to build a bounding box around the position, not a circle.
Returns the list of POI close to position, null if technical issue.
GetPOIInside (mBoundingBox Asigolub.osmdroid6.b4a.util.BoundingBoxWrapper, Facility AsString, MaxResults AsInt) AsListOfPOI Note that Nominatim facility search uses Special Phrases instead of OSM tags.
See Facilities|http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases
and Facilities|http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN
or Facilities|http://code.google.com/p/osmbonuspack/source/browse/trunk/OSMNavigator/res/values/poi_tags.xml
MaxResults - the maximum number of POI returned. Note that in any case, Nominatim will have an absolute maximum of 50.
Returns the list of POI close to position, null if technical issue.
NewGeocoderNominatim2 (UserAgent AsString) AsGeocoderNominatim UserAgent - Set UserAgent String. It is recommended to use 'Application.PackageName' as UserAgent.
NewGeocoderNominatim3 (UserAgent AsString, Language AsString) AsGeocoderNominatim UserAgent - Set UserAgent String. It is recommended to use 'Application.PackageName' as UserAgent.
NewGeocoderNominatim4 (UserAgent AsString, Language AsString, Country AsString) AsGeocoderNominatim UserAgent - Set UserAgent String. It is recommended to use 'Application.PackageName' as UserAgent.
NewGeocoderNominatim5 (UserAgent AsString, Language AsString, Country AsString, Variant AsString) AsGeocoderNominatim UserAgent - Set UserAgent String. It is recommended to use 'Application.PackageName' as UserAgent.
NewGeoNamesPOIProvider (AccountUserName AsString) AsGeoNamesPOIProvider AccountUserName - the registered "username" to give to GeoNames service.
NewGraphHopperRoadManager (ApiKey AsString, AlternativesAvailable AsBoolean) AsGraphHopperRoadManager ApiKey - GraphHopper API key, mandatory to use the public GraphHopper service.
NewListOfAddressesAsListOfAddress
NewListOfPOIAsListOfPOI
NewListOfRoadLegsAsListOfRoadLegs
NewListOfRoadNodesAsListOfRoadNodes
NewMapQuestRoadManager (ApiKey AsString) AsMapQuestRoadManager ApiKey - MapQuest API key, mandatory to use the MapQuest Open service.
AddRequestOption (RequestOption AsString) AsRoadManager Add an option that will be used in the route request.
Note that some options are set in the request in all cases.
RequestOption - See provider documentation.
Just one example: "routeType=bicycle" for MapQuest; "mode=bicycling" for Google.
GetRoad (Waypoints Asigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper) AsRoad In case of error, road status is set to error, and the shape has just straight lines between waypoints.
GetRoads (Waypoints Asigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper) AsRoad() Road at index 0 is the shortest (in time).
The array may contain more entries, for alternate routes - assuming the routing service used supports alternate routes.
In case of error, return 1 road with its status set to error, and its shape with just straight lines between waypoints.
SetMean (Mean AsString) AsOSRMRoadManager To switch to another mean of transportation.
You can use 'OSRMRoadManager_Means' static class module to choose a Mean.
SetService (ServiceUrl AsString) AsOSRMRoadManager Allows to request on an other site than OSRM demo site
OSRMRoadManager_Means
Fields:
MEAN_BY_BIKEAsString
MEAN_BY_CARAsString
MEAN_BY_FOOTAsString
POI
This class will be initialized internally. It can not be initialized by user.
Functions:
IsInitializedAsBoolean
Properties:
CategoryAsString [read only]
DescriptionAsString [read only]
Can be the name, the address, or a "reasonably" short description (displayable in a bubble).
IDAsLong [read only]
LocationAsigolub.osmdroid6.b4a.util.GeoPointWrapper [read only]
Location of the POI.
PTypeAsString [read only]
Returns type or title.
RankAsInt [read only]
Popularity of this POI, from 1 (lowest) to 100 (highest). 0 if not defined.
ServiceIDAsInt [read only]
Identifies the service provider of this POI.
Returns int value.
ServiceStringAsString [read only]
Identifies the service provider of this POI.
Returns service provider name.
ThumbnailAsBitmap [read only]
The thumbnail image itself. Null if none.
ThumbnailPathAsString [read only]
Url of the thumbnail. Null if none.
UrlAsString [read only]
Url to a more detailed information page about this POI. Null if none.
POI_Services
Fields:
POI_SERVICE_FLICKRAsInt
POI_SERVICE_GEONAMES_WIKIPEDIAAsInt
POI_SERVICE_NOMINATIMAsInt
POI_SERVICE_OVERPASS_APIAsInt
POI_SERVICE_PICASAAsInt
RadiusMarkerClusterer
Functions:
AddMarker (mMarker Asigolub.osmdroid6.b4a.views.overlays.MarkerWrapper) AsRadiusMarkerClusterer Add the Marker.
Important: Markers added in a MarkerClusterer should not be added in the map overlays.
GetDescriptionAsString
GetEnabledAsBoolean
GetNameAsString
InitializeAsRadiusMarkerClusterer
InvalidateAsRadiusMarkerClusterer Force a rebuild of clusters at next draw, even without a zooming action.
Should be done when you changed the content of a MarkerClusterer.
SetIcon (Icon AsBitmap) AsRadiusMarkerClusterer Set the cluster icon to be drawn when a cluster contains more than 1 marker.
If not set, default will be the default osmdroid marker icon (which is really inappropriate as a cluster icon).
ItemsAsigolub.osmdroid6.b4a.collections.ListOfOverlaysWrapper [read only]
Return the list of Overlays.
Items from list can be casted to Marker.
Example: Items.GetAt(0).As(Marker)
TextPaintAsigolub.osmdroid6.b4a.android.graphics.PaintWrapper [read only]
If you want to change the default text paint (color, size, font).
Road
This class can not be initialized by the user. It will be initialized internally.
DurationAsDouble [read only]
Duration of the whole trip in sec.
LegsLengthDurationTextAsString() [read only]
Return length and duration of each leg of the road, as a array of Strings, in a readable format.
LengthAsDouble [read only]
Length of the whole route in km.
LengthDurationTextAsString [read only]
Return a human-readable length & duration text of a whole road.
RoadLegsAsListOfRoadLegs [read only]
There is one leg between each waypoint
RoadNodesAsListOfRoadNodes [read only]
List of intersections or "nodes"
RouteHighAsigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper [read only]
Full shape polyline, as an list of GeoPoints.
RouteLowAsigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper [read only]
Return the road shape in "low resolution" = simplified by around 10 factors.
StatusAsInt [read only]
Use 'RoadStatuses' static class module for statuses.
STATUS_OK = road properly retrieved and built.
STATUS_INVALID = road has not been built yet.
STATUS_TECHNICAL_ISSUE = technical issue, no answer from the service provider.
All other values: functional errors/issues, depending on the service provider.
RoadLeg
This class can not be initialized by the user. It will be initialized internally.
Functions:
IsInitializedAsBoolean
Properties:
DurationAsDouble [read only]
Returns duration in seconds.
EndNodeIndexAsInt [read only]
Ending node of the leg, as index in nodes array.
LengthAsDouble [read only]
Returns length in km.
StartNodeIndexAsInt [read only]
Starting node of the leg, as index in nodes array.
RoadManager
This is internal supertype class and can not be initialized by user.
Functions:
AddRequestOption (RequestOption AsString) AsRoadManager Add an option that will be used in the route request.
Note that some options are set in the request in all cases.
RequestOption - See provider documentation.
Just one example: "routeType=bicycle" for MapQuest; "mode=bicycling" for Google.
GetRoad (Waypoints Asigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper) AsRoad In case of error, road status is set to error, and the shape has just straight lines between waypoints.
GetRoads (Waypoints Asigolub.osmdroid6.b4a.collections.ListOfGeoPointsWrapper) AsRoad() Road at index 0 is the shortest (in time).
The array may contain more entries, for alternate routes - assuming the routing service used supports alternate routes.
In case of error, return 1 road with its status set to error, and its shape with just straight lines between waypoints.
IsInitializedAsBoolean
RoadNode
This class can not be initialized by the user. It will be initialized internally.
Functions:
IsInitializedAsBoolean
Properties:
DurationAsDouble [read only]
In seconds to the next node.
InstructionsAsString [read only]
Textual information on what to do at this intersection.
LengthAsDouble [read only]
In km to the next node.
LocationAsigolub.osmdroid6.b4a.util.GeoPointWrapper [read only]
Returns position of the node.
ManeuverTypeAsInt [read only]
A common reference has been chosen for maneuver types.
The MapQuest Open Maneuver Types list has been selected, as it was the most precise and seems stable.
All road managers convert the service-specific values to this common reference.