var asteroid = require('asteroid');

module.exports = asteroid.createDataSource({
    connector: require('asteroid-connector-rest'),
    debug: false,
    operations: [
        {
            name: 'geocode',
            parameters: ['street', 'city', 'zipcode'],
            request: {
                "method": "GET",
                "url": "http://maps.googleapis.com/maps/api/geocode/{format=json}",
                "headers": {
                    "accepts": "application/json",
                    "content-type": "application/json"
                },
                "query": {
                    "address": "{street},{city},{zipcode}",
                    "sensor": "{sensor=false}"
                },
                "responsePath": "$.results[0].geometry.location"
            }
        }
    ]});



@@ -16,25 +16,25 @@
 require(
-'
+%22
 asteroid
 ');%0A%0Amod
@@ -25,17 +25,17 @@
 asteroid
-'
+%22
 );%0A%0Amodu
@@ -98,17 +98,17 @@
 require(
-'
+%22
 asteroid
@@ -122,17 +122,17 @@
 tor-rest
-'
+%22
 ),%0A    d
@@ -188,99 +188,16 @@
     
-name: 'geocode',%0A            parameters: %5B'street', 'city', 'zipcode'%5D,%0A            request
+template
 : %7B%0A
@@ -681,24 +681,120 @@
 y.location%22%0A
+            %7D,%0A            functions: %7B%0A               %22geocode%22: %5B%22street%22, %22city%22, %22zipcode%22%5D%0A
             

Update the rest connector config