moshen / node-googlemaps

A simple way to query the Google Maps API from Node.js
MIT License
559 stars 148 forks source link

Timeout #74

Closed kevinburkeshyp closed 8 years ago

kevinburkeshyp commented 9 years ago

Allows users to set a configurable timeout on requests to the Maps service.

In the future users may want to request more customization for the HTTP client - may want to consider consolidating the config options for the http request into a Transport object, a la Golang: http://golang.org/pkg/net/http/#Transport

so you'd do

var transport = {'timeout': 3000, 'proxy': 'foo'}
config.set('transport', transport);
gm.geocode ...