abyth Posted July 31, 2013 Share Posted July 31, 2013 (edited) Route to contact or location This workflow calculates the route from the current location to a contact from your address book, or a specified location with Google Maps. The scripts are written in python and use the pre-installed objective-c bridge pyobjc to search the address book and determine the current location with CoreLocation. Because of this, OS X will display messages that ask for the permission to use CoreLocation and AddressBook. Requirements: The scripts use the shipped python version and the nice alfred module by nikipore (included). Because of the usage of OS X APIs there are requirements for the OS X version. I developed and tested the workflow on 10.8.4, 10.9.0 and 10.9.1, but perhaps older versions are also working (feedback?). Usage: Simply type "route" followed by the first or last name of a contact and choose the right one from the list. You can also just type an address to which you want the route to be calculated. Download: You can download the workflow from Packal https://github.com/abyth/alfred-route-contact-workflow Feel free to submit error reports or feature requests Important!: After implementing new features, the workflow title was sufficient anymore. You can find the new version here in the forum History 1.1Fixed index bugs regarding multiple addresses per contact 1.0Initial release Edited January 30, 2014 by abyth DJay 1 Link to comment
vdesabou Posted August 1, 2013 Share Posted August 1, 2013 Awesome work! Thank for sharing Link to comment
Puck Posted August 11, 2013 Share Posted August 11, 2013 Hey abyth, very nicely done. This is helping me a lot Is there any way to choose which address is used in case the person has a work and private address? Thanks so much! Ciao, Puck Link to comment
abyth Posted August 14, 2013 Author Share Posted August 14, 2013 Hey abyth, very nicely done. This is helping me a lot Is there any way to choose which address is used in case the person has a work and private address? Thanks so much! Ciao, Puck Hi Puck, there was a small error with indices. Now it should display multiple addresses per person with the corresponding identifier e.g. work or home Greetings Puck 1 Link to comment
kumters Posted September 17, 2013 Share Posted September 17, 2013 Can you add option to define FROM and TO, so I can get route from location1 to location2? Thank you PJ Link to comment
abyth Posted October 1, 2013 Author Share Posted October 1, 2013 It should be possible, but i would need an example on what you want to achieve. E.g. whether or not you want to use CoreLocation, AdressBook Data or simple strings. Can you describe a use case or an example? Link to comment
apkawel Posted October 11, 2013 Share Posted October 11, 2013 I installed; gave permissions; and nothing happens. Do I have to do something else to make my location accessible? Link to comment
abyth Posted October 16, 2013 Author Share Posted October 16, 2013 I installed; gave permissions; and nothing happens. Do I have to do something else to make my location accessible? The scripts ask for permission to access both contacts and location. The permissions are listed in System Settings -> Security -> Privacy. If the permissions are set correctly, then all requirements are fulfilled. Are you using Mountain Lion? One possible issue could be related to zsh -> Change the language setting in the script filter to /bin/bash Link to comment
Don Dahl Posted November 25, 2013 Share Posted November 25, 2013 (edited) It should be possible, but i would need an example on what you want to achieve. E.g. whether or not you want to use CoreLocation, AdressBook Data or simple strings. Can you describe a use case or an example? I'll give you an example; route from location1 to location2 route <choose from contact, current location or enter an address manually> <choose from contact, current location or enter an address manually> Does it make sense or should i illustrate in another way? By the way - thanks a lot for this. I use it every day and find it very useful if a feature like the above would be implemented Edited November 25, 2013 by Arthur Link to comment
abyth Posted January 29, 2014 Author Share Posted January 29, 2014 I'll give you an example; route from location1 to location2 route <choose from contact, current location or enter an address manually> <choose from contact, current location or enter an address manually> Does it make sense or should i illustrate in another way? By the way - thanks a lot for this. I use it every day and find it very useful if a feature like the above would be implemented Hi Arthur, i'll see what i can do. Btw. sorry for the late answer Link to comment
abyth Posted January 30, 2014 Author Share Posted January 30, 2014 I implemented the requested features. Unfortunately, the workflow title is not sufficient anymore. Therefore, you can find the new version here Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now