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

Moving commuters between zip codes #27

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

Moving commuters between zip codes #27

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

Comments

@aaron97neu
Copy link
Member

Currently there is no modification of a commuter's zip code (either global ZIP in master/dev branch or zipcode field in commutersAsObject branch). This mean that once a commuter moves into another zip code, calls begin to fail, notably the db queries in geocode_intersection2(), which is used by move_until()

This is especially problematic in areas like downtown Indy where zipcodes are small and irregular, such as 46204, pictured:
image

Example of failing code due to zipcode change:

# Program 2: Sequential [Modified]
# This program moves a Commuter from one location to another showing the route traveled.
addressIN = read_address("40 E St Clair St", "Indianapolis", "IN", "46204")
display_marker(addressIN)
start_at("com2", addressIN, "EAST")
move_until("com2", "N Delaware St")
turn_to("com2", "N Delaware St", "right")
move_until("com2", "E Ohio St")
turn_to("com2", "N Capitol Ave")#, "right")
move_distance("com2", 1.5)
turn_to("com2", "W Washington St")
move_until("com2", "N Belmont Ave")

last_location = get_current_point("com2")
display_marker(last_location)
show_on_map("com2")
@aaron97neu aaron97neu added the bug Something isn't working label Apr 24, 2019
@aaron97neu aaron97neu self-assigned this Apr 25, 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