Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Reverse Geocoding #7

Merged
merged 10 commits into from
Aug 7, 2015
Merged

Reverse Geocoding #7

merged 10 commits into from
Aug 7, 2015

Conversation

sbma44
Copy link
Member

@sbma44 sbma44 commented Aug 6, 2015

Would love some 👀 @sgillies @dnomadb. Biggest change is an alteration to the command line interface to make click handle passed coordinates with as little ugliness as possible.

@click.option('--access-token', help="Your access token")
@click.option('--forward', default=False, help="Perform a forward geocode")
@click.option('--reverse', default=False, help="Perform a reverse geocode")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can combine these into one boolean option like

@click.option('--forward/--reverse', default=True, help="Perform a forward (default) or reverse geocode")

and remove lines 29-33.

@sgillies
Copy link
Contributor

sgillies commented Aug 7, 2015

Looking good to me! I'm 👍 on changing the method to forward(). I think click will let us have --forward/--reverse as long names for the boolean option and -f/-r as short names. I can look into that after this is merged.

@sbma44
Copy link
Member Author

sbma44 commented Aug 7, 2015

that sounds great to me. merging...

sbma44 added a commit that referenced this pull request Aug 7, 2015
@sbma44 sbma44 merged commit e5404d0 into master Aug 7, 2015
@sbma44 sbma44 deleted the reverse branch August 7, 2015 19:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants