objectParent.addFloat ("DesiredLocation.latitude", latDegrees); objectParent.addFloat ("DesiredLocation.longitude", lonDegrees);
objectParent.addFloat (parentFieldName + ".latitude", latDegrees); objectParent.addFloat (parentFieldName + ".longitude", lonDegrees);
  public void createLatLon (Object parent, String parentFieldName, Position loc) {    float latDegrees = (float) loc.getLatitude  ().getDegrees();    float lonDegrees = (float) loc.getLongitude ().getDegrees();    SchObject latlong = new SchObject ("latlong", schedData);    // fill in the fields on the predefined type    latlong.addFloat ("latitude",  latDegrees);    latlong.addFloat ("longitude", lonDegrees);    SchObject objectParent = (SchObject) parent;        // have to explicitly add these lines to the parent object!    objectParent.addFloat ("DesiredLocation.latitude", latDegrees);    objectParent.addFloat ("DesiredLocation.longitude", lonDegrees);    // fill in the fields on the root task/resource    String val = objectParent.addField (parentFieldName, "latlong", latlong, false, false);    if (val != null)      logger.warn ("got error " + val + " adding lat long to " + parentFieldName);    //else    //  logger.warn ("field is " + objectParent.getField(parentFieldName));  }