In Urbarama mashup we looked at how to mashup mutiple APIS and serve up the result. Now we are going to use that to further enhance and publish the results.
The problem with the Urbarama api is that it returns places of interest within a box of a given latitude/longitude. If we want instead to only return items within a given distance of the origin, we need to work with a circle radius instead, and discard anything that is in the box, but outside the circle.
In Delegation to Google Apps Script we have already created an urbenhanced script. Here's the code you need to paste in
Looking at the urbFilterCircle function,
TestUrb is provided to check the results before publishing. We can see from a query using London as the origin and a radius of 20km, that we discard 5 entries as being within the bounding box, but outside the radius.
Now we are ready to publish the app, just as we did with Hosting your public scriptdb. My version of this is published at
and is shown here with a couple of parameters.
For help and more information join our forum,follow the blog or follow me on twitter . Now take a look at the next step in step by step guide to delegating to Google Apps Script.
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Delegation to Google Apps Script >