changed directions to walking / public transport
This commit is contained in:
parent
13ac0f1503
commit
183a2b284d
@ -31,7 +31,7 @@ async function doGetEstDirectionsWithIncidents(olat, olon, dlat, dlon) {
|
||||
|
||||
async function doGetEstDirections(olat, olon, dlat, dlon) {
|
||||
logger.debug('doGetEstDirections');
|
||||
const url = `https://sgws2.maps.yahoo.com/Directions?time=now&cache=n&flags=J&olat=${olat}&olon=${olon}&dlat=${dlat}&dlon=${dlon}`;
|
||||
const url = `https://sgws2.maps.yahoo.com/Directions?time=now&cache=n&flags=J&olat=${olat}&olon=${olon}&dlat=${dlat}&dlon=${dlon}&mode=11`;
|
||||
|
||||
logger.debug(url);
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
const CACHE_VERSION = { 'version': '0.0.809' };
|
||||
const CACHE_VERSION = { 'version': '0.0.810' };
|
||||
const PRECACHE = `jubileeData-${CACHE_VERSION.version}`;
|
||||
const RUNTIME = 'runtime';
|
||||
|
||||
|
@ -31,7 +31,7 @@ const TrafficModel = Backbone.Model.extend({
|
||||
if (day !== 0 && day !== 6)
|
||||
doRequest = (((hour >= 7) && (hour <= 9)) || ((hour >= 17) && (hour <= 19)));
|
||||
|
||||
doRequest = true;
|
||||
// doRequest = true;
|
||||
|
||||
const delay = doRequest ? 600000 : toHour();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user