implement throttling logic
logic and unit tests for OVER_QUERY_LIMIT response
directions service also extracts distance from result
cache segment lengths when they don't change