Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Tym razem oprócz odległości do parku ważny jest też dystans do przystanku MPK
- // oraz ilość dostępnych na nim linii.
- // Jaki jest stosunek parku do MPK zależy od Ciebie, dla przykładu:
- let vote (pricing:LocationPricing) =
- let cityContext = pricing.Comparisions.CityLevel
- let lines = pricing.Measures.Facilities.Transportation.MPK.Properites.Lines
- let maxPointsForTransportationFactor =
- if(lines.Count > 5) then
- 5
- else
- lines.Count
- // lub dużo prościej
- min(5, lines.Count)
- cityContext.Recreation.Park.Distance
- + maxPointsForTransportationFactor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement