use of im.tny.segvault.subway.Zone in project underlx by underlx.
the class MainService method loadNetworks.
private void loadNetworks() {
synchronized (lock) {
try {
Network net = TopologyCache.loadNetwork(this, PRIMARY_NETWORK_ID, api.getEndpoint().toString());
putNetwork(net);
S2LS loc = locServices.get(PRIMARY_NETWORK_ID);
Log.d("loadNetworks", String.format("In network? %b", loc.inNetwork()));
Log.d("loadNetworks", String.format("Near network? %b", loc.nearNetwork()));
Zone z = loc.getLocation();
for (Stop s : z.vertexSet()) {
Log.d("loadNetworks", String.format("May be in station %s", s));
}
} catch (CacheException e) {
// cache invalid, attempt to reload topology
updateTopology();
}
}
}
Aggregations