MTD Developer Forum
 » 
API
 » 
General Discussion
 » 
GetPlannedTripsByLatLon Question
 
        
            
            
    | 
Rank: Newbie
 Groups: Registered
 Joined: 1/16/2012(UTC) Posts: 7  Location: IL | 
            
	      
                Hi!
 I was testing this function out and my problem is with how the itineraries were ranked. The first two itineraries were the exact same (boarding the silver and debarking at transit plaza) however one bus departs at 7:26 while the bus in the other itinerary departs at 7:02. The first itinerary with the bus leaving much later at 7:26 was ranked first because  it had a travel time that was one minute shorter than the other. I would rather have the other itinerary with the bus departing earlier ranked first since the person would arrive at their destination much earlier. So I guess my question is can you rank the itineraries based on the the earliest time the person will arrive at their destination instead of just total travel time. I tried it out using the trip planner on your website and it also does the same thing. Thanks!
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
Rank: Administration
 Groups: Administrators
Joined: 4/11/2011(UTC)
 Posts: 42
 
 Was thanked: 3 time(s) in 3 post(s)
 | 
            
	      
                Could you give us the parameters you used to plan the trip?  We're having some discussion about the trip planner and an example of your problem would help.  Thanks! | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
        
            
            
    | 
Rank: Newbie
 Groups: Registered
 Joined: 1/16/2012(UTC) Posts: 7  Location: IL | 
            
	      
                Ok, this is for a different stop but it's the same problem -http://developer.cumtd.c...lannedTripsByLatLon?key= [key]&origin_lat=40.09949&origin_lon=-88.2204&destination_lat=40.110568&destination_lon=-88.225412&minimize=time&max_walk=.3 Below (if the image shows up) is when I used your trip planner with similar parameters showing the same problem. Basically the itinerary with the soonest arrival time isn't ranked first because it has a longer travel time.  Thanks! | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
Rank: Administration
 Groups: Administrators, Registered Joined: 6/1/2011(UTC) Posts: 88  Location: UrbanaThanks: 1 timesWas thanked: 6 time(s) in 6 post(s)
 
 | 
            
	      
                We're currently having an internal discussion about how best to rank itineraries for the API and the website.  Once we come to a decision I'll be sure to let you know here. | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
                           
MTD Developer Forum
 » 
API
 » 
General Discussion
 » 
GetPlannedTripsByLatLon Question
 
    
        Forum Jump
         
    
    You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.