changed directions to walking / public transport

This commit is contained in:
Martin Donnelly 2018-10-11 16:50:58 +01:00
parent 13ac0f1503
commit 183a2b284d
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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';

View File

@ -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();