code: public void getElevationForLocations(LocationElevationRequest req, ElevationServiceCallback callback) {
          
          this.callback = callback;
          
          JSObject doc = (JSObject) getJSObject().eval("document");
          doc.setMember(getVariableName(), this);
          
          StringBuilder r = new StringBuilder(getVariableName())
                .append(".")
                .append("getElevationForLocations(")
                .append(req.getVariableName())
                .append(", ")
                .append("function(results, status) {alert('rec:'+status);\ndocument.")
                .append(getVariableName())
                .append(".processResponse(results, status);});");
          
          LOG.trace("ElevationService direct call: " + r.toString());
          
          getJSObject().eval(r.toString());
          
      }
docs: Create a request for elevations for multiple locations.
  
  @param req
  @param callback