Skip to content

crenshawda/gfree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This program should help find gluten free restaurants near you and bus routes to get you there.

Python Dependencies:
	unirest
	rauth

Note: This uses the Mashape and Yelp APIs to coordinate restaurant and transit information, so you will need to sign up and get keys for both of them. You will need to export the following keys as environment variables:
	TRANSLOC_MASHAPE_KEY
	YELP_CONSUMER_KEY
	YELP_CONSUMER_SECRET
	YELP_TOKEN
	YELP_TOKEN_SECRET

Usage: You can use the find_guten_free_near_me(my_lat, my_long, search_radius=9000) function to find bus routes to gluten free establishment in your search radius.

	Here's a test example using the find_me() function (hardcoded to Slater Rd in Durham):

	>>> import gfree
	>>> gfree.find_guten_free_near_me(*gfree.find_me())
	{(u"P F Chang's China Bistro", u'6801 Fayetteville Rd, Renaissance Center at Southpoint, Durham, NC 27713,'): 
														[{'end_stop': set([u'4049498',
                                                                                                                                   u'4050718']),
                                                                                                                'route': u'4003038',
                                                                                                                'start_stop': set([u'4049486',
                                                                                                                                   u'4049490',
                                                                                                                                   u'4049494',
                                                                                                                                   u'4049498',
                                                                                                                                   u'4049502',
                                                                                                                                   u'4049506',
                                                                                                                                   u'4049606',
                                                                                                                                   u'4049622',
                                                                                                                                   u'4049682',
                                                                                                                                   u'4049686',
                                                                                                                                   u'4049694',
                                                                                                                                   u'4049762',
                                                                                                                                   u'4049882',
                                                                                                                                   u'4050074',
                                                                                                                                   u'4050078',
                                                                                                                                   u'4050158',
                                                                                                                                   u'4050718',
                                                                                                                                   u'4050738',
                                                                                                                                   u'4050742',
                                                                                                                                   u'4050774',
                                                                                                                                   u'4050914',
                                                                                                                                   u'4051970',
                                                                                                                                   u'4052658',
                                                                                                                                   u'4053078',
                                                                                                                                   u'4053478',
                                                                                                                                   u'4053482',
                                                                                                                                   u'4053486',
                                                                                                                                   u'4053490',
                                                                                                                                   u'4053494',
                                                                                                                                   u'4053498',
                                                                                                                                   u'4053510',
                                                                                                                                   u'4053518',
                                                                                                                                   u'4053978',
                                                                                                                                   u'4054066',
                                                                                                                                   u'4054070',
                                                                                                                                   u'4116378',
                                                                                                                                   u'4116382',
                                                                                                                                   u'4116386',
                                                                                                                                   u'4116390',
                                                                                                                                   u'4116394',
                                                                                                                                   u'4116398',
                                                                                                                                   u'4116402',
                                                                                                                                   u'4116406',
                                                                                                                                   u'4116410'])}]}

Releases

No releases published

Packages

No packages published

Languages