SimpleRepository Class |
Namespace: Telogis.GeoBase.Repositories
The SimpleRepository type exposes the following members.
Name | Description | |
---|---|---|
SimpleRepository |
Get a new SimpleRepository created from a GBFS file. The GBFS file is specified by a file path.
|
Name | Description | |
---|---|---|
BoundingBoxData |
Implemented by derived classes to retrieve the RepositoryBoundingBoxData objects that describe the bounding boxes of the repository content.
(Inherited from Repository.) | |
BoundingBoxes |
The BoundingBox objects that contain the repository content.
(Overrides RepositoryBoundingBoxes.) | |
CopyrightString |
Get the copyright string for this Dataset.
(Overrides RepositoryCopyrightString.) | |
Countries |
Gets an array of Countrys for which data in this
SimpleRepository is available.
(Overrides RepositoryCountries.) | |
CustomTables |
The tables in this data file, if it's a custom data file.
| |
DatasetHashCode |
Gets the hash code for this Repository's dataset. The hash code may be used to identify the dataset.
(Inherited from LocalRepository.) | |
DatasetHashCodeString |
Provides a consistent string representation of DatasetHashCode.
(Inherited from Repository.) | |
FileInfo |
Get a string containing information about the file, such as name, vendor and version.
| |
FileName |
Get the filename of this dataset
| |
HasGlobalData |
May be used to determine if global data is available in this Dataset (true) or not (false).
(Overrides RepositoryHasGlobalData.) | |
IsDisposed |
Gets whether the repository has been Disposed.
(Inherited from Repository.) | |
Name |
Get the name of this Dataset.
| |
PostProcessingInfo |
Get a string containing file information about this Dataset.
| |
Regions |
Gets an array of regions for which data in this SimpleRepository is available.
(Overrides RepositoryRegions.) | |
VendorName |
Gets the vendor name for this dataset.
| |
VendorVersion |
Gets the version number for this dataset.
(Overrides RepositoryVendorVersion.) | |
Version |
Get version details for this Dataset.
|
Name | Description | |
---|---|---|
CreateFailoverRepository |
Get a new SimpleRepository created from several instances of a same GBFS file.
In case one file instance is no longer available, the SimpleRepository fails over to the next one.
| |
Dispose |
Disposes of this LocalRepository. See remarks.
(Inherited from Repository.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetAddressConvention |
Indicates the street number addressing convention in the specified country.
| |
GetCountriesIn |
Query the repository for all countries which fall underneath the given BoundingBox.
(Overrides LocalRepositoryGetCountriesIn(BoundingBox).) | |
GetCountryRegions |
Gets a list of top country regions for which data in this SimpleRepository is available.
| |
GetDrivingSide |
Indicates which side of the road vehicles drive in the specified country.
(Overrides RepositoryGetDrivingSide(Country).) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetRepositoriesForCountry |
Returns this simple repository if it supports the specified country.
(Overrides LocalRepositoryGetRepositoriesForCountry(Country).) | |
GetRoutingProfile |
Gets the default RoutingProfile for a GBFS.
| |
GetRoutingProfile(Country) |
Gets the default RoutingProfile for a given GBFS file and country.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUnitSystem |
Returns the unit system for a specified country.
| |
HasCountry |
Indicates whether this repository contains data for the given Country.
(Inherited from LocalRepository.) | |
Supports |
Gets whether this Repository supports the specified feature.
| |
ToString |
Returns a string representation of the simple repository.
(Overrides ObjectToString.) | |
Validate |
Validate the integrity of a GBFS file by calculating and checking its MD5 checksum.
|
Related articles: Using Repositories to manage data.
// Create a Map Telogis.GeoBase.Map myMap = new Telogis.GeoBase.Map(); // Create a SimpleRepository for a single map data file and apply to the Map object myMap.MapRepository = new Telogis.GeoBase.Repositories.SimpleRepository(@"C\MY_MAP_DATA.gbfs"); // Alternatively, to use several map files (for multiple countries/regions), create several SimpleRepository objects... Telogis.GeoBase.Repositories.SimpleRepository repository_a = new Telogis.GeoBase.Repositories.SimpleRepository(@"..\folder\country_a.gbfs"); Telogis.GeoBase.Repositories.SimpleRepository repository_b = new Telogis.GeoBase.Repositories.SimpleRepository(@"..\folder\country_b.gbfs"); // Then create a MultiRepository and add the SimpleRepository objects to it... Telogis.GeoBase.Repositories.MultiRepository multi_map = new Telogis.GeoBase.Repositories.MultiRepository(); multi_map.Add(repository_a); multi_map.Add(repository_b); // The MultiRepository can be added directly to a map... myMap.MapRepository = multi_map; // Or applied to the current thread... Telogis.GeoBase.Repositories.Repository.CurrentThreadRepository = multi_map; // Or made the default for all new threads... Telogis.GeoBase.Repositories.Repository.Default = multi_map;