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

Road name abbreviations #29

Open
aaron97neu opened this issue Apr 24, 2019 · 0 comments
Open

Road name abbreviations #29

aaron97neu opened this issue Apr 24, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@aaron97neu
Copy link
Member

Road names can be abbreviated in many different ways - ie "North Grant Street" can be written as "N Grant Street", "North Grant St", or "N Grant St", all which are valid. LIMO currently does not support this, and the street names must be typed as they appear in the database verbatim, even when they appear differently on the visual map. This leads to cryptic db query failures. Commuters in the West Lafayette area seem to tolerate these errors to some degree, however the Indy area does not

Either the SQL queries or the surrounding python code needs to be modified to allow more flexible road names in our method calls.

In example program 2, changing Russell St to Russell Street shows this issue. See code below:

# Program 2: Sequential 
# This program moves a Commuter from one location to another showing the route traveled.
address = read_address("1156 Hillcrest Rd", "West Lafayette", "IN", "47906")
display_marker(address)
start_at("com1", address,"EAST")
move_until("com1", "N Grant St")
turn_to("com1", "N Grant St", "right")
move_distance("com1", 0.6)
turn_to("com1", "W Stadium Ave", "right")
# move_until("com1", "Russell St")
move_until("com1", "Russell Street")
# turn_to("com1", "Russell St", "left")
turn_to("com1", "Russell Street", "left")
move_distance("com1", 0.3)
turn_to("com1", "3rd St", "left")
move_to_next_intersection("com1")
last_location = get_current_point("com1")
display_marker(last_location)
show_on_map("com1")
@aaron97neu aaron97neu added the bug Something isn't working label Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant