Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/JSON/EGL/json-4.egl
Normal file
15
Task/JSON/EGL/json-4.egl
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Service function definition
|
||||
function geocode(address String) returns (GoogleGeocoding) {
|
||||
@Resource{uri = "binding:GoogleGeocodingBinding"},
|
||||
@Rest{method = _GET, uriTemplate = "/json?address={address}&sensor=false",
|
||||
requestFormat = None, responseFormat = JSON}
|
||||
}
|
||||
|
||||
// Invoke service function
|
||||
call geocode("111 Maple Street, Somewhere, CO") returning to callback;
|
||||
|
||||
function callBack(result GoogleGeocoding in)
|
||||
SysLib.writeStdout(result.status);
|
||||
SysLib.writeStdout(result.results[1].geometry.location.lat);
|
||||
SysLib.writeStdout(result.results[1].geometry.location.lng);
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue