Skip to content

Only Listen To Broadcast Events For Current Day? #17

@dxfan227

Description

@dxfan227

Is it possible to have the route only listen for events only on the current day of the event? I want my map to default to a certain route ....but not day of events.

right now it shows an event that's in 20 days, I don't need that route estimate right now obviously.

I think it would be something here?

// Let's see if we can handle it if (notification === "CALENDAR_EVENTS") { // Ok, we should be able to handle this for (var e in payload) { var event = payload[e]; if(event.location){ override = event.location; } if(override)break; } } else { Log.log(notification," notification type is not supported (yet)"); return; } // Update the destination override if needed if(override){ var o = this.state.overrideDestination; if(JSON.stringify(this.state.overrideDestination) != JSON.stringify(override)){ // New override this.state.overrideDestination = override; this.getDirections(); } }else if(this.state.overrideDestination){ // No more overrides this.state.overrideDestination = undefined; this.getDirections(); } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions