-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.py
33 lines (23 loc) · 1.02 KB
/
notes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
def get_search_parameters(lat,long):
#See the Yelp API for more details
params = {}
params["term"] = "restaurant"
params["ll"] = "{},{}".format(str(lat),str(long))
params["radius_filter"] = "2000"
params["limit"] = "10"
return params
# print get_search_parameters(37.7833,-122.4167)
print get_results(get_search_parameters(37.7833,-122.4167))
## Google API for custom markers
Request
center: Australia
size: 640x400
style: element:labels|visibility:off
style: element:geometry.stroke|visibility:off
style: feature:landscape|element:geometry|saturation:-100
style: feature:water|saturation:-100|invert_lightness:true
key: API_KEY
##
http://maps.googleapis.com/maps/api/staticmap?center=Australia&size=640x400&style=element:labels|visibility:off&style=element:geometry.stroke|visibility:off&style=feature:landscape|element:geometry|saturation:-100&style=feature:water|saturation:-100|invert_lightness:true&key=YOUR_API_KEY
git remote add origin https://github.com/Gamerlazer/Logistics_Planner.git
git push -u origin master