Underscore example:
_.each([1, 2, 3], function(num) { alert(num); });| # Example of using Mapzen Search for free geocoding | |
| # https://mapzen.com/documentation/search/search/ | |
| # result of geocoding all of New York's Starbucks: http://bit.ly/1P34T7h | |
| from os import environ | |
| import requests | |
| API_KEY = environ['MAPZEN_SEARCH_KEY'] | |
| BASE_URL = 'https://search.mapzen.com/v1/search' | |
| txt = '1007 MORRIS PARK AVE, 10462' | |
| resp = requests.get(BASE_URL, params = {'api_key': API_KEY, 'size': 1, 'text': txt}) | |
| data = resp.json() |