const std::string MyPinsWebService::CreatePinPostData(const MyPinModel& pinModel) { std::string json = ""; if(pinModel.IsInterior()) { json = "{\n \"title\":\"" + pinModel.GetTitle() + "\",\n \"subtitle\":\"\",\n \"tags\":\"office business\",\n \"lat\":\"" + ConvertModelDetailToString(pinModel.GetLatLong().GetLatitudeInDegrees()) + "\",\n \"lon\":\"" + ConvertModelDetailToString(pinModel.GetLatLong().GetLongitudeInDegrees()) + "\",\n \"indoor\":\"" + BoolToString(pinModel.IsInterior()) + "\",\n \"indoor_id\":\"" + pinModel.GetBuildingId().Value() + "\",\n \"floor_id\":\"" + ConvertModelDetailToString(pinModel.GetFloor()) + "\",\n \"user_data\":{\"description\":\"" + pinModel.GetDescription() + "\"}}"; } else { json = "{\n \"title\":\"" + pinModel.GetTitle() + "\",\n \"subtitle\":\"\",\n \"tags\":\"office business\",\n \"lat\":\"" + ConvertModelDetailToString(pinModel.GetLatLong().GetLatitudeInDegrees()) + "\",\n \"lon\":\"" + ConvertModelDetailToString(pinModel.GetLatLong().GetLongitudeInDegrees()) + "\",\n \"user_data\":{\"description\":\"" + pinModel.GetDescription() + "\"}}"; } return json; }