Nxs misc - xkp/Doc GitHub Wiki
##Overview This is a page for extras, a little underpopulated at the moment but it will grow over time
node.xs allows developers to seamlessly execute shell commands in code by means of dsl. This constructs shares functionality and format with the sql dsl.
shell()
{
<optional variable> = <shell command usung @ parameters> <optional semicolon>
}
We plan to implement several popular services as node.xs web services, at the present time we offer google maps as proof of concept.
######Google Maps
API:
<method id="directions" return_type="object" path="/maps/api/directions/json">
<parameter id="origin" type="string" required="true"/>
<parameter id="destination" type="string" required="true"/>
<parameter id="sensor" type="boolean" required="true"/>
<parameter id="waypoints" type="array" separator="|"/>
</method>
<method id="staticmap" return_type="string" path="/maps/api/directions/staticmap">
<parameter id="center" type="string" required="true"/>
<parameter id="zoom" type="int" required="true"/>
<parameter id="size" type="boolean" required="true"/>
</method>
<method id="geocode" return_type="object" path="/maps/api/geocode/json">
<parameter id="address" type="string" required="true"/>
<parameter id="sensor" type="boolean" required="true"/>
</method>