Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record duration for pre-generated charge station connectivity data #326

Closed
CodeBear801 opened this issue May 6, 2020 · 0 comments
Closed
Assignees
Labels
NewFeature New feature or feature improvement

Comments

@CodeBear801
Copy link

CodeBear801 commented May 6, 2020

Subtask of #242, related with #321

Adjust spatialindexer/interface.go

// RankedPointInfo used to record ranking result to center point
// Distance record distance from center point to current point
// Duration records duration from center point to current point
type RankedPointInfo struct {
	PointInfo
	Distance float64
         // todo
        Duration float64
}

Modifications:

  • Record Duration during ranker's calculation
    • If use OSRM, record Duration from table response
    • If use great circle distance, use length/default speed for Duration
  • Record Duration in pre-processing
    • When connectivity_map build data for charge station connectivity, record Duration with Distance
  • Provide Duration in RankedPointInfo interface during the implementation of StationConnectivityQuerier
@CodeBear801 CodeBear801 added the NewFeature New feature or feature improvement label May 6, 2020
@CodeBear801 CodeBear801 self-assigned this May 6, 2020
@CodeBear801 CodeBear801 changed the title Record duration for pre-generated data Record duration for pre-generated charge station connectivity data May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NewFeature New feature or feature improvement
Projects
None yet
Development

No branches or pull requests

1 participant